MCP Unsubscribe Request Parameters (Protocol/UnsubscribeRequestParams.cs)

csharp-sdk · src/ModelContextProtocol.Core/Protocol/UnsubscribeRequestParams.cs · csharp · Apache-2.0
integration, ai, lang:csharp, tag:protocol, tag:json

Represents a message sent from the client to cancel resource update notifications from the server. Reuse when implementing the Model Context Protocol (MCP) in C# applications.

// Source: https://github.com/modelcontextprotocol/csharp-sdk | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;

namespace ModelContextProtocol.Protocol;

/// <summary>
/// Represents a message sent from the client to cancel resource update notifications from the server for a specific resource.
/// </summary>
/// <remarks>
/// <para>
/// After a client has subscribed to resource updates using <see cref="SubscribeRequestParams"/>,
/// this message can be sent to stop receiving notifications for a specific resource.
/// This action is useful for conserving resources and network bandwidth when
/// the client no longer needs to track changes to a particular resource.
/// </para>
//

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key