1,295 pages for code.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Resources
Model Context Protocol · in the page
specification/2025-11-25/server/resources
…"file:///example.png", "mimeType": "image/png", "blob": "base64-encoded-data" } ``` ### Annotations Resources, resource templates and content blocks support optional annotations that provide hin…
Tools
Model Context Protocol · in the page
specification/2025-11-25/server/tools
…"type": "string", "description": "City name or zip code" } }, "required": ["location"] }, "icons": [ { "src": "…
Completion
Model Context Protocol · in the page
specification/2025-11-25/server/utilities/completion
…CP is designed to support interactive user experiences similar to IDE code completion. For example, applications may show completion suggestions in a dropdown or popup menu as users type, with the ab…
Pagination
Model Context Protocol · in the page
specification/2025-11-25/server/utilities/pagination
…## Error Handling Invalid cursors **SHOULD** result in an error with code -32602 (Invalid params).
Architecture
Model Context Protocol · in the page
specification/2026-07-28/architecture/index
…ze implementation overhead * Clear separation enables maintainable code 2. **Servers should be highly composable** * Each server provides focused functionality in isolation * Multiple server…
Client Registration
Model Context Protocol · in the page
specification/2026-07-28/basic/authorization/client-registration
…http://localhost:3000/callback" ], "grant_types": ["authorization_code"], "response_types": ["code"], "token_endpoint_auth_method": "none" } ``` ### Client ID Metadata Documents Flow The fol…
Authorization
Model Context Protocol · in the page
specification/2026-07-28/basic/authorization/index
…cord expected issuer C->>B: Open browser with authorization URL + code_challenge + resource B->>A: Authorization request with resource parameter Note over A: User authorizes A->>B: Red…
Authorization Security Considerations
Model Context Protocol · in the page
specification/2026-07-28/basic/authorization/security-considerations
…t URIs **MUST** be either `localhost` or use HTTPS. ## Authorization Code Protection An attacker who has gained access to an authorization code contained in an authorization response can try to rede…
Overview
Model Context Protocol · in the page
specification/2026-07-28/basic/index
…eme={null} { jsonrpc: "2.0"; id?: string | number; error: { code: number; message: string; data?: unknown; } } ``` * Error responses **MUST** include the same ID as the request th…
Multi Round-Trip Requests
Model Context Protocol · in the page
specification/2026-07-28/basic/patterns/mrtr
…l information without maintaining any server-side state. The server encodes any needed context into the `requestState` field, which the client echoes back on retry. ```mermaid theme={null} sequenceDi…
Overview
Model Context Protocol · in the page
specification/2026-07-28/basic/transports/index
…transports](#custom-transports). ## Messages MCP uses JSON-RPC to encode messages. JSON-RPC messages **MUST** be UTF-8 encoded. A binding **MUST** deliver client-sent *requests* and *notifications*…
stdio
Model Context Protocol · in the page
specification/2026-07-28/basic/transports/stdio
…handshake. The fallback **MUST NOT** be keyed to one specific error code: legacy servers respond to unknown pre-`initialize` requests with implementation-defined errors (commonly `-32601` or `-32602…
Streamable HTTP
Model Context Protocol · in the page
specification/2026-07-28/basic/transports/streamable-http
…* If the server accepts it, the server **MUST** return HTTP status code `202 Accepted` with no body. * If the server cannot accept it, it **MUST** return an HTTP error status code (e.g…
Versioning and Compatibility
Model Context Protocol · in the page
specification/2026-07-28/basic/versioning
…`json theme={null} { "jsonrpc": "2.0", "id": 1, "error": { "code": -32022, "message": "Unsupported protocol version", "data": { "supported": ["2026-07-28", "2025-11-25"],…
Key Changes
Model Context Protocol · in the page
specification/2026-07-28/changelog
…/modelcontextprotocol/pull/2549)). 6. Change resource not found error code from `-32002` to `-32602` (Invalid Params) to align with JSON-RPC specification. 7. Authorization servers **SHOULD** include…
Elicitation
Model Context Protocol · in the page
specification/2026-07-28/client/elicitation
…an start the authorization flow and an optional `requestState` that encodes information about the elicitation request and user (if needed). 4. The user completes the OAuth flow directly with the third…
Sampling
Model Context Protocol · in the page
specification/2026-07-28/client/sampling
…ontent ```json theme={null} { "type": "image", "data": "base64-encoded-image-data", "mimeType": "image/jpeg" } ``` #### Audio Content ```json theme={null} { "type": "audio", "data": "base…
Specification
Model Context Protocol · in the page
specification/2026-07-28/index
…tocol enables powerful capabilities through arbitrary data access and code execution paths. With this power comes important security and trust considerations that all implementors must carefully addre…
Schema Reference
Model Context Protocol · in the page
specification/2026-07-28/schema
…tsd-typography"><p>Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.</p> </div> </div> <div class="type"> ### `JSONRPCNotification` <div class="tsd-si…
Discovery
Model Context Protocol · in the page
specification/2026-07-28/server/discover
…ompatibility probe.** On stdio, there is no per-request HTTP status code to drive fallback. A client that supports both modern (per-request `_meta`) and legacy (`initialize` handshake) servers **S…
Prompts
Model Context Protocol · in the page
specification/2026-07-28/server/prompts
…"resultType": "complete", "prompts": [ { "name": "code_review", "title": "Request Code Review", "description": "Asks the LLM to analyze code quality and suggest imp…
Resources
Model Context Protocol · in the page
specification/2026-07-28/server/resources
…"file:///example.png", "mimeType": "image/png", "blob": "base64-encoded-data" } ``` ### Annotations Resources, resource templates and content blocks support optional annotations that provide hin…
Tools
Model Context Protocol · in the page
specification/2026-07-28/server/tools
…"type": "string", "description": "City name or zip code" } }, "required": ["location"] }, "icons": [ { "src": "…
Completion
Model Context Protocol · in the page
specification/2026-07-28/server/utilities/completion
…CP is designed to support interactive user experiences similar to IDE code completion. For example, applications may show completion suggestions in a dropdown or popup menu as users type, with the ab…
Pagination
Model Context Protocol · in the page
specification/2026-07-28/server/utilities/pagination
…## Error Handling Invalid cursors **SHOULD** result in an error with code -32602 (Invalid params).
Architecture
Model Context Protocol · in the page
specification/draft/architecture/index
…ze implementation overhead * Clear separation enables maintainable code 2. **Servers should be highly composable** * Each server provides focused functionality in isolation * Multiple server…
Client Registration
Model Context Protocol · in the page
specification/draft/basic/authorization/client-registration
…"http://[::1]:3000/callback" ], "grant_types": ["authorization_code"], "response_types": ["code"], "token_endpoint_auth_method": "none" } ``` ### Client ID Metadata Documents Flow The fol…
Authorization
Model Context Protocol · in the page
specification/draft/basic/authorization/index
…cord expected issuer C->>B: Open browser with authorization URL + code_challenge + resource B->>A: Authorization request with resource parameter Note over A: User authorizes A->>B: Red…
Authorization Security Considerations
Model Context Protocol · in the page
specification/draft/basic/authorization/security-considerations
…t URIs **MUST** be either `localhost` or use HTTPS. ## Authorization Code Protection An attacker who has gained access to an authorization code contained in an authorization response can try to rede…
Overview
Model Context Protocol · in the page
specification/draft/basic/index
…eme={null} { jsonrpc: "2.0"; id?: string | number; error: { code: number; message: string; data?: unknown; } } ``` * Error responses **MUST** include the same ID as the request th…
Multi Round-Trip Requests
Model Context Protocol · in the page
specification/draft/basic/patterns/mrtr
…l information without maintaining any server-side state. The server encodes any needed context into the `requestState` field, which the client echoes back on retry. ```mermaid theme={null} sequenceDi…
Overview
Model Context Protocol · in the page
specification/draft/basic/transports/index
…transports](#custom-transports). ## Messages MCP uses JSON-RPC to encode messages. JSON-RPC messages **MUST** be UTF-8 encoded. A binding **MUST** deliver client-sent *requests* and *notifications*…
stdio
Model Context Protocol · in the page
specification/draft/basic/transports/stdio
…handshake. The fallback **MUST NOT** be keyed to one specific error code: legacy servers respond to unknown pre-`initialize` requests with implementation-defined errors (commonly `-32601` or `-32602…
Streamable HTTP
Model Context Protocol · in the page
specification/draft/basic/transports/streamable-http
…* If the server accepts it, the server **MUST** return HTTP status code `202 Accepted` with no body. * If the server cannot accept it, it **MUST** return an HTTP error status code (e.g…
Versioning and Compatibility
Model Context Protocol · in the page
specification/draft/basic/versioning
…`json theme={null} { "jsonrpc": "2.0", "id": 1, "error": { "code": -32022, "message": "Unsupported protocol version", "data": { "supported": ["2026-07-28", "2025-11-25"],…
Elicitation
Model Context Protocol · in the page
specification/draft/client/elicitation
…an start the authorization flow and an optional `requestState` that encodes information about the elicitation request and user (if needed). 4. The user completes the OAuth flow directly with the third…
Sampling
Model Context Protocol · in the page
specification/draft/client/sampling
…ontent ```json theme={null} { "type": "image", "data": "base64-encoded-image-data", "mimeType": "image/jpeg" } ``` #### Audio Content ```json theme={null} { "type": "audio", "data": "base…
Specification
Model Context Protocol · in the page
specification/draft/index
…tocol enables powerful capabilities through arbitrary data access and code execution paths. With this power comes important security and trust considerations that all implementors must carefully addre…
Schema Reference
Model Context Protocol · in the page
specification/draft/schema
…tsd-typography"><p>Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.</p> </div> </div> <div class="type"> ### `JSONRPCNotification` <div class="tsd-si…
Discovery
Model Context Protocol · in the page
specification/draft/server/discover
…ompatibility probe.** On stdio, there is no per-request HTTP status code to drive fallback. A client that supports both modern (per-request `_meta`) and legacy (`initialize` handshake) servers **S…
Prompts
Model Context Protocol · in the page
specification/draft/server/prompts
…"resultType": "complete", "prompts": [ { "name": "code_review", "title": "Request Code Review", "description": "Asks the LLM to analyze code quality and suggest imp…
Resources
Model Context Protocol · in the page
specification/draft/server/resources
…"file:///example.png", "mimeType": "image/png", "blob": "base64-encoded-data" } ``` ### Annotations Resources, resource templates and content blocks support optional annotations that provide hin…
Tools
Model Context Protocol · in the page
specification/draft/server/tools
…"type": "string", "description": "City name or zip code" } }, "required": ["location"] }, "icons": [ { "src": "…
Completion
Model Context Protocol · in the page
specification/draft/server/utilities/completion
…CP is designed to support interactive user experiences similar to IDE code completion. For example, applications may show completion suggestions in a dropdown or popup menu as users type, with the ab…
Pagination
Model Context Protocol · in the page
specification/draft/server/utilities/pagination
…## Error Handling Invalid cursors **SHOULD** result in an error with code -32602 (Invalid params).