Skip to main content

Crate rust_mcp_schema

Crate rust_mcp_schema 

Source

Modules§

mcp_2026_07_28
schema_utils
Latest MCP Protocol 2026_07_28

Structs§

Annotations
Latest MCP Protocol 2026_07_28 Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
AudioContent
Latest MCP Protocol 2026_07_28 Audio provided to or from an LLM.
BaseMetadata
Latest MCP Protocol 2026_07_28 Base interface for metadata with name (identifier) and title (display name) properties.
BlobResourceContents
Latest MCP Protocol 2026_07_28 BlobResourceContents
BooleanSchema
Latest MCP Protocol 2026_07_28 BooleanSchema
CacheableResult
Latest MCP Protocol 2026_07_28 A result that supports a time-to-live (TTL) hint for client-side caching.
CallToolRequest
Latest MCP Protocol 2026_07_28 Used by the client to invoke a tool provided by the server.
CallToolRequestParams
Latest MCP Protocol 2026_07_28 Parameters for a tools/call request.
CallToolResult
Latest MCP Protocol 2026_07_28 The result returned by the server for a {@link CallToolRequesttools/call} request.
CallToolResultResponse
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link CallToolRequesttools/call} request.
CancelledNotification
Latest MCP Protocol 2026_07_28 This notification is sent by the client to indicate that it is cancelling a request it previously issued. On stdio, the server also sends this notification, solely to terminate a {@link SubscriptionsListenRequestsubscriptions/listen} stream: it references the ID of the subscriptions/listen request that opened the stream. Servers MUST NOT use this notification to cancel any other request. The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. This notification indicates that the result will be unused, so any associated processing SHOULD cease.
CancelledNotificationParams
Latest MCP Protocol 2026_07_28 Parameters for a notifications/cancelled notification.
ClientCapabilities
Latest MCP Protocol 2026_07_28 Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
ClientElicitation
Latest MCP Protocol 2026_07_28 Present if the client supports elicitation from the server.
ClientNotification
Latest MCP Protocol 2026_07_28 This notification is sent by the client to indicate that it is cancelling a request it previously issued. On stdio, the server also sends this notification, solely to terminate a {@link SubscriptionsListenRequestsubscriptions/listen} stream: it references the ID of the subscriptions/listen request that opened the stream. Servers MUST NOT use this notification to cancel any other request. The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished. This notification indicates that the result will be unused, so any associated processing SHOULD cease.
ClientResult
Latest MCP Protocol 2026_07_28 Common result fields.
ClientSampling
Latest MCP Protocol 2026_07_28 Present if the client supports sampling from an LLM.
CompleteRequest
Latest MCP Protocol 2026_07_28 A request from the client to the server, to ask for completion options.
CompleteRequestArgument
Latest MCP Protocol 2026_07_28 The argument’s information
CompleteRequestContext
Latest MCP Protocol 2026_07_28 Additional, optional context for completions
CompleteRequestParams
Latest MCP Protocol 2026_07_28 Parameters for a completion/complete request.
CompleteResult
Latest MCP Protocol 2026_07_28 The result returned by the server for a {@link CompleteRequestcompletion/complete} request.
CompleteResultCompletion
Latest MCP Protocol 2026_07_28 CompleteResultCompletion
CompleteResultResponse
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link CompleteRequestcompletion/complete} request.
CreateMessageRequest
Latest MCP Protocol 2026_07_28 A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.
CreateMessageRequestParams
Latest MCP Protocol 2026_07_28 Parameters for a sampling/createMessage request.
CreateMessageResult
Latest MCP Protocol 2026_07_28 The result returned by the client for a {@link CreateMessageRequestsampling/createMessage} request. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.
Cursor
Latest MCP Protocol 2026_07_28 An opaque token used to represent a cursor for pagination.
DiscoverRequest
Latest MCP Protocol 2026_07_28 A request from the client asking the server to advertise its supported protocol versions, capabilities, and other metadata. Servers MUST implement server/discover. Clients MAY call it but are not required to — version negotiation can also happen inline via per-request _meta.
DiscoverResult
Latest MCP Protocol 2026_07_28 The result returned by the server for a {@link DiscoverRequestserver/discover} request.
DiscoverResultResponse
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link DiscoverRequestserver/discover} request.
ElicitRequest
Latest MCP Protocol 2026_07_28 A request from the server to elicit additional information from the user via the client.
ElicitRequestFormParams
Latest MCP Protocol 2026_07_28 The parameters for a request to elicit non-sensitive information from the user via a form in the client.
ElicitRequestFormParamsRequestedSchema
Latest MCP Protocol 2026_07_28 A restricted subset of JSON Schema. Only top-level properties are allowed, without nesting.
ElicitRequestUrlParams
Latest MCP Protocol 2026_07_28 The parameters for a request to elicit information from the user via a URL in the client.
ElicitResult
Latest MCP Protocol 2026_07_28 The result returned by the client for an {@link ElicitRequestelicitation/create} request.
EmbeddedResource
Latest MCP Protocol 2026_07_28 The contents of a resource, embedded into a prompt or tool call result. It is up to the client how best to render embedded resources for the benefit of the LLM and/or the user.
EmptyResult
Latest MCP Protocol 2026_07_28 Common result fields.
GetPromptRequest
Latest MCP Protocol 2026_07_28 Used by the client to get a prompt provided by the server.
GetPromptRequestParams
Latest MCP Protocol 2026_07_28 Parameters for a prompts/get request.
GetPromptResult
Latest MCP Protocol 2026_07_28 The result returned by the server for a {@link GetPromptRequestprompts/get} request.
GetPromptResultResponse
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link GetPromptRequestprompts/get} request.
HeaderMismatchError
Latest MCP Protocol 2026_07_28 Returned when a server rejects a request because the values in the HTTP headers do not match the corresponding values in the request body, or because required headers are missing or malformed. For HTTP, the response status code MUST be 400 Bad Request.
Icon
Latest MCP Protocol 2026_07_28 An optionally-sized icon that can be displayed in a user interface.
Icons
Latest MCP Protocol 2026_07_28 Base interface to add icons property.
ImageContent
Latest MCP Protocol 2026_07_28 An image provided to or from an LLM.
Implementation
Latest MCP Protocol 2026_07_28 Describes the MCP implementation.
InputRequests
Latest MCP Protocol 2026_07_28 A map of server-initiated requests that the client must fulfill. Keys are server-assigned identifiers; values are the request objects.
InputRequiredResult
Latest MCP Protocol 2026_07_28 An InputRequiredResult sent by the server to indicate that additional input is needed before the request can be completed. At least one of inputRequests or requestState MUST be present.
InputResponseRequestParams
Latest MCP Protocol 2026_07_28 InputResponseRequestParams
InputResponses
Latest MCP Protocol 2026_07_28 A map of client responses to server-initiated requests. Keys correspond to the keys in the {@link InputRequests} map; values are the client’s result for each request.
InternalError
Latest MCP Protocol 2026_07_28 A JSON-RPC error indicating that an internal error occurred on the receiver. This error is returned when the receiver encounters an unexpected condition that prevents it from fulfilling the request.
InvalidParamsError
Latest MCP Protocol 2026_07_28 A JSON-RPC error indicating that the method parameters are invalid or malformed. In MCP, this error is returned in various contexts when request parameters fail validation:
InvalidRequestError
Latest MCP Protocol 2026_07_28 A JSON-RPC error indicating that the request is not a valid request object. This error is returned when the message structure does not conform to the JSON-RPC 2.0 specification requirements for a request (e.g., missing required fields like jsonrpc or method, or using invalid types for these fields).
JsonArray
Latest MCP Protocol 2026_07_28 JsonArray
JsonObject
Latest MCP Protocol 2026_07_28 JsonObject
JsonrpcErrorResponse
Latest MCP Protocol 2026_07_28 A response to a request that indicates an error occurred.
JsonrpcNotification
Latest MCP Protocol 2026_07_28 A notification which does not expect a response.
JsonrpcRequest
Latest MCP Protocol 2026_07_28 A request that expects a response.
JsonrpcResultResponse
Latest MCP Protocol 2026_07_28 A successful (non-error) response to a request.
LegacyTitledEnumSchema
Latest MCP Protocol 2026_07_28 Use {@link TitledSingleSelectEnumSchema} instead. This interface will be removed in a future version.
ListPromptsRequest
Latest MCP Protocol 2026_07_28 Sent from the client to request a list of prompts and prompt templates the server has.
ListPromptsResult
Latest MCP Protocol 2026_07_28 The result returned by the server for a {@link ListPromptsRequestprompts/list} request.
ListPromptsResultResponse
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link ListPromptsRequestprompts/list} request.
ListResourceTemplatesRequest
Latest MCP Protocol 2026_07_28 Sent from the client to request a list of resource templates the server has.
ListResourceTemplatesResult
Latest MCP Protocol 2026_07_28 The result returned by the server for a {@link ListResourceTemplatesRequestresources/templates/list} request.
ListResourceTemplatesResultResponse
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link ListResourceTemplatesRequestresources/templates/list} request.
ListResourcesRequest
Latest MCP Protocol 2026_07_28 Sent from the client to request a list of resources the server has.
ListResourcesResult
Latest MCP Protocol 2026_07_28 The result returned by the server for a {@link ListResourcesRequestresources/list} request.
ListResourcesResultResponse
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link ListResourcesRequestresources/list} request.
ListRootsRequest
Latest MCP Protocol 2026_07_28 Sent from the server to request a list of root URIs from the client. Roots allow servers to ask for specific directories or files to operate on. A common example for roots is providing a set of repositories or directories a server should operate on. This request is typically used when the server needs to understand the file system structure or access specific locations that the client has permission to read from.
ListRootsRequestParams
Latest MCP Protocol 2026_07_28 ListRootsRequestParams
ListRootsResult
Latest MCP Protocol 2026_07_28 The result returned by the client for a {@link ListRootsRequestroots/list} request. This result contains an array of {@link Root} objects, each representing a root directory or file that the server can operate on.
ListToolsRequest
Latest MCP Protocol 2026_07_28 Sent from the client to request a list of tools the server has.
ListToolsResult
Latest MCP Protocol 2026_07_28 The result returned by the server for a {@link ListToolsRequesttools/list} request.
ListToolsResultResponse
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link ListToolsRequesttools/list} request.
LoggingMessageNotification
Latest MCP Protocol 2026_07_28 JSONRPCNotification of a log message passed from server to client. The client opts in by setting “io.modelcontextprotocol/logLevel” in a request’s _meta.
LoggingMessageNotificationParams
Latest MCP Protocol 2026_07_28 Parameters for a notifications/message notification.
MetaObject
Latest MCP Protocol 2026_07_28 Represents the contents of a _meta field, which clients and servers use to attach additional metadata to their interactions. Certain key names are reserved by MCP for protocol-level metadata; implementations MUST NOT make assumptions about values at these keys. Additionally, specific schema definitions may reserve particular names for purpose-specific metadata, as declared in those definitions. Valid keys have two segments: Prefix:
MethodNotFoundError
Latest MCP Protocol 2026_07_28 A JSON-RPC error indicating that the requested method does not exist or is not available. In MCP, a server returns this error when a client invokes a method the server does not implement — either a genuinely unknown method, or one gated behind a server capability the server did not advertise (e.g., calling prompts/list when the prompts capability was not advertised). A request that requires a client capability the client did not declare is signalled instead by {@link MissingRequiredClientCapabilityError} (-32021).
MissingRequiredClientCapabilityError
Latest MCP Protocol 2026_07_28 Returned when processing a request requires a capability the client did not declare in clientCapabilities. For HTTP, the response status code MUST be 400 Bad Request.
MissingRequiredClientCapabilityErrorError
Latest MCP Protocol 2026_07_28 MissingRequiredClientCapabilityErrorError
MissingRequiredClientCapabilityErrorErrorData
Latest MCP Protocol 2026_07_28 MissingRequiredClientCapabilityErrorErrorData
ModelHint
Latest MCP Protocol 2026_07_28 Hints to use for model selection. Keys not declared here are currently left unspecified by the spec and are up to the client to interpret.
ModelPreferences
Latest MCP Protocol 2026_07_28 The server’s preferences for model selection, requested of the client during sampling. Because LLMs can vary along multiple dimensions, choosing the “best” model is rarely straightforward. Different models excel in different areas—some are faster but less capable, others are more capable but more expensive, and so on. This interface allows servers to express their priorities across multiple dimensions to help clients make an appropriate selection for their use case. These preferences are always advisory. The client MAY ignore them. It is also up to the client to decide how to interpret these preferences and how to balance them against other considerations.
Notification
Latest MCP Protocol 2026_07_28 Notification
NotificationMetaObject
Latest MCP Protocol 2026_07_28 Extends {@link MetaObject} with additional notification-specific fields. All key naming rules from MetaObject apply.
NotificationParams
Latest MCP Protocol 2026_07_28 Common params for any notification.
NumberSchema
Latest MCP Protocol 2026_07_28 NumberSchema
PaginatedRequest
Latest MCP Protocol 2026_07_28 PaginatedRequest
PaginatedRequestParams
Latest MCP Protocol 2026_07_28 Common params for paginated requests.
PaginatedResult
Latest MCP Protocol 2026_07_28 PaginatedResult
ParseError
Latest MCP Protocol 2026_07_28 A JSON-RPC error indicating that invalid JSON was received by the server. This error is returned when the server cannot parse the JSON text of a message.
ParseProtocolVersionError
ProgressNotification
Latest MCP Protocol 2026_07_28 An out-of-band notification used to inform the receiver of a progress update for a long-running request.
ProgressNotificationParams
Latest MCP Protocol 2026_07_28 Parameters for a {@link ProgressNotificationnotifications/progress} notification.
Prompt
Latest MCP Protocol 2026_07_28 A prompt or prompt template that the server offers.
PromptArgument
Latest MCP Protocol 2026_07_28 Describes an argument that a prompt can accept.
PromptListChangedNotification
Latest MCP Protocol 2026_07_28 An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This is only delivered on a {@link SubscriptionsListenRequestsubscriptions/listen} stream when the client requested it via the promptsListChanged filter field.
PromptMessage
Latest MCP Protocol 2026_07_28 Describes a message returned as part of a prompt. This is similar to {@link SamplingMessage}, but also supports the embedding of resources from the MCP server.
PromptReference
Latest MCP Protocol 2026_07_28 Identifies a prompt.
ReadResourceRequest
Latest MCP Protocol 2026_07_28 Sent from the client to the server, to read a specific resource URI.
ReadResourceRequestParams
Latest MCP Protocol 2026_07_28 Parameters for a resources/read request.
ReadResourceResult
Latest MCP Protocol 2026_07_28 The result returned by the server for a {@link ReadResourceRequestresources/read} request.
ReadResourceResultResponse
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link ReadResourceRequestresources/read} request.
Request
Latest MCP Protocol 2026_07_28 Request
RequestMetaObject
Latest MCP Protocol 2026_07_28 Extends {@link MetaObject} with additional request-specific fields. All key naming rules from MetaObject apply.
RequestParams
Latest MCP Protocol 2026_07_28 Common params for any request.
Resource
Latest MCP Protocol 2026_07_28 A known resource that the server is capable of reading.
ResourceContents
Latest MCP Protocol 2026_07_28 The contents of a specific resource or sub-resource.
ResourceLink
Latest MCP Protocol 2026_07_28 A resource that the server is capable of reading, included in a prompt or tool call result. Note: resource links returned by tools are not guaranteed to appear in the results of {@link ListResourcesRequestresources/list} requests.
ResourceListChangedNotification
Latest MCP Protocol 2026_07_28 An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This is only delivered on a {@link SubscriptionsListenRequestsubscriptions/listen} stream when the client requested it via the resourcesListChanged filter field.
ResourceRequestParams
Latest MCP Protocol 2026_07_28 Common params for resource-related requests.
ResourceTemplate
Latest MCP Protocol 2026_07_28 A template description for resources available on the server.
ResourceTemplateReference
Latest MCP Protocol 2026_07_28 A reference to a resource or resource template definition.
ResourceUpdatedNotification
Latest MCP Protocol 2026_07_28 A notification from the server to the client, informing it that a resource has changed and may need to be read again. This is only sent for resources the client opted in to via the resourceSubscriptions field of a {@link SubscriptionsListenRequestsubscriptions/listen} request.
ResourceUpdatedNotificationParams
Latest MCP Protocol 2026_07_28 Parameters for a notifications/resources/updated notification.
Result
Latest MCP Protocol 2026_07_28 Common result fields.
ResultMetaObject
Latest MCP Protocol 2026_07_28 Extends {@link MetaObject} with additional result-specific fields. All key naming rules from MetaObject apply.
ResultType
Latest MCP Protocol 2026_07_28 Indicates the type of a {@link Result} object, allowing the client to determine how to parse the response. complete - the request completed successfully and the result contains the final content. input_required - the request requires additional input and the result contains an {@link InputRequiredResult} object with instructions for the client to provide additional input before retrying the original request.
Root
Latest MCP Protocol 2026_07_28 Represents a root directory or file that the server can operate on.
RpcError
Latest MCP Protocol 2026_07_28 RpcError
SamplingMessage
Latest MCP Protocol 2026_07_28 Describes a message issued to or received from an LLM API.
ServerCapabilities
Latest MCP Protocol 2026_07_28 Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
ServerCapabilitiesPrompts
Latest MCP Protocol 2026_07_28 Present if the server offers any prompt templates.
ServerCapabilitiesResources
Latest MCP Protocol 2026_07_28 Present if the server offers any resources to read.
ServerCapabilitiesTools
Latest MCP Protocol 2026_07_28 Present if the server offers any tools to call.
StringSchema
Latest MCP Protocol 2026_07_28 StringSchema
SubscriptionFilter
Latest MCP Protocol 2026_07_28 The set of notification types a client may opt in to on a {@link SubscriptionsListenRequestsubscriptions/listen} request. Each notification type is opt-in; the server MUST NOT send notification types the client has not explicitly requested here.
SubscriptionsAcknowledgedNotification
Latest MCP Protocol 2026_07_28 Sent by the server to acknowledge that a {@link SubscriptionsListenRequestsubscriptions/listen} subscription has been established and to report which notification types it agreed to honor. This notification MUST be the first message the server sends carrying the subscription’s ID in io.modelcontextprotocol/subscriptionId. The server MUST NOT send any notification on the subscription before acknowledging it. On stdio, where every subscription shares one channel, this ordering is defined per subscription ID and not per channel: messages belonging to other subscriptions MAY be interleaved before it.
SubscriptionsAcknowledgedNotificationParams
Latest MCP Protocol 2026_07_28 Parameters for a {@link SubscriptionsAcknowledgedNotificationnotifications/subscriptions/acknowledged} notification.
SubscriptionsListenRequest
Latest MCP Protocol 2026_07_28 Sent from the client to open a long-lived channel for receiving notifications outside the context of a specific request. Replaces the previous HTTP GET endpoint and ensures consistent behavior between HTTP and STDIO.
SubscriptionsListenRequestParams
Latest MCP Protocol 2026_07_28 Parameters for a {@link SubscriptionsListenRequestsubscriptions/listen} request.
SubscriptionsListenResult
Latest MCP Protocol 2026_07_28 The response to a {@link SubscriptionsListenRequestsubscriptions/listen} request, signalling that the subscription has ended gracefully (for example, during server shutdown). Because the listen stream is long-lived, this result is sent only when the server tears the subscription down; an abrupt transport close carries no response. The result body is otherwise empty.
SubscriptionsListenResultMetaObject
Latest MCP Protocol 2026_07_28 Extends {@link ResultMetaObject} with the subscription-stream identifier carried by a {@link SubscriptionsListenResult}. All key naming rules from MetaObject apply.
SubscriptionsListenResultResponse
Latest MCP Protocol 2026_07_28 A successful response from the server for a {@link SubscriptionsListenRequestsubscriptions/listen} request, sent when the server tears the subscription down gracefully.
TextContent
Latest MCP Protocol 2026_07_28 Text provided to or from an LLM.
TextResourceContents
Latest MCP Protocol 2026_07_28 TextResourceContents
TitledMultiSelectEnumSchema
Latest MCP Protocol 2026_07_28 Schema for multiple-selection enumeration with display titles for each option.
TitledMultiSelectEnumSchemaItems
Latest MCP Protocol 2026_07_28 Schema for array items with enum options and display labels.
TitledMultiSelectEnumSchemaItemsAnyOfItem
Latest MCP Protocol 2026_07_28 TitledMultiSelectEnumSchemaItemsAnyOfItem
TitledSingleSelectEnumSchema
Latest MCP Protocol 2026_07_28 Schema for single-selection enumeration with display titles for each option.
TitledSingleSelectEnumSchemaOneOfItem
Latest MCP Protocol 2026_07_28 TitledSingleSelectEnumSchemaOneOfItem
Tool
Latest MCP Protocol 2026_07_28 Definition for a tool the client can call.
ToolAnnotations
Latest MCP Protocol 2026_07_28 Additional properties describing a {@link Tool} to clients. NOTE: all properties in ToolAnnotations are hints. They are not guaranteed to provide a faithful description of tool behavior (including descriptive properties like title). Clients should never make tool use decisions based on ToolAnnotations received from untrusted servers.
ToolChoice
Latest MCP Protocol 2026_07_28 Controls tool selection behavior for sampling requests.
ToolInputSchema
Latest MCP Protocol 2026_07_28 A JSON Schema object defining the expected parameters for the tool. Tool arguments are always JSON objects, so type: “object” is required at the root. Beyond that, any JSON Schema 2020-12 keyword may appear alongside type — including composition keywords (oneOf, anyOf, allOf, not), conditional keywords (if/then/else), reference keywords ($ref, $defs, $anchor), and any other standard validation or annotation keywords. Property schemas may carry an x-mcp-header annotation to mirror the argument value into an HTTP header on the Streamable HTTP transport. See the Streamable HTTP transport specification for the validity and extraction rules. Defaults to JSON Schema 2020-12 when no explicit $schema is provided.
ToolListChangedNotification
Latest MCP Protocol 2026_07_28 An optional notification from the server to the client, informing it that the list of tools it offers has changed. This is only delivered on a {@link SubscriptionsListenRequestsubscriptions/listen} stream when the client requested it via the toolsListChanged filter field.
ToolOutputSchema
Latest MCP Protocol 2026_07_28 An optional JSON Schema object defining the structure of the tool’s output returned in the structuredContent field of a {@link CallToolResult}. This can be any valid JSON Schema 2020-12. Defaults to JSON Schema 2020-12 when no explicit $schema is provided.
ToolResultContent
Latest MCP Protocol 2026_07_28 The result of a tool use, provided by the user back to the assistant.
ToolUseContent
Latest MCP Protocol 2026_07_28 A request from the assistant to call a tool.
UnsupportedProtocolVersionError
Latest MCP Protocol 2026_07_28 Returned when the request’s protocol version is unknown to the server or unsupported (e.g., a known experimental or draft version the server has chosen not to implement). For HTTP, the response status code MUST be 400 Bad Request.
UnsupportedProtocolVersionErrorError
Latest MCP Protocol 2026_07_28 UnsupportedProtocolVersionErrorError
UnsupportedProtocolVersionErrorErrorData
Latest MCP Protocol 2026_07_28 UnsupportedProtocolVersionErrorErrorData
UntitledMultiSelectEnumSchema
Latest MCP Protocol 2026_07_28 Schema for multiple-selection enumeration without display titles for options.
UntitledMultiSelectEnumSchemaItems
Latest MCP Protocol 2026_07_28 Schema for the array items.
UntitledSingleSelectEnumSchema
Latest MCP Protocol 2026_07_28 Schema for single-selection enumeration without display titles for options.

