MCP Resources Capability Configuration (Protocol/ResourcesCapability.cs)

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

Represents the resources capability configuration for Model Context Protocol servers supporting subscriptions and list changes. Reuse when building MCP server integrations.

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

namespace ModelContextProtocol.Protocol;

/// <summary>
/// Represents the resources capability configuration.
/// </summary>
/// <remarks>
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
/// </remarks>
public sealed class ResourcesCapability
{
    /// <summary>
    /// Gets or sets a value that indicates whether this server supports subscribing to resource updates.
    /// </summary>
    [JsonPropertyName("subscribe")]
    public bool? Subscribe { get; set; }

    /// 

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

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

Get a free API key