Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

1,293 pages for type.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Tools Model Context Protocol · in the page specification/2025-11-25/server/tools …ther information for a location", "inputSchema": { "type": "object", "properties": { "location": { "type": "string", "description":… Completion Model Context Protocol · in the page specification/2025-11-25/server/utilities/completion …may show completion suggestions in a dropdown or popup menu as users type, with the ability to filter and select from available options. However, implementations are free to expose completion throug… Client Registration Model Context Protocol · in the page specification/2026-07-28/basic/authorization/client-registration ….1:3000/callback", "http://localhost:3000/callback" ], "grant_types": ["authorization_code"], "response_types": ["code"], "token_endpoint_auth_method": "none" } ``` ### Client ID Metadata… Authorization Model Context Protocol · in the page specification/2026-07-28/basic/authorization/index …-14#section-4.3) * **SHOULD** include `refresh_token` in their `grant_types` client metadata * **MAY** add `offline_access` to the `scope` parameter of the authorization and token requests when the Au… Overview Model Context Protocol · in the page specification/2026-07-28/basic/index …nents that work together: * **Base Protocol**: Core JSON-RPC message types * **Versioning and Compatibility**: Protocol version negotiation, extension negotiation, and interoperability with earlier p… Overview Model Context Protocol · in the page specification/2026-07-28/basic/patterns/index …quest; the reply is a long-lived stream of the requested notification types. Stream state is scoped to the request: if the underlying channel is lost, the client re-issues the request. ```mermaid the… Multi Round-Trip Requests Model Context Protocol · in the page specification/2026-07-28/basic/patterns/mrtr …omplete the request. S-->>C: Result (id: 2, result) ``` ### Core Types This flow is implemented in MCP using the following Types. #### InputRequests An [`InputRequests`](/specification/2026-07… Subscriptions Model Context Protocol · in the page specification/2026-07-28/basic/patterns/subscriptions …/listen` request with a `notifications` filter specifying which event types it wants to receive. The server **MUST NOT** send notification types the client has not explicitly requested. ```json theme… Streamable HTTP Model Context Protocol · in the page specification/2026-07-28/basic/transports/streamable-http …th `application/json` and `text/event-stream` as supported content types. 3. The client **MUST** include the [request metadata headers](#request-metadata) on each POST request. 4. The body of th… Versioning and Compatibility Model Context Protocol · in the page specification/2026-07-28/basic/versioning …"extensions": { "io.modelcontextprotocol/ui": { "mimeTypes": ["text/html;profile=mcp-app"] } } } } ``` An example of [Tasks extension](/extensions/tasks/overview) identif… Key Changes Model Context Protocol · in the page specification/2026-07-28/changelog …-in server-to-client change notifications. Clients opt in to specific types (`toolsListChanged`, `promptsListChanged`, `resourcesListChanged`, `resourceSubscriptions`); the server acknowledges and tag… Elicitation Model Context Protocol · in the page specification/2026-07-28/client/elicitation …itation requests **MUST** include the following parameters: | Name | Type | Options | Description | | - | - | - | - | | `mode` | string | `form`, `url` | The mode of the elicitation. Optional for for… Roots Model Context Protocol · in the page specification/2026-07-28/client/roots …s/call(id: 2, inputResponses{key: roots} + requestState) ``` ## Data Types ### Root A root definition includes: * `uri`: Unique identifier for the root. This **MUST** be a `file://` URI in the cur… Sampling Model Context Protocol · in the page specification/2026-07-28/client/sampling …s": [ { "role": "user", "content": { "type": "text", "text": "What is the capital of France?" } } ], "modelPreferences": { "hints"… Specification Model Context Protocol · in the page specification/2026-07-28/index …ication defines the authoritative protocol requirements, based on the TypeScript schema in [schema.ts](https://github.com/modelcontextprotocol/specification/blob/main/schema/2026-07-28/schema.ts). Fo… Schema Reference Model Context Protocol · in the page specification/2026-07-28/schema …ma Reference <div id="schema-reference" /> ## JSON-RPC <div class="type"> ### `JSONRPCErrorResponse` <div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class… Discovery Model Context Protocol · in the page specification/2026-07-28/server/discover …{ "jsonrpc": "2.0", "id": "discover-1", "result": { "resultType": "complete", "supportedVersions": ["2026-07-28"], "capabilities": { "tools": {}, "resources": {} },… Prompts Model Context Protocol · in the page specification/2026-07-28/server/prompts …heme={null} { "jsonrpc": "2.0", "id": 1, "result": { "resultType": "complete", "prompts": [ { "name": "code_review", "title": "Request Code Review", "descri… Resources Model Context Protocol · in the page specification/2026-07-28/server/resources …heme={null} { "jsonrpc": "2.0", "id": 1, "result": { "resultType": "complete", "resources": [ { "uri": "file:///project/src/main.rs", "name": "main.rs", "ti… Tools Model Context Protocol · in the page specification/2026-07-28/server/tools …heme={null} { "jsonrpc": "2.0", "id": 1, "result": { "resultType": "complete", "tools": [ { "name": "get_weather", "title": "Weather Information Provider",… Caching Model Context Protocol · in the page specification/2026-07-28/server/utilities/caching …le Results Servers MUST include caching hints on results with `resultType: "complete"` returned by the following operations: * `server/discover` * `tools/list` * `prompts/list` * `resources/list` *… Completion Model Context Protocol · in the page specification/2026-07-28/server/utilities/completion …may show completion suggestions in a dropdown or popup menu as users type, with the ability to filter and select from available options. However, implementations are free to expose completion throug… Pagination Model Context Protocol · in the page specification/2026-07-28/server/utilities/pagination …={null} { "jsonrpc": "2.0", "id": "123", "result": { "resultType": "complete", "resources": [...], "nextCursor": "eyJwYWdlIjogM30=", "ttlMs": 300000, "cacheScope": "public"… Client Registration Model Context Protocol · in the page specification/draft/basic/authorization/client-registration ….0.0.1:3000/callback", "http://[::1]:3000/callback" ], "grant_types": ["authorization_code"], "response_types": ["code"], "token_endpoint_auth_method": "none" } ``` ### Client ID Metadata… Authorization Model Context Protocol · in the page specification/draft/basic/authorization/index …-14#section-4.3) * **SHOULD** include `refresh_token` in their `grant_types` client metadata * **MAY** add `offline_access` to the `scope` parameter of the authorization and token requests when the Au… Overview Model Context Protocol · in the page specification/draft/basic/index …nents that work together: * **Base Protocol**: Core JSON-RPC message types * **Versioning and Compatibility**: Protocol version negotiation, extension negotiation, and interoperability with earlier p… Overview Model Context Protocol · in the page specification/draft/basic/patterns/index …quest; the reply is a long-lived stream of the requested notification types. Stream state is scoped to the request: if the underlying channel is lost, the client re-issues the request. ```mermaid the… Multi Round-Trip Requests Model Context Protocol · in the page specification/draft/basic/patterns/mrtr …omplete the request. S-->>C: Result (id: 2, result) ``` ### Core Types This flow is implemented in MCP using the following Types. #### InputRequests An [`InputRequests`](/specification/draft/s… Subscriptions Model Context Protocol · in the page specification/draft/basic/patterns/subscriptions …/listen` request with a `notifications` filter specifying which event types it wants to receive. The server **MUST NOT** send notification types the client has not explicitly requested. ```json theme… Streamable HTTP Model Context Protocol · in the page specification/draft/basic/transports/streamable-http …th `application/json` and `text/event-stream` as supported content types. 3. The client **MUST** include the [request metadata headers](#request-metadata) on each POST request. 4. The body of th… Versioning and Compatibility Model Context Protocol · in the page specification/draft/basic/versioning …"extensions": { "io.modelcontextprotocol/ui": { "mimeTypes": ["text/html;profile=mcp-app"] } } } } ``` An example of [Tasks extension](/extensions/tasks/overview) identif… Elicitation Model Context Protocol · in the page specification/draft/client/elicitation …itation requests **MUST** include the following parameters: | Name | Type | Options | Description | | - | - | - | - | | `mode` | string | `form`, `url` | The mode of the elicitation. Optional for for… Roots Model Context Protocol · in the page specification/draft/client/roots …s/call(id: 2, inputResponses{key: roots} + requestState) ``` ## Data Types ### Root A root definition includes: * `uri`: Unique identifier for the root. This **MUST** be a `file://` URI in the cur… Sampling Model Context Protocol · in the page specification/draft/client/sampling …s": [ { "role": "user", "content": { "type": "text", "text": "What is the capital of France?" } } ], "modelPreferences": { "hints"… Specification Model Context Protocol · in the page specification/draft/index …ication defines the authoritative protocol requirements, based on the TypeScript schema in [schema.ts](https://github.com/modelcontextprotocol/specification/blob/main/schema/draft/schema.ts). For imp… Schema Reference Model Context Protocol · in the page specification/draft/schema …ma Reference <div id="schema-reference" /> ## JSON-RPC <div class="type"> ### `JSONRPCErrorResponse` <div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class… Discovery Model Context Protocol · in the page specification/draft/server/discover …{ "jsonrpc": "2.0", "id": "discover-1", "result": { "resultType": "complete", "supportedVersions": ["2026-07-28"], "capabilities": { "tools": {}, "resources": {} },… Prompts Model Context Protocol · in the page specification/draft/server/prompts …heme={null} { "jsonrpc": "2.0", "id": 1, "result": { "resultType": "complete", "prompts": [ { "name": "code_review", "title": "Request Code Review", "descri… Resources Model Context Protocol · in the page specification/draft/server/resources …heme={null} { "jsonrpc": "2.0", "id": 1, "result": { "resultType": "complete", "resources": [ { "uri": "file:///project/src/main.rs", "name": "main.rs", "ti… Tools Model Context Protocol · in the page specification/draft/server/tools …heme={null} { "jsonrpc": "2.0", "id": 1, "result": { "resultType": "complete", "tools": [ { "name": "get_weather", "title": "Weather Information Provider",… Caching Model Context Protocol · in the page specification/draft/server/utilities/caching …le Results Servers MUST include caching hints on results with `resultType: "complete"` returned by the following operations: * `server/discover` * `tools/list` * `prompts/list` * `resources/list` *… Completion Model Context Protocol · in the page specification/draft/server/utilities/completion …may show completion suggestions in a dropdown or popup menu as users type, with the ability to filter and select from available options. However, implementations are free to expose completion throug… Pagination Model Context Protocol · in the page specification/draft/server/utilities/pagination …={null} { "jsonrpc": "2.0", "id": "123", "result": { "resultType": "complete", "resources": [...], "nextCursor": "eyJwYWdlIjogM30=", "ttlMs": 300000, "cacheScope": "public"…
Feedback