Enums§

CacheableResultCacheScope
Latest MCP Protocol 2026_07_28 Indicates the intended scope of the cached response, analogous to HTTP Cache-Control: public vs Cache-Control: private.
CallToolResultResponseResult
Latest MCP Protocol 2026_07_28 CallToolResultResponseResult
ClientRequest
Latest MCP Protocol 2026_07_28 ClientRequest
CompleteRequestRef
Latest MCP Protocol 2026_07_28 CompleteRequestRef
ContentBlock
Latest MCP Protocol 2026_07_28 ContentBlock
CreateMessageContent
Latest MCP Protocol 2026_07_28 CreateMessageContent
DiscoverResultCacheScope
Latest MCP Protocol 2026_07_28 Indicates the intended scope of the cached response, analogous to HTTP Cache-Control: public vs Cache-Control: private.
ElicitRequestParams
Latest MCP Protocol 2026_07_28 The parameters for a request to elicit additional information from the user via the client.
ElicitResultAction
Latest MCP Protocol 2026_07_28 The user action in response to the elicitation.
ElicitResultContent
Latest MCP Protocol 2026_07_28 ElicitResultContent
ElicitResultContentPrimitive
Latest MCP Protocol 2026_07_28 ElicitResultContentPrimitive
EmbeddedResourceResource
Latest MCP Protocol 2026_07_28 EmbeddedResourceResource
EnumSchema
Latest MCP Protocol 2026_07_28 EnumSchema
GetPromptResultResponseResult
Latest MCP Protocol 2026_07_28 GetPromptResultResponseResult
IconTheme
Latest MCP Protocol 2026_07_28 Optional specifier for the theme this icon is designed for. “light” indicates the icon is designed to be used with a light background, and “dark” indicates the icon is designed to be used with a dark background. If not provided, the client should assume the icon can be used with any theme.
IncludeContext
Latest MCP Protocol 2026_07_28 A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request. Default is “none”. The values “thisServer” and “allServers” are deprecated (SEP-2596): servers SHOULD omit this field or use “none”, and SHOULD only use the deprecated values if the client declares {@link ClientCapabilities.sampling.context}.
InputRequest
Latest MCP Protocol 2026_07_28 InputRequest
InputResponse
Latest MCP Protocol 2026_07_28 InputResponse
JsonValue
Latest MCP Protocol 2026_07_28 JsonValue
JsonValueVariant2
Latest MCP Protocol 2026_07_28 JsonValueVariant2
JsonrpcMessage
Latest MCP Protocol 2026_07_28 Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
JsonrpcResponse
Latest MCP Protocol 2026_07_28 A response to a request, containing either the result or error.
ListPromptsResultCacheScope
Latest MCP Protocol 2026_07_28 Indicates the intended scope of the cached response, analogous to HTTP Cache-Control: public vs Cache-Control: private.
ListResourceTemplatesResultCacheScope
Latest MCP Protocol 2026_07_28 Indicates the intended scope of the cached response, analogous to HTTP Cache-Control: public vs Cache-Control: private.
ListResourcesResultCacheScope
Latest MCP Protocol 2026_07_28 Indicates the intended scope of the cached response, analogous to HTTP Cache-Control: public vs Cache-Control: private.
ListToolsResultCacheScope
Latest MCP Protocol 2026_07_28 Indicates the intended scope of the cached response, analogous to HTTP Cache-Control: public vs Cache-Control: private.
LoggingLevel
Latest MCP Protocol 2026_07_28 The severity of a log message. These map to syslog message severities, as specified in RFC-5424: https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
MultiSelectEnumSchema
Latest MCP Protocol 2026_07_28 MultiSelectEnumSchema
NumberSchemaType
Latest MCP Protocol 2026_07_28 NumberSchemaType
PrimitiveSchemaDefinition
Latest MCP Protocol 2026_07_28 Restricted schema definitions that only allow primitive types without nested objects or arrays.
ProgressToken
Latest MCP Protocol 2026_07_28 A progress token, used to associate progress notifications with the original request.
ProtocolVersion
ReadResourceContent
Latest MCP Protocol 2026_07_28 ReadResourceContent
ReadResourceResultCacheScope
Latest MCP Protocol 2026_07_28 Indicates the intended scope of the cached response, analogous to HTTP Cache-Control: public vs Cache-Control: private.
ReadResourceResultResponseResult
Latest MCP Protocol 2026_07_28 ReadResourceResultResponseResult
RequestId
Latest MCP Protocol 2026_07_28 A uniquely identifying ID for a request in JSON-RPC.
Role
Latest MCP Protocol 2026_07_28 The sender or recipient of messages and data in a conversation.
SamplingMessageContent
Latest MCP Protocol 2026_07_28 SamplingMessageContent
SamplingMessageContentBlock
Latest MCP Protocol 2026_07_28 SamplingMessageContentBlock
ServerNotification
Latest MCP Protocol 2026_07_28 ServerNotification
ServerResult
Latest MCP Protocol 2026_07_28 ServerResult
SingleSelectEnumSchema
Latest MCP Protocol 2026_07_28 SingleSelectEnumSchema
StringSchemaFormat
Latest MCP Protocol 2026_07_28 StringSchemaFormat
ToolChoiceMode
Latest MCP Protocol 2026_07_28 Controls the tool use ability of the model:

