393 pages for failure.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Build an MCP client
Model Context Protocol · in the page
docs/draft/develop/build-client
…red results against their output schemas > 4. Tool results, including failures marked with `is_error`, are sent back to Claude together with Claude's own blocks, unchanged > 5. Steps 2 through 4 repea…
Build an MCP server
Model Context Protocol · in the page
docs/draft/develop/build-server
…ted with `CallToolResult::error`, which the client receives as a tool failure. > > ### Implementing the ServerHandler > > Implement the `ServerHandler` trait to declare the server's name, version, and…
Client Best Practices
Model Context Protocol · in the page
docs/draft/develop/clients/client-best-practices
…cification/draft/server/tools#error-handling) rather than a transport failure. Generated wrappers should convert this into a thrown exception so model-authored code can use `try`/`catch`. If an uncaug…
Connect to local MCP servers
Model Context Protocol · in the page
docs/draft/develop/connect-local-servers
…og` will contain general logging about MCP connections and connection failures. > > * Files named `mcp-server-SERVERNAME.log` will contain the stderr output from the named server. Stdio servers may us…
Authorization
Model Context Protocol · in the page
docs/draft/tools/inspector/authorization
…un. With rotating (single-use) > refresh tokens that opens two narrow failure windows: two concurrent > invocations against the same state file can race for the token, and a crash > between a successf…
CLI client
Model Context Protocol · in the page
docs/draft/tools/inspector/cli
…issing tool exits `5`, so a typo isn't mistaken for "no app". A probe failure (unreadable UI resource, malformed `resourceUri`) is reported in a `resourceError` field rather than aborting, so one bad…
Configuration and flags
Model Context Protocol · in the page
docs/draft/tools/inspector/configuration
…MCP_DEBUG` | Append the error stack to a top-level `--web` or `--tui` failure (a `--cli` failure always prints its [JSON error envelope](https://modelcontextprotocol.io/docs/draft/tools/inspector/cli.…
Load testing
Model Context Protocol · in the page
docs/draft/tools/inspector/load-testing
…sults that carry `isError: true`, meaning the tool ran and reported a failure. **`errors`** counts calls that never produced a result, such as protocol errors, request timeouts or a dropped connection…
Protocol eras
Model Context Protocol · in the page
docs/draft/tools/inspector/protocol-eras
…message to tell them apart. Any other error code renders as a generic failure. *** ## Network and Protocol: headers and the error taxonomy The modern era standardizes a set of `Mcp-*` HTTP headers…
Security
Model Context Protocol · in the page
docs/draft/tools/inspector/security
…When that is not acceptable, use a keychain or the memory store. Two failure modes are deliberately loud rather than silent: * If the key file is missing, unreadable or empty, if `MCP_INSPECTOR_SECR…
Understanding Authorization in MCP
Model Context Protocol · in the page
docs/draft/tutorials/security/authorization
…ntext.HandleResponse(); > var error = context.AuthenticateFailure is null ? "" : "error=\"invalid_token\", "; > context.Response.StatusCode = StatusCodes.Status401Unauthorized;…
Security Best Practices
Model Context Protocol · in the page
docs/draft/tutorials/security/security_best_practices
…vulnerability has two critical dimensions: 1. **Audience validation failures.** When an MCP server doesn't verify that tokens were specifically intended for it (for example, via the audience c…
Skills
Model Context Protocol · in the page
extensions/skills/overview
…rectory URI | JSON-RPC `-32602` (Invalid params). | | Internal server failure | JSON-RPC `-32603` (Internal error). | | Digest, size, frontmatter, or manifest mismatch | Host rejects content and refre…
How to Authenticate When Publishing to the Official MCP Registry
Model Context Protocol · in the page
registry/authentication
…e rather than a browser on a residential network, the usual causes of failure are edge rules that block it: * a WAF, bot-management, or "under attack" rule that challenges or blocks non-browser clien…
Official MCP Registry Terms of Service
Model Context Protocol · in the page
registry/terms-of-service
…tisements; 6. Use the Registry for any activities where the use or failure of the Registry could lead to death, personal injury, or environmental damage; 7. Use the Registry to process or store…
SEP-1036: URL Mode Elicitation for secure out-of-band interactions
Model Context Protocol · in the page
seps/1036-url-mode-elicitation-for-secure-out-of-band-intera
…r elicitation requests * Provide clear error messages for security failures ### Relationship to Existing Security Measures This proposal builds upon and complements existing MCP security measures…
SEP-1303: Input Validation Errors as Tool Execution Errors
Model Context Protocol · in the page
seps/1303-input-validation-errors-as-tool-execution-errors
…hese error messages and thus cannot self-correct, leading to repeated failures and poor user experiences. ### Problem Statement Consider a flight booking tool that validates departure dates using th…
SEP-1577: Sampling With Tools
Model Context Protocol · in the page
seps/1577--sampling-with-tools
…iple tool calls (or alternatively if implemented that way, unexpected failures / costly retry until a single tool call is emitted) * Gemini API's [Function calling modes](https://ai.google.dev/g…
SEP-1613: Establish JSON Schema 2020-12 as Default Dialect for MCP
Model Context Protocol · in the page
seps/1613-establish-json-schema-2020-12-as-default-dialect-f
…a version to use for embedded schemas. This has caused: * Validation failures between clients and servers assuming different versions * Implementation divergence across SDK ecosystems * Developer unc…
SEP-1686: Tasks
Model Context Protocol · in the page
seps/1686-tasks
…the client or the server. This prevents agents from looking into test failures in an incomplete test run until the entire test suite has completed, potentially hours later. ***Ideal:*** Support host a…
SEP-1699: Support SSE polling via server-side disconnect
Model Context Protocol · in the page
seps/1699-support-sse-polling-via-server-side-disconnect
…ts, the client will interpret the disconnection the same as a network failure, and will attempt to reconnect. In order to prevent clients from reconnecting / polling excessively, the server SHOULD sen…
SEP-2133: Extensions
Model Context Protocol · in the page
seps/2133-extensions
…ainers to enforce structure and conformity to extensions. It avoids a failure case of different extensions in an area working in incompatible ways. Also provides a way to delegate much of the governan…
SEP-2148: MCP Contributor Ladder
Model Context Protocol · in the page
seps/2148-contributor-ladder
…emoval:** Community Moderators may be removed by Core Maintainers for failure to uphold moderation standards or Code of Conduct violations. Moderators may step down voluntarily at any time. ### Recog…
SEP-2243: HTTP Header Standardization for Streamable HTTP Transport
Model Context Protocol · in the page
seps/2243-http-standardization
…s. **Error Code** When rejecting a request due to header validation failure, servers MUST return a JSON-RPC error response with the following error code: | Code | Name | Description | | - | - | - |…
SEP-2322: Multi Round-Trip Requests
Model Context Protocol · in the page
seps/2322-MRTR
…s a critical dependency and therefore a potential single point of failure. To avoid that, it must provide high availability, replication, and backup mechanisms. * The persistent storage laye…
SEP-2484: Require Conformance Tests for Standards Track SEPs to Reach Final Status
Model Context Protocol · in the page
seps/2484-conformance-tests-required-for-final-seps
…e at the protocol level" ``` Structured data lets tooling link check failures back to spec sections and lets the conformance CLI report coverage per SEP. Exclusions come in two flavors. **Framework…
SEP-2567: Sessionless MCP via Explicit State Handles
Model Context Protocol · in the page
seps/2567-sessionless-mcp
…lling `create_*` again; an opaque error typically leads to retries or failure. * **Creation takes parameters.** `create_context(cluster="staging")` is preferable to `create_context()` followed by `set…
SEP-2575: Make MCP Stateless
Model Context Protocol · in the page
seps/2575-stateless-mcp
…that session state is lost. The client must detect the connection failure, re-establish a connection (likely to a new server instance via the load balancer), and perform the entire initializ…
SEP-2640: Skills Extension
Model Context Protocol · in the page
seps/2640-skills-extension
…d whose byte length differs from the entry's `size` is a verification failure equivalent to a digest mismatch ([Integrity and verification](#integrity-and-verification)), whether or not the host goes…
SEP-2663: Tasks Extension
Model Context Protocol · in the page
seps/2663-tasks-extension
…include a `statusMessage` field with diagnostic information about the failure, and **MUST** include the `error` field with the JSON-RPC error. The `failed` status **MUST NOT** be used to represent no…
SEP-3415: Events Extension
Model Context Protocol · in the page
seps/3415-events-extension
…nt descriptor, and does not treat the termination as an authorization failure. Purely additive changes MUST NOT terminate subscriptions. Poll holds no server-side subscription to terminate. A poll ag…
SEP-991: Enable URL-based Client Registration using OAuth Client ID Metadata Documents
Model Context Protocol · in the page
seps/991-enable-url-based-client-registration-using-oauth-c
…ken Resource-->>Client: MCP responses else Validation Failure Server->>User: Error response<br/>error=invalid_client or invalid_request end Note over Server: Cac…
Lifecycle
Model Context Protocol · in the page
specification/2024-11-05/basic/lifecycle
…prepared to handle these error cases: * Protocol version mismatch * Failure to negotiate required capabilities * Initialize request timeout * Shutdown timeout Implementations **SHOULD** implement a…
Ping
Model Context Protocol · in the page
specification/2024-11-05/basic/utilities/ping
…ad ## Error Handling * Timeouts **SHOULD** be treated as connection failures * Multiple failed pings **MAY** trigger connection reset * Implementations **SHOULD** log ping failures for diagnostics…
Roots
Model Context Protocol · in the page
specification/2024-11-05/client/roots
…ndling Clients **SHOULD** return standard JSON-RPC errors for common failure cases: * Client does not support roots: `-32601` (Method not found) * Internal errors: `-32603` Example error: ```json…
Sampling
Model Context Protocol · in the page
specification/2024-11-05/client/sampling
…ties. ## Error Handling Clients **SHOULD** return errors for common failure cases: Example error: ```json theme={null} { "jsonrpc": "2.0", "id": 1, "error": { "code": -1, "message":…
Prompts
Model Context Protocol · in the page
specification/2024-11-05/server/prompts
…ndling Servers **SHOULD** return standard JSON-RPC errors for common failure cases: * Invalid prompt name: `-32602` (Invalid params) * Missing required arguments: `-32602` (Invalid params) * Interna…
Resources
Model Context Protocol · in the page
specification/2024-11-05/server/resources
…ndling Servers **SHOULD** return standard JSON-RPC errors for common failure cases: * Resource not found: `-32002` * Internal errors: `-32603` Example error: ```json theme={null} { "jsonrpc": "2…
Tools
Model Context Protocol · in the page
specification/2024-11-05/server/tools
…ion Errors**: Reported in tool results with `isError: true`: * API failures * Invalid input data * Business logic errors Example protocol error: ```json theme={null} { "jsonrpc": "2.0",…
Logging
Model Context Protocol · in the page
specification/2024-11-05/server/utilities/logging
…s | Deprecated feature usage | | error | Error conditions | Operation failures | | critical | Critical conditions | System component failures | | alert | Action must be taken immediately | Data corrup…
Authorization
Model Context Protocol · in the page
specification/2025-03-26/basic/authorization
…oken chaining 5. Implement proper error handling for third-party auth failures ## Best Practices #### Local clients as Public OAuth 2.1 Clients We strongly recommend that local clients implement OA…
Lifecycle
Model Context Protocol · in the page
specification/2025-03-26/basic/lifecycle
…prepared to handle these error cases: * Protocol version mismatch * Failure to negotiate required capabilities * Request [timeouts](#timeouts) Example initialization error: ```json theme={null} {…
Ping
Model Context Protocol · in the page
specification/2025-03-26/basic/utilities/ping
…ad ## Error Handling * Timeouts **SHOULD** be treated as connection failures * Multiple failed pings **MAY** trigger connection reset * Implementations **SHOULD** log ping failures for diagnostics…
Roots
Model Context Protocol · in the page
specification/2025-03-26/client/roots
…ndling Clients **SHOULD** return standard JSON-RPC errors for common failure cases: * Client does not support roots: `-32601` (Method not found) * Internal errors: `-32603` Example error: ```json…
Sampling
Model Context Protocol · in the page
specification/2025-03-26/client/sampling
…ties. ## Error Handling Clients **SHOULD** return errors for common failure cases: Example error: ```json theme={null} { "jsonrpc": "2.0", "id": 1, "error": { "code": -1, "message":…
Prompts
Model Context Protocol · in the page
specification/2025-03-26/server/prompts
…ndling Servers **SHOULD** return standard JSON-RPC errors for common failure cases: * Invalid prompt name: `-32602` (Invalid params) * Missing required arguments: `-32602` (Invalid params) * Interna…
Resources
Model Context Protocol · in the page
specification/2025-03-26/server/resources
…ndling Servers **SHOULD** return standard JSON-RPC errors for common failure cases: * Resource not found: `-32002` * Internal errors: `-32603` Example error: ```json theme={null} { "jsonrpc": "2…
Tools
Model Context Protocol · in the page
specification/2025-03-26/server/tools
…ion Errors**: Reported in tool results with `isError: true`: * API failures * Invalid input data * Business logic errors Example protocol error: ```json theme={null} { "jsonrpc": "2.0",…
Completion
Model Context Protocol · in the page
specification/2025-03-26/server/utilities/completion
…ndling Servers **SHOULD** return standard JSON-RPC errors for common failure cases: * Method not found: `-32601` (Capability not supported) * Invalid prompt name: `-32602` (Invalid params) * Missing…
Logging
Model Context Protocol · in the page
specification/2025-03-26/server/utilities/logging
…s | Deprecated feature usage | | error | Error conditions | Operation failures | | critical | Critical conditions | System component failures | | alert | Action must be taken immediately | Data corrup…