Class MetaKeys
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Provides constants for well-known _meta field keys defined by the MCP protocol and its extensions.
public static class MetaKeys
- Inheritance
-
MetaKeys
- Inherited Members
Fields
ClientCapabilities
The metadata key used to declare client capabilities in a request's _meta field.
public const string ClientCapabilities = "io.modelcontextprotocol/clientCapabilities"
Field Value
Remarks
Introduced by the 2026-07-28 protocol revision (SEP-2575). Carries a ClientCapabilities describing what optional features the client supports for this specific request. Servers MUST NOT infer capabilities from previous requests.
ClientInfo
The metadata key used to identify the client software in a request's _meta field.
public const string ClientInfo = "io.modelcontextprotocol/clientInfo"
Field Value
Remarks
Introduced by the 2026-07-28 protocol revision (SEP-2575). Carries an Implementation
describing the client; replaces the clientInfo previously sent only with initialize.
LogLevel
The metadata key used to specify the desired log level for a request's resulting log notifications.
public const string LogLevel = "io.modelcontextprotocol/logLevel"
Field Value
Remarks
Introduced by the 2026-07-28 protocol revision (SEP-2575). Carries a LoggingLevel. Replaces the legacy LoggingSetLevel RPC. When absent, the server MUST NOT send log notifications for the request.
ProtocolVersion
The metadata key used to carry the MCP protocol version in a request's _meta field.
public const string ProtocolVersion = "io.modelcontextprotocol/protocolVersion"
Field Value
Remarks
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
HeaderMismatch.
ServerInfo
The metadata key used to identify the server software in a response's _meta field.
public const string ServerInfo = "io.modelcontextprotocol/serverInfo"
Field Value
Remarks
Introduced by the 2026-07-28 protocol revision. Servers SHOULD identify themselves by
carrying an Implementation under this key in every result's
_meta.
SubscriptionId
The metadata key used to associate a notification with the request ID of an active SubscriptionsListen subscription.
public const string SubscriptionId = "io.modelcontextprotocol/subscriptionId"
Field Value
Remarks
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).