Constants§

HEADER_MISMATCH
Latest MCP Protocol 2026_07_28 HEADER_MISMATCH
INTERNAL_ERROR
Latest MCP Protocol 2026_07_28 Internal error. Internal JSON-RPC error.
INVALID_PARAMS
Latest MCP Protocol 2026_07_28 Invalid param. Invalid method parameter(s).
INVALID_REQUEST
Latest MCP Protocol 2026_07_28 Invalid Request. The JSON sent is not a valid Request object.
JSONRPC_VERSION
Latest MCP Protocol 2026_07_28 JSON-RPC Version
LATEST_PROTOCOL_VERSION
Latest MCP Protocol 2026_07_28 MCP Protocol Version
METHOD_NOT_FOUND
Latest MCP Protocol 2026_07_28 Method not found. The method does not exist / is not available.
MISSING_REQUIRED_CLIENT_CAPABILITY
Latest MCP Protocol 2026_07_28 MISSING_REQUIRED_CLIENT_CAPABILITY
PARSE_ERROR
Latest MCP Protocol 2026_07_28 Parse error. Invalid JSON was received. An error occurred while parsing the JSON text.
UNSUPPORTED_PROTOCOL_VERSION
Latest MCP Protocol 2026_07_28 UNSUPPORTED_PROTOCOL_VERSION

Type Aliases§

CompleteRequestParamsArgumentDeprecated
Latest MCP Protocol 2026_07_28
CompleteRequestParamsContextDeprecated
Latest MCP Protocol 2026_07_28
CompleteRequestParamsRefDeprecated
Latest MCP Protocol 2026_07_28
CreateMessageRequestParamsIncludeContextDeprecated
Latest MCP Protocol 2026_07_28
CreateMessageResultContentDeprecated
Latest MCP Protocol 2026_07_28
ElicitResultContentValueDeprecated
Latest MCP Protocol 2026_07_28
GenericResult
Latest MCP Protocol 2026_07_28 Alias to avoid conflicts with Rust’s standard Result type.
ReadResourceResultContentsItemDeprecated
Latest MCP Protocol 2026_07_28