namespace ModelContextProtocol.Protocol;
///
/// Provides constants for well-known _meta field keys defined by the MCP protocol and its extensions.
///
public static class MetaKeys
{
///
/// The metadata key used to carry the MCP protocol version in a request's _meta field.
///
///
/// Introduced by the 2026-07-28 protocol revision (SEP-2575). For HTTP transports, the value MUST
/// match the MCP-Protocol-Version header. Servers reject a header/body mismatch with
/// .
///
public const string ProtocolVersion = "io.modelcontextprotocol/protocolVersion";
///
/// The metadata key used to identify the client software in a request's _meta field.
///
///
/// Introduced by the 2026-07-28 protocol revision (SEP-2575). Carries an
/// describing the client; replaces the clientInfo previously sent only with initialize.
///
public const string ClientInfo = "io.modelcontextprotocol/clientInfo";
///
/// The metadata key used to declare client capabilities in a request's _meta field.
///
///
/// Introduced by the 2026-07-28 protocol revision (SEP-2575). Carries a
/// describing what optional features the client supports for this specific request. Servers MUST NOT
/// infer capabilities from previous requests.
///
public const string ClientCapabilities = "io.modelcontextprotocol/clientCapabilities";
///
/// The metadata key used to specify the desired log level for a request's resulting log notifications.
///
///
/// Introduced by the 2026-07-28 protocol revision (SEP-2575). Carries a .
/// Replaces the legacy RPC. When absent, the server
/// MUST NOT send log notifications for the request.
///
public const string LogLevel = "io.modelcontextprotocol/logLevel";
///
/// The metadata key used to associate a notification with the request ID of an active
/// subscription.
///
///
/// Introduced by the 2026-07-28 protocol revision (SEP-2575). Allows clients to demultiplex notifications
/// belonging to different subscriptions on a shared channel (especially STDIO).
///
public const string SubscriptionId = "io.modelcontextprotocol/subscriptionId";
}