One read of Model Context Protocolmcp-20261118T190716Z
54 pages moved out of 360 read.
Pages moved
54
significant first
Pages read
360
in this capture
Captured
19:07 UTC
Corpus hash
0806d60101ae
corpus-hash
What this read moved
26-50 of 54, page 2 of 3This capture is too large to show at once. Changes 26-50 of 54 are below, significant first; the rest are on the following screens.
docs/draft/tools/debugging Changed · +1 / -1 lines
from line 186
186186 `UnsupportedProtocolVersionError` (`-32022`) lists the server's supported
187187 versions in its `data` field
1881885. Check the
189 [per-request `_meta` fields](https://modelcontextprotocol.io/specification/draft/basic/index#meta):
189 [per-request `_meta` fields](https://modelcontextprotocol.io/specification/draft/basic/index#_meta):
190190 every request must carry `io.modelcontextprotocol/protocolVersion` and
191191 `io.modelcontextprotocol/clientCapabilities`, and clients should also
192192 include `io.modelcontextprotocol/clientInfo`. A request missing either
docs/draft/tools/inspector/recipes Changed · +1 / -1 lines
from line 255
255255>
256256> Each entry must include the scheme; a scheme-less value is dropped with a warning. A blank value does **not** disable the check; it falls back to the default. There is no knob to turn origin validation off.
257257
258Two further caveats when going off loopback:
258Three further caveats when going off loopback:
259259
260260* **MCP Apps need their sandbox port reachable too.** It's a separate listener (`6275` by default, set with `MCP_SANDBOX_PORT`), so expose or forward it alongside the web port.
261261* **Behind TLS or a reverse proxy, give MCP Apps their public addresses.** By default the sandbox is advertised as `http://<bind host>:6275`, which an `https://` page blocks as mixed content. Set `MCP_SANDBOX_FULL_ADDRESS` (for example `https://inspector-sandbox.example.com/sandbox`) and, for apps that declare `_meta.ui.domain`, `MCP_APP_ORIGIN_FULL_ADDRESS` (for example `https://inspector-apps.example.com`). Each needs its own hostname or port; an address that shares the Inspector's origin is refused.
docs/draft/tutorials/security/security_best_practices Changed · +1 / -1 lines
from line 643
643643* Keep sandboxing solutions up-to-date to account for emerging
644644 vulnerabilities
645645
646MCP servers intending for their servers to be run locally **SHOULD**
646MCP server developers intending for their servers to be run locally **SHOULD**
647647implement measures to prevent unauthorized usage from malicious
648648processes:
649649
extensions/overview Changed · +1 / -1 lines
from line 6
66
77MCP extensions are optional additions to the specification that define capabilities beyond the core protocol. Extensions enable functionality that may be modular (e.g., distinct features like authentication), specialized (e.g., industry-specific logic), or experimental (e.g., features being incubated for potential core inclusion).
88
9Extensions are identified using a unique *extension identifier* with the format: `{vendor-prefix}/{extension-name}`, e.g. `io.modelcontextprotocol/oauth-client-credentials`. Identifiers follow the same rules as [`_meta` keys](https://modelcontextprotocol.io/specification/draft/basic/index#meta), with a mandatory prefix. Official extensions use the `io.modelcontextprotocol` vendor prefix.
9Extensions are identified using a unique *extension identifier* with the format: `{vendor-prefix}/{extension-name}`, e.g. `io.modelcontextprotocol/oauth-client-credentials`. Identifiers follow the same rules as [`_meta` keys](https://modelcontextprotocol.io/specification/draft/basic/index#_meta), with a mandatory prefix. Official extensions use the `io.modelcontextprotocol` vendor prefix.
1010
1111> [!TIP]
1212>
specification/2026-07-28/architecture/index Changed · +1 / -1 lines
from line 113
113113## Capability Negotiation
114114
115115The Model Context Protocol uses a capability-based negotiation system where clients and
116servers declare their supported features on each request. Clients include their
116servers declare their supported features. Clients include their
117117capabilities in `_meta.io.modelcontextprotocol/clientCapabilities` on every request.
118118Servers advertise their capabilities in response to
119119[`server/discover`](https://modelcontextprotocol.io/specification/2026-07-28/server/discover), which clients may call before
specification/2026-07-28/basic/authorization/index Changed · +2 / -2 lines
from line 302
302302according to [RFC 8707 Section 2](https://www.rfc-editor.org/rfc/rfc8707.html#section-2).
303303If validation fails, servers **MUST** respond according to
304304[OAuth 2.1 Section 5.3](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-13#section-5.3)
305error handling requirements. Invalid or expired tokens **MUST** receive a HTTP 401
305error handling requirements. Invalid or expired tokens **MUST** receive an HTTP 401
306306response.
307307
308308MCP clients **MUST NOT** send tokens to the MCP server other than ones issued by the MCP server's authorization server.
from line 412
412412 [Scope Selection Strategy](#scope-selection-strategy) for
413413 initial scope selection guidance.
4144143. **Initiate (re-)authorization** with the determined scope set
4154. **Retry the original request** with the new authorization no more than a few times and treat this as a permanent authorization failure
4154. **Retry the original request** with the new authorization no more than a few times. If it still fails, treat this as a permanent authorization failure
416416
417417Clients **SHOULD** implement retry limits and **SHOULD** track scope upgrade attempts to avoid
418418repeated failures for the same resource and operation combination.
specification/2026-07-28/basic/patterns/mrtr Changed · +2 / -2 lines
from line 16
1616> `io.modelcontextprotocol/clientInfo`, and
1717> `io.modelcontextprotocol/clientCapabilities`). Every request **MUST** include
1818> the required `_meta` fields; see
19> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#meta).
19> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#_meta).
2020
2121## Multi Round-Trip Requests
2222
from line 211
211211 note over C: Client retries tool call <br/> with inputResponses and requestState
212212 C->>S: tools/call (id: 2, ElicitResult, requestState)
213213 note over S: Server reconstitutes state<br/>Completes execution
214 S-->>C: Result (id: 2, ToolCallResult)
214 S-->>C: Result (id: 2, CallToolResult)
215215```
216216
217217Note that the requests in each step are completely independent: the server processing the retry does not need any information beyond
specification/2026-07-28/basic/transports/index Changed · +1 / -1 lines
from line 35
3535
3636All protocol metadata travels in the message body: every request carries its
3737protocol version and client capabilities in
38[`_meta.io.modelcontextprotocol/*`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#meta)
38[`_meta.io.modelcontextprotocol/*`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#_meta)
3939fields.
4040
4141A binding **MAY** additionally mirror selected body fields into envelope
specification/2026-07-28/basic/transports/stdio Changed · +1 / -1 lines
from line 70
7070the method name and arguments live where JSON-RPC puts them. There is no
7171header layer.
7272
73[meta-fields]: https://modelcontextprotocol.io/specification/2026-07-28/basic/index.md#meta
73[meta-fields]: https://modelcontextprotocol.io/specification/2026-07-28/basic/index.md#_meta
7474
7575## Cancellation
7676
specification/2026-07-28/changelog Changed · +1 / -1 lines
from line 30
30303. Servers **SHOULD** return tools from `tools/list` in a deterministic order to enable client-side caching and improve LLM prompt cache hit rates.
31314. Require standard MCP request headers (`Mcp-Method`, `Mcp-Name`) on Streamable HTTP POST requests, and add support for custom headers from tool parameters via `x-mcp-header` ([SEP-2243](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2243)).
32325. Require `ttlMs` and `cacheScope` fields on results returned by `tools/list`, `prompts/list`, `resources/list`, `resources/read`, and `resources/templates/list` via a new `CacheableResult` interface. `ttlMs` is a freshness hint (in milliseconds) allowing clients to cache responses and reduce polling; `cacheScope` (`"public"` or `"private"`) controls whether shared intermediaries may cache the response. Both fields complement existing `listChanged` notifications ([SEP-2549](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2549)).
336. Change resource not found error code from `-32002` to `-32602` (Invalid Params) to align with JSON-RPC specification.
336. Change resource not found error code from `-32002` to `-32602` (Invalid Params) to align with JSON-RPC specification ([SEP-2164](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2164)).
34347. Authorization servers **SHOULD** include the `iss` parameter in authorization responses per
3535 [RFC 9207](https://datatracker.ietf.org/doc/html/rfc9207), and MCP clients **MUST** validate a
3636 present `iss` against the recorded issuer before redeeming the authorization code
specification/2026-07-28/client/elicitation Changed · +1 / -1 lines
from line 413
413413 User-->>Client: Provide consent
414414
415415 Client->>UserAgent: Open URL
416 Client->>Server: tools/call(id: 2, Accept Response, requestState))
416 Client->>Server: tools/call(id: 2, Accept Response, requestState)
417417 Note over Server: Server uses requestState to discover url info. <br/> It may need to block until the request is fulfilled.
418418
419419 Note over User,UserAgent: User interaction
specification/2026-07-28/client/sampling Changed · +0 / -1 lines
from line 135
135135 },
136136 "temperature": 0.1,
137137 "systemPrompt": "You are a helpful assistant.",
138 "includeContext": "thisServer",
139138 "maxTokens": 100
140139 }
141140}
specification/2026-07-28/index Changed · +1 / -1 lines
from line 59
5959
6060Clients may offer the following features to servers:
6161
62* **Elicitation**: Server-initiated requests for additional information from users
62* **Elicitation**: Server requests for additional information from users
6363
6464### Additional Utilities
6565
specification/2026-07-28/server/prompts Changed · +1 / -1 lines
from line 12
1212> `io.modelcontextprotocol/clientInfo`, and
1313> `io.modelcontextprotocol/clientCapabilities`). Every request **MUST** include
1414> the required `_meta` fields; see
15> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#meta).
15> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#_meta).
1616
1717## User Interaction Model
1818
specification/2026-07-28/server/tools Changed · +2 / -2 lines
from line 12
1212> `io.modelcontextprotocol/clientInfo`, and
1313> `io.modelcontextprotocol/clientCapabilities`). Every request **MUST** include
1414> the required `_meta` fields; see
15> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#meta).
15> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#_meta).
1616
1717## User Interaction Model
1818
from line 785
785785 * Show tool inputs to the user before calling the server, to avoid malicious or
786786 accidental data exfiltration
787787 * Validate tool results before passing to LLM
788 * Follow the [`$ref` resolution requirements](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#ref-resolution)
788 * Follow the [`$ref` resolution requirements](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#\$ref-resolution)
789789 when validating tool inputs and outputs against `inputSchema` and `outputSchema`
790790 * Implement timeouts for tool calls
791791 * Log tool usage for audit purposes
specification/2026-07-28/server/utilities/completion Changed · +1 / -1 lines
from line 12
1212> `io.modelcontextprotocol/clientInfo`, and
1313> `io.modelcontextprotocol/clientCapabilities`). Every request **MUST** include
1414> the required `_meta` fields; see
15> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#meta).
15> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#_meta).
1616
1717## User Interaction Model
1818
specification/2026-07-28/server/utilities/pagination Changed · +2 / -2 lines
from line 15
1515> `io.modelcontextprotocol/clientInfo`, and
1616> `io.modelcontextprotocol/clientCapabilities`). Every request **MUST** include
1717> the required `_meta` fields; see
18> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#meta).
18> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#_meta).
1919
2020## Pagination Model
2121
from line 57
5757 "id": "124",
5858 "method": "resources/list",
5959 "params": {
60 "cursor": "eyJwYWdlIjogMn0="
60 "cursor": "eyJwYWdlIjogM30="
6161 }
6262}
6363```
specification/draft/architecture/index Changed · +1 / -1 lines
from line 113
113113## Capability Negotiation
114114
115115The Model Context Protocol uses a capability-based negotiation system where clients and
116servers declare their supported features on each request. Clients include their
116servers declare their supported features. Clients include their
117117capabilities in `_meta.io.modelcontextprotocol/clientCapabilities` on every request.
118118Servers advertise their capabilities in response to
119119[`server/discover`](https://modelcontextprotocol.io/specification/draft/server/discover), which clients may call before
specification/draft/basic/authorization/index Changed · +2 / -2 lines
from line 302
302302according to [RFC 8707 Section 2](https://www.rfc-editor.org/rfc/rfc8707.html#section-2).
303303If validation fails, servers **MUST** respond according to
304304[OAuth 2.1 Section 5.3](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-13#section-5.3)
305error handling requirements. Invalid or expired tokens **MUST** receive a HTTP 401
305error handling requirements. Invalid or expired tokens **MUST** receive an HTTP 401
306306response.
307307
308308MCP clients **MUST NOT** send tokens to the MCP server other than ones issued by the MCP server's authorization server.
from line 412
412412 [Scope Selection Strategy](#scope-selection-strategy) for
413413 initial scope selection guidance.
4144143. **Initiate (re-)authorization** with the determined scope set
4154. **Retry the original request** with the new authorization no more than a few times and treat this as a permanent authorization failure
4154. **Retry the original request** with the new authorization no more than a few times. If it still fails, treat this as a permanent authorization failure
416416
417417Clients **SHOULD** implement retry limits and **SHOULD** track scope upgrade attempts to avoid
418418repeated failures for the same resource and operation combination.
specification/draft/basic/patterns/mrtr Changed · +2 / -2 lines
from line 16
1616> `io.modelcontextprotocol/clientInfo`, and
1717> `io.modelcontextprotocol/clientCapabilities`). Every request **MUST** include
1818> the required `_meta` fields; see
19> [`_meta`](https://modelcontextprotocol.io/specification/draft/basic/index#meta).
19> [`_meta`](https://modelcontextprotocol.io/specification/draft/basic/index#_meta).
2020
2121## Multi Round-Trip Requests
2222
from line 211
211211 note over C: Client retries tool call <br/> with inputResponses and requestState
212212 C->>S: tools/call (id: 2, ElicitResult, requestState)
213213 note over S: Server reconstitutes state<br/>Completes execution
214 S-->>C: Result (id: 2, ToolCallResult)
214 S-->>C: Result (id: 2, CallToolResult)
215215```
216216
217217Note that the requests in each step are completely independent: the server processing the retry does not need any information beyond
specification/draft/basic/transports/index Changed · +1 / -1 lines
from line 35
3535
3636All protocol metadata travels in the message body: every request carries its
3737protocol version and client capabilities in
38[`_meta.io.modelcontextprotocol/*`](https://modelcontextprotocol.io/specification/draft/basic/index#meta)
38[`_meta.io.modelcontextprotocol/*`](https://modelcontextprotocol.io/specification/draft/basic/index#_meta)
3939fields.
4040
4141A binding **MAY** additionally mirror selected body fields into envelope
specification/draft/basic/transports/stdio Changed · +1 / -1 lines
from line 70
7070the method name and arguments live where JSON-RPC puts them. There is no
7171header layer.
7272
73[meta-fields]: https://modelcontextprotocol.io/specification/draft/basic/index.md#meta
73[meta-fields]: https://modelcontextprotocol.io/specification/draft/basic/index.md#_meta
7474
7575## Cancellation
7676
specification/draft/client/elicitation Changed · +1 / -1 lines
from line 413
413413 User-->>Client: Provide consent
414414
415415 Client->>UserAgent: Open URL
416 Client->>Server: tools/call(id: 2, Accept Response, requestState))
416 Client->>Server: tools/call(id: 2, Accept Response, requestState)
417417 Note over Server: Server uses requestState to discover url info. <br/> It may need to block until the request is fulfilled.
418418
419419 Note over User,UserAgent: User interaction
specification/draft/client/sampling Changed · +0 / -1 lines
from line 135
135135 },
136136 "temperature": 0.1,
137137 "systemPrompt": "You are a helpful assistant.",
138 "includeContext": "thisServer",
139138 "maxTokens": 100
140139 }
141140}
specification/draft/index Changed · +1 / -1 lines
from line 59
5959
6060Clients may offer the following features to servers:
6161
62* **Elicitation**: Server-initiated requests for additional information from users
62* **Elicitation**: Server requests for additional information from users
6363
6464### Additional Utilities
6565