Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

766 pages for errors.

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/2026-07-28/server/tools …) so the model can see it when deciding to create state. * **Expiry errors.** A call against an expired or unknown handle should return a tool execution error that says so, so the model can recove… Caching Model Context Protocol · in the page specification/2026-07-28/server/utilities/caching …e parameters were invalid). Clients **MAY** serve stale responses if errors occur during re-fetching (e.g., network issues, server downtime). ### Cache Scope Field The `cacheScope` field controls w… Completion Model Context Protocol · in the page specification/2026-07-28/server/utilities/completion …flag ## Error Handling Servers **SHOULD** return standard JSON-RPC errors for common failure cases: * Method not found: `-32601` (Capability not supported) * Invalid prompt name: `-32602` (Invalid… Logging Model Context Protocol · in the page specification/2026-07-28/server/utilities/logging …RPC error: * Invalid log level: `-32602` (Invalid params) * Internal errors: `-32603` (Internal error) ## Implementation Considerations 1. Servers **SHOULD**: * Rate limit log messages * Incl… Authorization Model Context Protocol · in the page specification/draft/basic/authorization/index …rvers **MUST** return appropriate HTTP status codes for authorization errors: | Status Code | Description | Usage | | - | - | - | | 401 | Unauthorized | Authorization required or token invalid | | 40… Overview Model Context Protocol · in the page specification/draft/basic/index …ata` member with additional information of any type, such as nested errors. #### Error Codes MCP uses the standard JSON-RPC 2.0 error codes (`-32700`, `-32600` to `-32603`) for general protocol fa… Multi Round-Trip Requests Model Context Protocol · in the page specification/draft/basic/patterns/mrtr …ect and that the information inside can be correctly parsed. Protocol errors (malformed JSON, invalid schema, internal server errors) **SHOULD** return a JSON-RPC error response with an appropriate er… stdio Model Context Protocol · in the page specification/draft/basic/transports/stdio …pond to unknown pre-`initialize` requests with implementation-defined errors (commonly `-32601` or `-32602`) or not at all. A client that only supports modern versions does not need to probe, but pro… Streamable HTTP Model Context Protocol · in the page specification/draft/basic/transports/streamable-http …rom the sub-range the MCP specification reserves for protocol-defined errors. See [Error Codes](https://modelcontextprotocol.io/specification/draft/basic/index.md#error-codes). **Example error respon… Schema Reference Model Context Protocol · in the page specification/draft/schema …cipient of messages and data in a conversation.</p> </div> </div> ## Errors <div class="type"> ### `Error` <div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span… Prompts Model Context Protocol · in the page specification/draft/server/prompts …flow. ## Error Handling Servers **SHOULD** return standard JSON-RPC errors for common failure cases: * Invalid prompt name: `-32602` (Invalid params) * Missing required arguments: `-32602` (Invalid… Resources Model Context Protocol · in the page specification/draft/server/resources …02` (Invalid Params). Servers **SHOULD** return `-32603` for internal errors. For backwards compatibility, clients **SHOULD** also accept `-32002` as a resource not found error, as earlier protocol v… Tools Model Context Protocol · in the page specification/draft/server/tools …) so the model can see it when deciding to create state. * **Expiry errors.** A call against an expired or unknown handle should return a tool execution error that says so, so the model can recove… Caching Model Context Protocol · in the page specification/draft/server/utilities/caching …e parameters were invalid). Clients **MAY** serve stale responses if errors occur during re-fetching (e.g., network issues, server downtime). ### Cache Scope Field The `cacheScope` field controls w… Completion Model Context Protocol · in the page specification/draft/server/utilities/completion …flag ## Error Handling Servers **SHOULD** return standard JSON-RPC errors for common failure cases: * Method not found: `-32601` (Capability not supported) * Invalid prompt name: `-32602` (Invalid… Logging Model Context Protocol · in the page specification/draft/server/utilities/logging …RPC error: * Invalid log level: `-32602` (Invalid params) * Internal errors: `-32603` (Internal error) ## Implementation Considerations 1. Servers **SHOULD**: * Rate limit log messages * Incl…
Feedback