One read of Model Context Protocolmcp-20261124T220707Z
49 pages moved out of 365 read.
Pages moved
49
significant first
Pages read
365
in this capture
Captured
22:07 UTC
Corpus hash
26818e754a70
corpus-hash
What this read moved
1-25 of 49, page 1 of 2This capture is too large to show at once. Changes 1-25 of 49 are below, significant first; the rest are on the following screens.
docs/2026-07-28/develop/build-client Changed · +19 / -17 lines
from line 14
1414>
1515> Before starting, ensure your system meets these requirements:
1616>
17> * Mac or Windows computer
17> * macOS, Windows, or Linux computer
1818> * Latest Python version installed
1919> * Latest version of `uv` installed
2020> * You must use the Python MCP SDK 2.0.0 or higher
from line 257
257257> ```python theme={null}
258258> async def main() -> None:
259259> if len(sys.argv) < 2:
260> print("Usage: python client.py <path_to_server_script>")
260> print("Usage: uv run client.py <path_to_server_script>")
261261> sys.exit(1)
262262>
263263> async with Client(stdio_client(server_params(sys.argv[1]))) as client:
from line 339
339339>
340340> > [!NOTE]
341341> >
342> > If you're continuing [the weather tutorial from the server quickstart](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/weather-server-python), your command might look something like this: `python client.py .../quickstart-resources/weather-server-python/weather.py`
342> > If you're continuing [the weather tutorial from the server quickstart](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/weather-server-python), your command might look something like this: `uv run client.py .../quickstart-resources/weather-server-python/weather.py`
343343>
344344> The client will:
345345>
from line 422
422422>
423423> If you see:
424424>
425> * `FileNotFoundError`: Check your server path
426> * `Connection refused`: Ensure the server is running and the path is correct
425> * `FileNotFoundError`: Ensure the command (`python`, `node`) is available
426> * `Connection closed`: Check your server path, and run the server command directly to see whether it starts
427427> * `Tool execution failed`: Verify the tool's required environment variables are set
428428> * `Timeout error`: Consider raising `read_timeout_seconds` on the `Client`
429429
from line 435
435435>
436436> Before starting, ensure your system meets these requirements:
437437>
438> * Mac or Windows computer
438> * macOS, Windows, or Linux computer
439439> * Node.js 20 or higher installed
440440> * Latest version of `npm` installed
441441> * Anthropic API key (Claude)
from line 887
887887> If you see:
888888>
889889> * `Error: Cannot find module`: Check your build folder and ensure TypeScript compilation succeeded
890> * `Connection refused`: Ensure the server is running and the path is correct
890> * `Connection closed`: Check your server path, and run the server command directly to see whether it starts
891891> * `Tool execution failed`: Verify the tool's required environment variables are set
892892> * `ANTHROPIC_API_KEY is not set`: Check your .env file and environment variables
893893> * `TypeError`: Ensure you're using the correct types for tool arguments
from line 1088
10881088>
10891089> Before starting, ensure your system meets these requirements:
10901090>
1091> * JDK 11 or higher
1091> * JDK 17 or higher
10921092> * Anthropic API key (Claude)
10931093>
10941094> ## Setting up your environment
from line 1139
11391139> application
11401140> }
11411141>
1142> version = "0.1.0"
1143>
11421144> repositories {
11431145> mavenCentral()
11441146> }
from line 1515
15131515>
15141516> ```bash theme={null}
15151517> # Relative path
1516> java -jar build/libs/client.jar ./server/build/libs/server.jar
1518> java -jar build/libs/kotlin-mcp-client-0.1.0-all.jar ./server/build/libs/server.jar
15171519>
15181520> # Absolute path
1519> java -jar build/libs/client.jar /Users/username/projects/mcp-server/build/libs/server.jar
1521> java -jar build/libs/kotlin-mcp-client-0.1.0-all.jar /Users/username/projects/mcp-server/build/libs/server.jar
15201522>
15211523> # Windows path (either format works)
1522> java -jar build/libs/client.jar C:/projects/mcp-server/build/libs/server.jar
1523> java -jar build/libs/client.jar C:\\projects\\mcp-server\\build\\libs\\server.jar
1524> java -jar build/libs/kotlin-mcp-client-0.1.0-all.jar C:/projects/mcp-server/build/libs/server.jar
1525> java -jar build/libs/kotlin-mcp-client-0.1.0-all.jar C:\\projects\\mcp-server\\build\\libs\\server.jar
15241526> ```
15251527>
15261528> ### Build Issues
15271529>
15281530> * Use `./gradlew build` or `./gradlew shadowJar` (not `./gradlew jar`) to create the shadow JAR with all dependencies
1529> * If you get JDK version errors, ensure your installed JDK version matches or exceeds the `jvmToolchain` setting in `build.gradle.kts`
1531> * If you get JDK version errors, ensure your installed JDK is version 17 or higher
15301532>
15311533> ### Response Timing
15321534>
from line 1544
15421544>
15431545> If you see:
15441546>
1545> * `Connection refused`: Ensure the server is running and the path is correct
1547> * `Connection closed`: Check your server path, and run the server command directly to see whether it starts
15461548> * `Tool execution failed`: Verify the tool's required environment variables are set
15471549> * `[Stopped after 10 tool-use turns]`: Claude was still requesting tools when `MAX_TOOL_TURNS` ran out, so raise the cap or narrow the query
15481550> * `ANTHROPIC_API_KEY is not set`: Check your environment variables
from line 1752
17501752>
17511753> Before starting, ensure your system meets these requirements:
17521754>
1753> * Mac or Windows computer
1755> * macOS, Windows, or Linux computer
17541756> * Ruby 3.2.0 or higher installed (required by the [Anthropic SDK](https://github.com/anthropics/anthropic-sdk-ruby))
17551757> * Anthropic API key (Claude)
17561758>
from line 2169
21672169>
21682170> If you see:
21692171>
2170> * `Errno::ENOENT`: Check your server path and ensure the command (`ruby`, `python3`, `node`) is available
2171> * `Connection refused`: Ensure the server is running and the path is correct
2172> * `Failed to spawn server process`: Ensure the command (`ruby`, `python3`, `node`) is available
2173> * `Server process has exited` or `Failed to write to server process`: Check your server path, and run the server command directly to see whether it starts
21722174> * `Tool execution failed`: Verify the tool's required environment variables are set
21732175> * `Anthropic::Errors::AuthenticationError`: Check your `.env` file has a valid `ANTHROPIC_API_KEY`
21742176> * `[Stopped after 10 tool-use turns]`: Claude kept asking for tools, so the client stopped at `MAX_TOOL_TURNS` and returned the text collected so far
docs/2026-07-28/tools/debugging Changed · +4 / -4 lines
from line 12
1212
13131. **[MCP Inspector](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector.md)**: interactive, transport-agnostic
1414 testing UI. Connect to stdio or Streamable HTTP servers, invoke
15 [tools](https://modelcontextprotocol.io/specification/latest/server/tools.md),
16 [prompts](https://modelcontextprotocol.io/specification/latest/server/prompts.md), and
17 [resources](https://modelcontextprotocol.io/specification/latest/server/resources.md), and watch the
15 [tools](https://modelcontextprotocol.io/specification/2026-07-28/server/tools.md),
16 [prompts](https://modelcontextprotocol.io/specification/2026-07-28/server/prompts.md), and
17 [resources](https://modelcontextprotocol.io/specification/2026-07-28/server/resources.md), and watch the
1818 notification stream. This should be your first stop.
19192. **Server logging**: structured logs to stderr (stdio transport) or via
2020 [OpenTelemetry](https://opentelemetry.io/) (all transports).
from line 45
4545tooling (curl, browser DevTools Network panel) to inspect requests and SSE
4646streams.
4747
48For all [transports](https://modelcontextprotocol.io/specification/latest/basic/transports.md), record what the
48For all [transports](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports.md), record what the
4949server is doing as it runs. For example, to write to stderr:
5050
5151```python Python theme={null}
docs/2026-07-28/tools/inspector/authorization Changed · +4 / -4 lines
from line 2
22
33> How the MCP Inspector performs OAuth, re-authorizes mid-session, and shares tokens between its clients
44
5Remote MCP servers usually require authorization. The Inspector implements the full [authorization](https://modelcontextprotocol.io/specification/latest/basic/authorization.md) flow in all three clients, sharing the resulting tokens on disk so a login done once is usable everywhere.
5Remote MCP servers usually require authorization. The Inspector implements the full [authorization](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization.md) flow in all three clients, sharing the resulting tokens on disk so a login done once is usable everywhere.
66
77## The flow, end to end
88
from line 17
1717
1818The Inspector fetches the server's [protected-resource and
1919authorization-server
20metadata](https://modelcontextprotocol.io/specification/latest/basic/authorization/authorization-server-discovery.md)
20metadata](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/authorization-server-discovery.md)
2121to learn the endpoints and the supported grants.
2222
2323**3. Register or identify the client**
from line 24
2424
2525The Inspector identifies itself to the authorization server through
2626whichever mechanism is configured: [dynamic client
27registration](https://modelcontextprotocol.io/specification/latest/basic/authorization/client-registration.md#dynamic-client-registration),
27registration](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration.md#dynamic-client-registration),
2828a pre-registered static client (`--client-id` / `--client-secret`), a
2929[Client ID Metadata
30Document](https://modelcontextprotocol.io/specification/latest/basic/authorization/client-registration.md#client-id-metadata-documents)
30Document](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration.md#client-id-metadata-documents)
3131(`--client-metadata-url`), or an [enterprise-managed
3232IdP](https://modelcontextprotocol.io/extensions/auth/enterprise-managed-authorization.md).
3333
docs/2026-07-28/tutorials/security/security_best_practices Changed · +3 / -3 lines
from line 8
88
99This document provides security considerations for the Model Context
1010Protocol (MCP), complementing the
11[MCP Authorization](https://modelcontextprotocol.io/specification/latest/basic/authorization.md)
11[MCP Authorization](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization.md)
1212specification. This document identifies security risks, attack vectors,
1313and best practices specific to MCP implementations.
1414
from line 152
152152 consent screen
1531536. The MCP authorization code is redirected to the attacker's server
154154 (specified in the malicious `redirect_uri` parameter during
155 [dynamic client registration](https://modelcontextprotocol.io/specification/latest/basic/authorization/client-registration.md#dynamic-client-registration))
155 [dynamic client registration](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/client-registration.md#dynamic-client-registration))
1561567. The attacker exchanges the stolen authorization code for access
157157 tokens for the MCP server without the user's explicit approval
1581588. The attacker now has access to the third-party API as the compromised
from line 307
307307#### Risks
308308
309309Token passthrough is explicitly forbidden in the
310[authorization specification](https://modelcontextprotocol.io/specification/latest/basic/authorization.md)
310[authorization specification](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization.md)
311311as it introduces a number of security risks, that include:
312312
313313* **Security Control Circumvention**
docs/draft/develop/build-client Changed · +19 / -17 lines
from line 14
1414>
1515> Before starting, ensure your system meets these requirements:
1616>
17> * Mac or Windows computer
17> * macOS, Windows, or Linux computer
1818> * Latest Python version installed
1919> * Latest version of `uv` installed
2020> * You must use the Python MCP SDK 2.0.0 or higher
from line 257
257257> ```python theme={null}
258258> async def main() -> None:
259259> if len(sys.argv) < 2:
260> print("Usage: python client.py <path_to_server_script>")
260> print("Usage: uv run client.py <path_to_server_script>")
261261> sys.exit(1)
262262>
263263> async with Client(stdio_client(server_params(sys.argv[1]))) as client:
from line 339
339339>
340340> > [!NOTE]
341341> >
342> > If you're continuing [the weather tutorial from the server quickstart](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/weather-server-python), your command might look something like this: `python client.py .../quickstart-resources/weather-server-python/weather.py`
342> > If you're continuing [the weather tutorial from the server quickstart](https://github.com/modelcontextprotocol/quickstart-resources/tree/main/weather-server-python), your command might look something like this: `uv run client.py .../quickstart-resources/weather-server-python/weather.py`
343343>
344344> The client will:
345345>
from line 422
422422>
423423> If you see:
424424>
425> * `FileNotFoundError`: Check your server path
426> * `Connection refused`: Ensure the server is running and the path is correct
425> * `FileNotFoundError`: Ensure the command (`python`, `node`) is available
426> * `Connection closed`: Check your server path, and run the server command directly to see whether it starts
427427> * `Tool execution failed`: Verify the tool's required environment variables are set
428428> * `Timeout error`: Consider raising `read_timeout_seconds` on the `Client`
429429
from line 435
435435>
436436> Before starting, ensure your system meets these requirements:
437437>
438> * Mac or Windows computer
438> * macOS, Windows, or Linux computer
439439> * Node.js 20 or higher installed
440440> * Latest version of `npm` installed
441441> * Anthropic API key (Claude)
from line 887
887887> If you see:
888888>
889889> * `Error: Cannot find module`: Check your build folder and ensure TypeScript compilation succeeded
890> * `Connection refused`: Ensure the server is running and the path is correct
890> * `Connection closed`: Check your server path, and run the server command directly to see whether it starts
891891> * `Tool execution failed`: Verify the tool's required environment variables are set
892892> * `ANTHROPIC_API_KEY is not set`: Check your .env file and environment variables
893893> * `TypeError`: Ensure you're using the correct types for tool arguments
from line 1088
10881088>
10891089> Before starting, ensure your system meets these requirements:
10901090>
1091> * JDK 11 or higher
1091> * JDK 17 or higher
10921092> * Anthropic API key (Claude)
10931093>
10941094> ## Setting up your environment
from line 1139
11391139> application
11401140> }
11411141>
1142> version = "0.1.0"
1143>
11421144> repositories {
11431145> mavenCentral()
11441146> }
from line 1515
15131515>
15141516> ```bash theme={null}
15151517> # Relative path
1516> java -jar build/libs/client.jar ./server/build/libs/server.jar
1518> java -jar build/libs/kotlin-mcp-client-0.1.0-all.jar ./server/build/libs/server.jar
15171519>
15181520> # Absolute path
1519> java -jar build/libs/client.jar /Users/username/projects/mcp-server/build/libs/server.jar
1521> java -jar build/libs/kotlin-mcp-client-0.1.0-all.jar /Users/username/projects/mcp-server/build/libs/server.jar
15201522>
15211523> # Windows path (either format works)
1522> java -jar build/libs/client.jar C:/projects/mcp-server/build/libs/server.jar
1523> java -jar build/libs/client.jar C:\\projects\\mcp-server\\build\\libs\\server.jar
1524> java -jar build/libs/kotlin-mcp-client-0.1.0-all.jar C:/projects/mcp-server/build/libs/server.jar
1525> java -jar build/libs/kotlin-mcp-client-0.1.0-all.jar C:\\projects\\mcp-server\\build\\libs\\server.jar
15241526> ```
15251527>
15261528> ### Build Issues
15271529>
15281530> * Use `./gradlew build` or `./gradlew shadowJar` (not `./gradlew jar`) to create the shadow JAR with all dependencies
1529> * If you get JDK version errors, ensure your installed JDK version matches or exceeds the `jvmToolchain` setting in `build.gradle.kts`
1531> * If you get JDK version errors, ensure your installed JDK is version 17 or higher
15301532>
15311533> ### Response Timing
15321534>
from line 1544
15421544>
15431545> If you see:
15441546>
1545> * `Connection refused`: Ensure the server is running and the path is correct
1547> * `Connection closed`: Check your server path, and run the server command directly to see whether it starts
15461548> * `Tool execution failed`: Verify the tool's required environment variables are set
15471549> * `[Stopped after 10 tool-use turns]`: Claude was still requesting tools when `MAX_TOOL_TURNS` ran out, so raise the cap or narrow the query
15481550> * `ANTHROPIC_API_KEY is not set`: Check your environment variables
from line 1752
17501752>
17511753> Before starting, ensure your system meets these requirements:
17521754>
1753> * Mac or Windows computer
1755> * macOS, Windows, or Linux computer
17541756> * Ruby 3.2.0 or higher installed (required by the [Anthropic SDK](https://github.com/anthropics/anthropic-sdk-ruby))
17551757> * Anthropic API key (Claude)
17561758>
from line 2169
21672169>
21682170> If you see:
21692171>
2170> * `Errno::ENOENT`: Check your server path and ensure the command (`ruby`, `python3`, `node`) is available
2171> * `Connection refused`: Ensure the server is running and the path is correct
2172> * `Failed to spawn server process`: Ensure the command (`ruby`, `python3`, `node`) is available
2173> * `Server process has exited` or `Failed to write to server process`: Check your server path, and run the server command directly to see whether it starts
21722174> * `Tool execution failed`: Verify the tool's required environment variables are set
21732175> * `Anthropic::Errors::AuthenticationError`: Check your `.env` file has a valid `ANTHROPIC_API_KEY`
21742176> * `[Stopped after 10 tool-use turns]`: Claude kept asking for tools, so the client stopped at `MAX_TOOL_TURNS` and returned the text collected so far
docs/draft/tools/debugging Changed · +4 / -4 lines
from line 12
1212
13131. **[MCP Inspector](https://modelcontextprotocol.io/docs/draft/tools/inspector.md)**: interactive, transport-agnostic
1414 testing UI. Connect to stdio or Streamable HTTP servers, invoke
15 [tools](https://modelcontextprotocol.io/specification/latest/server/tools.md),
16 [prompts](https://modelcontextprotocol.io/specification/latest/server/prompts.md), and
17 [resources](https://modelcontextprotocol.io/specification/latest/server/resources.md), and watch the
15 [tools](https://modelcontextprotocol.io/specification/draft/server/tools.md),
16 [prompts](https://modelcontextprotocol.io/specification/draft/server/prompts.md), and
17 [resources](https://modelcontextprotocol.io/specification/draft/server/resources.md), and watch the
1818 notification stream. This should be your first stop.
19192. **Server logging**: structured logs to stderr (stdio transport) or via
2020 [OpenTelemetry](https://opentelemetry.io/) (all transports).
from line 45
4545tooling (curl, browser DevTools Network panel) to inspect requests and SSE
4646streams.
4747
48For all [transports](https://modelcontextprotocol.io/specification/latest/basic/transports.md), record what the
48For all [transports](https://modelcontextprotocol.io/specification/draft/basic/transports.md), record what the
4949server is doing as it runs. For example, to write to stderr:
5050
5151```python Python theme={null}
docs/draft/tools/inspector/authorization Changed · +4 / -4 lines
from line 2
22
33> How the MCP Inspector performs OAuth, re-authorizes mid-session, and shares tokens between its clients
44
5Remote MCP servers usually require authorization. The Inspector implements the full [authorization](https://modelcontextprotocol.io/specification/latest/basic/authorization.md) flow in all three clients, sharing the resulting tokens on disk so a login done once is usable everywhere.
5Remote MCP servers usually require authorization. The Inspector implements the full [authorization](https://modelcontextprotocol.io/specification/draft/basic/authorization.md) flow in all three clients, sharing the resulting tokens on disk so a login done once is usable everywhere.
66
77## The flow, end to end
88
from line 17
1717
1818The Inspector fetches the server's [protected-resource and
1919authorization-server
20metadata](https://modelcontextprotocol.io/specification/latest/basic/authorization/authorization-server-discovery.md)
20metadata](https://modelcontextprotocol.io/specification/draft/basic/authorization/authorization-server-discovery.md)
2121to learn the endpoints and the supported grants.
2222
2323**3. Register or identify the client**
from line 24
2424
2525The Inspector identifies itself to the authorization server through
2626whichever mechanism is configured: [dynamic client
27registration](https://modelcontextprotocol.io/specification/latest/basic/authorization/client-registration.md#dynamic-client-registration),
27registration](https://modelcontextprotocol.io/specification/draft/basic/authorization/client-registration.md#dynamic-client-registration),
2828a pre-registered static client (`--client-id` / `--client-secret`), a
2929[Client ID Metadata
30Document](https://modelcontextprotocol.io/specification/latest/basic/authorization/client-registration.md#client-id-metadata-documents)
30Document](https://modelcontextprotocol.io/specification/draft/basic/authorization/client-registration.md#client-id-metadata-documents)
3131(`--client-metadata-url`), or an [enterprise-managed
3232IdP](https://modelcontextprotocol.io/extensions/auth/enterprise-managed-authorization.md).
3333
docs/draft/tutorials/security/security_best_practices Changed · +3 / -3 lines
from line 8
88
99This document provides security considerations for the Model Context
1010Protocol (MCP), complementing the
11[MCP Authorization](https://modelcontextprotocol.io/specification/latest/basic/authorization.md)
11[MCP Authorization](https://modelcontextprotocol.io/specification/draft/basic/authorization.md)
1212specification. This document identifies security risks, attack vectors,
1313and best practices specific to MCP implementations.
1414
from line 152
152152 consent screen
1531536. The MCP authorization code is redirected to the attacker's server
154154 (specified in the malicious `redirect_uri` parameter during
155 [dynamic client registration](https://modelcontextprotocol.io/specification/latest/basic/authorization/client-registration.md#dynamic-client-registration))
155 [dynamic client registration](https://modelcontextprotocol.io/specification/draft/basic/authorization/client-registration.md#dynamic-client-registration))
1561567. The attacker exchanges the stolen authorization code for access
157157 tokens for the MCP server without the user's explicit approval
1581588. The attacker now has access to the third-party API as the compromised
from line 307
307307#### Risks
308308
309309Token passthrough is explicitly forbidden in the
310[authorization specification](https://modelcontextprotocol.io/specification/latest/basic/authorization.md)
310[authorization specification](https://modelcontextprotocol.io/specification/draft/basic/authorization.md)
311311as it introduces a number of security risks, that include:
312312
313313* **Security Control Circumvention**
specification/2026-07-28/basic/authorization/client-registration Changed · +14 / -8 lines
from line 76
7676 participant Metadata as Metadata Endpoint<br/>(Client's HTTPS URL)
7777 participant Resource as MCP Server
7878
79 Note over Client,Metadata: Client hosts metadata at<br/>https://app.example.com/oauth/metadata.json
79 Note over Client,Metadata: Client hosts metadata at<br/>https://app.example.com/oauth/client-metadata.json
8080
8181 User->>Client: Initiates connection to MCP Server
82 Client->>Server: Authorization Request<br/>client_id=https://app.example.com/oauth/metadata.json<br/>redirect_uri=http://localhost:3000/callback
82 Client->>Server: Authorization Request<br/>client_id=https://app.example.com/oauth/client-metadata.json<br/>redirect_uri=http://localhost:3000/callback
8383
8484 Server->>User: Authentication prompt
8585 User->>Server: Provides credentials
from line 87
8787
8888 Note over Server: Detects URL-formatted client_id
8989
90 Server->>Metadata: GET https://app.example.com/oauth/metadata.json
90 Server->>Metadata: GET https://app.example.com/oauth/client-metadata.json
9191 Metadata-->>Server: JSON Metadata Document<br/>{client_id, client_name, redirect_uris, ...}
9292
9393 Note over Server: Validates:<br/>1. client_id matches URL<br/>2. redirect_uri in allowed list<br/>3. Document structure valid<br/>4. (Optional) Domain allowed via trust policy
from line 96
9696 Server->>User: Display consent page with client_name
9797 User->>Server: Approves access
9898 Server->>Client: Authorization code via redirect_uri
99 Client->>Server: Exchange code for token<br/>client_id=https://app.example.com/oauth/metadata.json
99 Client->>Server: Exchange code for token<br/>client_id=https://app.example.com/oauth/client-metadata.json
100100 Server-->>Client: Access token
101101 Client->>Resource: MCP requests with access token
102102 Resource-->>Client: MCP responses
from line 135
135135
136136> [!WARNING]
137137>
138> Dynamic Client Registration is deprecated. New implementations should use
139> [Client ID Metadata Documents](#client-id-metadata-documents) instead. This
140> option remains available for backwards compatibility with authorization
141> servers that do not support Client ID Metadata Documents.
138> **Deprecated**: Dynamic Client Registration is deprecated as of protocol
139> version `2026-07-28` ([PR
140> \#2858](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2858)).
141> Under the [feature lifecycle policy](https://modelcontextprotocol.io/community/feature-lifecycle.md), it remains
142> in the specification for at least twelve months after that revision's release
143> before it becomes eligible for removal. New implementations should use [Client
144> ID Metadata Documents](#client-id-metadata-documents) instead. This option
145> remains available for backwards compatibility with authorization servers that
146> do not support Client ID Metadata Documents. See the [deprecated features
147> registry](https://modelcontextprotocol.io/specification/2026-07-28/deprecated.md).
142148
143149MCP clients and authorization servers **MAY** support the
144150OAuth 2.0 Dynamic Client Registration Protocol [RFC7591](https://datatracker.ietf.org/doc/html/rfc7591)
specification/2026-07-28/basic/patterns/progress Changed · +9 / -0 lines
from line 4
44operations through notification messages. The server **MAY** send progress notifications
55to report the status of requests the client has issued.
66
7> [!NOTE]
8>
9> For brevity, the request example on this page shows only `progressToken` and
10> omits the `_meta` request metadata (`io.modelcontextprotocol/protocolVersion`,
11> `io.modelcontextprotocol/clientInfo`, and
12> `io.modelcontextprotocol/clientCapabilities`). Every request **MUST** include
13> the required `_meta` fields; see
14> [`_meta`](https://modelcontextprotocol.io/specification/2026-07-28/basic/index#_meta).
15
716## Progress Flow
817
918When a client wants to *receive* progress updates for a request, it includes a
specification/2026-07-28/changelog Changed · +4 / -4 lines
from line 25
2525
2626## Minor changes
2727
281. Add `extensions` field to `ClientCapabilities` and `ServerCapabilities` to support optional [extensions](https://modelcontextprotocol.io/docs/extensions/overview.md) beyond the core protocol.
281. Add `extensions` field to `ClientCapabilities` and `ServerCapabilities` to support optional [extensions](https://modelcontextprotocol.io/extensions/overview.md) beyond the core protocol.
29292. Document OpenTelemetry trace context propagation conventions for `_meta` keys (`traceparent`, `tracestate`, `baggage`) ([SEP-414](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/414)).
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)).
325. 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)).
325. Require `ttlMs` and `cacheScope` fields on results returned by `server/discover`, `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), [PR #2855](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2855)).
33336. 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
from line 57
575712. Define an [error code allocation policy](https://modelcontextprotocol.io/specification/2026-07-28/basic/index.md#error-codes)
5858 partitioning the JSON-RPC server-error range: `-32000` to `-32019` remains
5959 implementation-defined (existing SDK usage is grandfathered), `-32020` to `-32099` is
60 reserved for the MCP specification. Renumber the error codes introduced in this draft
61 accordingly — `HeaderMismatch` `-32001` → `-32020`, `MissingRequiredClientCapability`
60 reserved for the MCP specification. Renumber the error codes introduced in earlier drafts
61 of this revision accordingly — `HeaderMismatch` `-32001` → `-32020`, `MissingRequiredClientCapability`
6262 `-32003` → `-32021`, `UnsupportedProtocolVersion` `-32004` → `-32022` — and add
6363 `HeaderMismatchError` to the schema, which previously existed only in transport prose.
6464
specification/2026-07-28/client/elicitation Changed · +13 / -11 lines
from line 7
77
88Elicitation supports two modes:
99
10* **Form mode**: Servers can request structured data from users with optional JSON schemas to validate responses
10* **Form mode**: Servers can request structured data from users with JSON schemas to validate responses
1111* **URL mode**: Servers can direct users to external URLs for sensitive interactions that must *not* pass through the MCP client
1212
1313## User Interaction Model
from line 81
8181Servers **MAY** request information from a user during the processing of a client request, by sending an [`InputRequiredResult`](https://modelcontextprotocol.io/specification/2026-07-28/basic/patterns/mrtr#inputrequiredresult)
8282containing an `elicitation/create` request.
8383
84All elicitation requests **MUST** include the following parameters:
84All elicitation requests **MUST** include the following parameters, except that form mode
85requests **MAY** omit `mode`:
8586
8687| Name | Type | Options | Description |
8788| - | - | - | - |
from line 112
111112response using a restricted subset of JSON Schema.
112113
113114To simplify client user experience, form mode elicitation schemas are limited to flat objects
114with primitive properties only.
115whose properties are strings, numbers, booleans, or enums. The only array properties
116allowed are multi-select enums.
115117
116The schema is restricted to these primitive types:
118The schema is restricted to these types:
117119
1181201. **String Schema**
119121
from line 230
2282302. Validate user input before sending
2292313. Provide better guidance to users
230232
231All primitive types support optional default values to provide sensible starting points. Clients that support defaults SHOULD pre-populate form fields with these values.
233All of these types support optional default values to provide sensible starting points. Clients that support defaults SHOULD pre-populate form fields with these values.
232234
233Note that complex nested structures, arrays of objects (beyond enums), and other advanced JSON Schema features are intentionally not supported to simplify client user experience.
235Note that complex nested structures, arrays other than multi-select enums, and other advanced JSON Schema features are intentionally not supported to simplify client user experience.
234236
235237#### Example: Simple Text Request
236238
from line 319
317319
318320> [!NOTE]
319321>
320> **New feature:** URL mode elicitation is introduced in the `2025-11-25` version of the MCP specification. Its design and implementation may change in future protocol revisions.
322> URL mode elicitation was introduced in the `2025-11-25` version of the MCP specification. Its design and implementation may change in future protocol revisions.
321323
322324URL mode elicitation enables servers to direct users to external URLs for out-of-band interactions that must not pass through the MCP client. This is essential for auth flows, payment processing, and other sensitive or secure operations.
323325
from line 555
553555 Note over Server: Needs 3rd-party authorization for user
554556 Note over Server: Store state (bind the elicitation request to the user)
555557 Note over Server: generate requestState that encodes information about the original request and user.
556 Server->>Client: InputRequiredResult<br/>(mode: "url", url: "https://mcp.example.com/connect?...", requestState)
558 Server->>Client: InputRequiredResult<br/>(elicitation/create (mode: "url", url: "https://mcp.example.com/connect?..."), requestState)
557559
558560 Client->>User: Present consent to open URL
559561 User->>Client: Provide consent
560562 Client->>UserAgent: Open URL
561 Client->>Server: Accept response
562563 UserAgent->>Server: Load connect route
563564
564565 Note over Server: Confirm: user is logged into MCP Server or MCP AS<br>Confirm: elicitation user matches session user
from line 572
571572 Server->>3AS: Exchange authorization code for OAuth tokens
572573 3AS->>Server: Grants tokens
573574 Note over Server: Bind tokens to MCP user identity
575 User->>Client: Retry the original request
574576 Client->>Server: tools/call (ElicitResults, requestState)
575577 Note over Server: Retrieve token bound to user identity
576578 Server->>3RS: Call 3rd-party API
specification/2026-07-28/client/sampling Changed · +32 / -4 lines
#### Tool Use Content #### Tool Result Content
from line 506
506506 User-->>Client: Review and approve/modify
507507
508508 Note over Server,Client: Replay Request with approved response
509 Client-->>Server: tools/call(id:3, Return approved response)
509 Client-->>Server: tools/call(id:2, Return approved response)
510510```
511511
512512## Data Types
from line 519
519519The list of messages in a sampling request **SHOULD NOT** be retained between
520520separate requests.
521521
522The `content` field can contain:
522The `content` field contains a single content block or an array of content blocks. Each
523block is one of the following types, subject to the
524[message content constraints](#message-content-constraints):
523525
524526#### Text Content
525527
from line 552
550552}
551553```
552554
555#### Tool Use Content
556
557```json theme={null}
558{
559 "type": "tool_use",
560 "id": "call_abc123",
561 "name": "get_weather",
562 "input": { "city": "Paris" }
563}
564```
565
566#### Tool Result Content
567
568```json theme={null}
569{
570 "type": "tool_result",
571 "toolUseId": "call_abc123",
572 "content": [
573 {
574 "type": "text",
575 "text": "Weather in Paris: 18°C, partly cloudy"
576 }
577 ]
578}
579```
580
553581### Model Preferences
554582
555583Model selection in MCP requires careful abstraction since servers and clients may use
from line 632
604632
605633### Context Inclusion
606634
607The `includeContext` parameter specifies what context information the client is expected
608to include in its response:
635The `includeContext` parameter requests that the client attach context information to
636the prompt:
609637
610638* `"none"`: No additional context.
611639* `"thisServer"`: Include context from the requesting server.
specification/2026-07-28/index Changed · +6 / -3 lines
from line 63
6363
6464### Additional Utilities
6565
66* Configuration
6766* Progress tracking
6867* Cancellation
68* Subscriptions
69* Completion
70* Pagination
71* Caching
6972* Error reporting
7073
7174### Extensions
from line 82
7982
8083* **[Tasks](https://modelcontextprotocol.io/extensions/tasks/overview.md)**: Asynchronous execution of long-running
8184 operations, with polling, mid-flight input, and durable handles
82* **[Skills over MCP](https://modelcontextprotocol.io/community/working-groups/skills-over-mcp.md)**: Rich, structured
85* **[Skills over MCP](https://modelcontextprotocol.io/extensions/skills/overview.md)**: Rich, structured
8386 instructions for agent workflows, discovered and consumed through MCP
8487* **[MCP Apps](https://modelcontextprotocol.io/extensions/apps/overview.md)**: Interactive UI elements (charts, forms,
8588 video players) rendered inline within conversations
from line 134
131134
132135> [card] [Server Features](https://modelcontextprotocol.io/specification/2026-07-28/server.md)
133136
134> [card] [Client Features](https://modelcontextprotocol.io/specification/2026-07-28/client)
137> [card] [Client Features](https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation.md)
135138
136139> [card] [Contributing](https://modelcontextprotocol.io/community/contributing.md)
137140
specification/2026-07-28/server/prompts Changed · +6 / -1 lines
from line 170
170170```json theme={null}
171171{
172172 "jsonrpc": "2.0",
173 "method": "notifications/prompts/list_changed"
173 "method": "notifications/prompts/list_changed",
174 "params": {
175 "_meta": {
176 "io.modelcontextprotocol/subscriptionId": "listen-1"
177 }
178 }
174179}
175180```
176181
specification/2026-07-28/server/resources Changed · +26 / -7 lines
### Resource Template
from line 57
5757
5858Servers may advertise either feature independently, together or neither.
5959
60Servers that support neither `listChanged` nor `subscribe` may omit it:
60Servers that support neither `listChanged` nor `subscribe` may omit both fields:
6161
6262```json theme={null}
6363{
from line 228
228228### List Changed Notification
229229
230230When the list of available resources changes, servers that declared the `listChanged`
231capability **SHOULD** send a notification:
231capability **SHOULD** send a notification to clients that have opened a
232[`subscriptions/listen`][subscriptions] stream with `resourcesListChanged: true`:
232233
233234```json theme={null}
234235{
235236 "jsonrpc": "2.0",
236 "method": "notifications/resources/list_changed"
237 "method": "notifications/resources/list_changed",
238 "params": {
239 "_meta": {
240 "io.modelcontextprotocol/subscriptionId": "listen-1"
241 }
242 }
237243}
238244```
239245
from line 310
304310* `description`: Optional description
305311* `icons`: Optional array of icons for display in user interfaces
306312* `mimeType`: Optional MIME type
313* `annotations`: Optional [annotations](#annotations)
307314* `size`: Optional size in bytes
315
316### Resource Template
317
318A resource template definition includes:
319
320* `uriTemplate`: [URI template](https://datatracker.ietf.org/doc/html/rfc6570) for constructing resource URIs
321* `name`: The name of the resource template.
322* `title`: Optional human-readable name of the resource template for display purposes.
323* `description`: Optional description
324* `icons`: Optional array of icons for display in user interfaces
325* `mimeType`: Optional MIME type, only included if all resources that match the template have the same type
326* `annotations`: Optional [annotations](#annotations)
308327
309328### Resource Contents
310329
specification/2026-07-28/server/tools Changed · +7 / -2 lines
from line 237
237237```json theme={null}
238238{
239239 "jsonrpc": "2.0",
240 "method": "notifications/tools/list_changed"
240 "method": "notifications/tools/list_changed",
241 "params": {
242 "_meta": {
243 "io.modelcontextprotocol/subscriptionId": "listen-1"
244 }
245 }
241246}
242247```
243248
from line 284
279284
280285* `name`: Unique identifier for the tool
281286* `title`: Optional human-readable name of the tool for display purposes.
282* `description`: Human-readable description of functionality
287* `description`: Optional human-readable description of functionality
283288* `icons`: Optional array of icons for display in user interfaces
284289* `inputSchema`: JSON Schema defining expected parameters
285290 * Follows the [JSON Schema usage guidelines](https://modelcontextprotocol.io/specification/2026-07-28/basic.md#json-schema-usage)
specification/2026-07-28/server/utilities/completion Changed · +3 / -3 lines
from line 168
168168* `argument`: Object containing:
169169 * `name`: Argument name
170170 * `value`: Current value
171* `context`: Object containing:
172 * `arguments`: A mapping of already-resolved argument names to their values.
171* `context`: Optional object containing:
172 * `arguments`: Optional mapping of already-resolved argument names to their values.
173173
174174### CompleteResult
175175
from line 176
176176* `completion`: Object containing:
177177 * `values`: Array of suggestions (max 100)
178178 * `total`: Optional total matches
179 * `hasMore`: Additional results flag
179 * `hasMore`: Optional additional results flag
180180
181181## Error Handling
182182
specification/draft/basic/authorization/client-registration Changed · +14 / -8 lines
from line 76
7676 participant Metadata as Metadata Endpoint<br/>(Client's HTTPS URL)
7777 participant Resource as MCP Server
7878
79 Note over Client,Metadata: Client hosts metadata at<br/>https://app.example.com/oauth/metadata.json
79 Note over Client,Metadata: Client hosts metadata at<br/>https://app.example.com/oauth/client-metadata.json
8080
8181 User->>Client: Initiates connection to MCP Server
82 Client->>Server: Authorization Request<br/>client_id=https://app.example.com/oauth/metadata.json<br/>redirect_uri=http://127.0.0.1:3000/callback
82 Client->>Server: Authorization Request<br/>client_id=https://app.example.com/oauth/client-metadata.json<br/>redirect_uri=http://127.0.0.1:3000/callback
8383
8484 Server->>User: Authentication prompt
8585 User->>Server: Provides credentials
from line 87
8787
8888 Note over Server: Detects URL-formatted client_id
8989
90 Server->>Metadata: GET https://app.example.com/oauth/metadata.json
90 Server->>Metadata: GET https://app.example.com/oauth/client-metadata.json
9191 Metadata-->>Server: JSON Metadata Document<br/>{client_id, client_name, redirect_uris, ...}
9292
9393 Note over Server: Validates:<br/>1. client_id matches URL<br/>2. redirect_uri in allowed list<br/>3. Document structure valid<br/>4. (Optional) Domain allowed via trust policy
from line 96
9696 Server->>User: Display consent page with client_name
9797 User->>Server: Approves access
9898 Server->>Client: Authorization code via redirect_uri
99 Client->>Server: Exchange code for token<br/>client_id=https://app.example.com/oauth/metadata.json
99 Client->>Server: Exchange code for token<br/>client_id=https://app.example.com/oauth/client-metadata.json
100100 Server-->>Client: Access token
101101 Client->>Resource: MCP requests with access token
102102 Resource-->>Client: MCP responses
from line 135
135135
136136> [!WARNING]
137137>
138> Dynamic Client Registration is deprecated. New implementations should use
139> [Client ID Metadata Documents](#client-id-metadata-documents) instead. This
140> option remains available for backwards compatibility with authorization
141> servers that do not support Client ID Metadata Documents.
138> **Deprecated**: Dynamic Client Registration is deprecated as of protocol
139> version `2026-07-28` ([PR
140> \#2858](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2858)).
141> Under the [feature lifecycle policy](https://modelcontextprotocol.io/community/feature-lifecycle.md), it remains
142> in the specification for at least twelve months after that revision's release
143> before it becomes eligible for removal. New implementations should use [Client
144> ID Metadata Documents](#client-id-metadata-documents) instead. This option
145> remains available for backwards compatibility with authorization servers that
146> do not support Client ID Metadata Documents. See the [deprecated features
147> registry](https://modelcontextprotocol.io/specification/draft/deprecated.md).
142148
143149MCP clients and authorization servers **MAY** support the
144150OAuth 2.0 Dynamic Client Registration Protocol [RFC7591](https://datatracker.ietf.org/doc/html/rfc7591)
specification/draft/basic/patterns/progress Changed · +9 / -0 lines
from line 4
44operations through notification messages. The server **MAY** send progress notifications
55to report the status of requests the client has issued.
66
7> [!NOTE]
8>
9> For brevity, the request example on this page shows only `progressToken` and
10> omits the `_meta` request metadata (`io.modelcontextprotocol/protocolVersion`,
11> `io.modelcontextprotocol/clientInfo`, and
12> `io.modelcontextprotocol/clientCapabilities`). Every request **MUST** include
13> the required `_meta` fields; see
14> [`_meta`](https://modelcontextprotocol.io/specification/draft/basic/index#_meta).
15
716## Progress Flow
817
918When a client wants to *receive* progress updates for a request, it includes a
specification/draft/client/elicitation Changed · +13 / -11 lines
from line 7
77
88Elicitation supports two modes:
99
10* **Form mode**: Servers can request structured data from users with optional JSON schemas to validate responses
10* **Form mode**: Servers can request structured data from users with JSON schemas to validate responses
1111* **URL mode**: Servers can direct users to external URLs for sensitive interactions that must *not* pass through the MCP client
1212
1313## User Interaction Model
from line 81
8181Servers **MAY** request information from a user during the processing of a client request, by sending an [`InputRequiredResult`](https://modelcontextprotocol.io/specification/draft/basic/patterns/mrtr#inputrequiredresult)
8282containing an `elicitation/create` request.
8383
84All elicitation requests **MUST** include the following parameters:
84All elicitation requests **MUST** include the following parameters, except that form mode
85requests **MAY** omit `mode`:
8586
8687| Name | Type | Options | Description |
8788| - | - | - | - |
from line 112
111112response using a restricted subset of JSON Schema.
112113
113114To simplify client user experience, form mode elicitation schemas are limited to flat objects
114with primitive properties only.
115whose properties are strings, numbers, booleans, or enums. The only array properties
116allowed are multi-select enums.
115117
116The schema is restricted to these primitive types:
118The schema is restricted to these types:
117119
1181201. **String Schema**
119121
from line 230
2282302. Validate user input before sending
2292313. Provide better guidance to users
230232
231All primitive types support optional default values to provide sensible starting points. Clients that support defaults SHOULD pre-populate form fields with these values.
233All of these types support optional default values to provide sensible starting points. Clients that support defaults SHOULD pre-populate form fields with these values.
232234
233Note that complex nested structures, arrays of objects (beyond enums), and other advanced JSON Schema features are intentionally not supported to simplify client user experience.
235Note that complex nested structures, arrays other than multi-select enums, and other advanced JSON Schema features are intentionally not supported to simplify client user experience.
234236
235237#### Example: Simple Text Request
236238
from line 319
317319
318320> [!NOTE]
319321>
320> **New feature:** URL mode elicitation is introduced in the `2025-11-25` version of the MCP specification. Its design and implementation may change in future protocol revisions.
322> URL mode elicitation was introduced in the `2025-11-25` version of the MCP specification. Its design and implementation may change in future protocol revisions.
321323
322324URL mode elicitation enables servers to direct users to external URLs for out-of-band interactions that must not pass through the MCP client. This is essential for auth flows, payment processing, and other sensitive or secure operations.
323325
from line 555
553555 Note over Server: Needs 3rd-party authorization for user
554556 Note over Server: Store state (bind the elicitation request to the user)
555557 Note over Server: generate requestState that encodes information about the original request and user.
556 Server->>Client: InputRequiredResult<br/>(mode: "url", url: "https://mcp.example.com/connect?...", requestState)
558 Server->>Client: InputRequiredResult<br/>(elicitation/create (mode: "url", url: "https://mcp.example.com/connect?..."), requestState)
557559
558560 Client->>User: Present consent to open URL
559561 User->>Client: Provide consent
560562 Client->>UserAgent: Open URL
561 Client->>Server: Accept response
562563 UserAgent->>Server: Load connect route
563564
564565 Note over Server: Confirm: user is logged into MCP Server or MCP AS<br>Confirm: elicitation user matches session user
from line 572
571572 Server->>3AS: Exchange authorization code for OAuth tokens
572573 3AS->>Server: Grants tokens
573574 Note over Server: Bind tokens to MCP user identity
575 User->>Client: Retry the original request
574576 Client->>Server: tools/call (ElicitResults, requestState)
575577 Note over Server: Retrieve token bound to user identity
576578 Server->>3RS: Call 3rd-party API
specification/draft/client/sampling Changed · +33 / -5 lines
#### Tool Use Content #### Tool Result Content
from line 6
66> `2026-07-28`
77> ([SEP-2577](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577)).
88> Under the [feature lifecycle policy](https://modelcontextprotocol.io/community/feature-lifecycle.md), it remains
9> in the specification for at least twelve months after this revision's release
9> in the specification for at least twelve months after that revision's release
1010> before it becomes eligible for removal. New implementations **SHOULD NOT**
1111> adopt it; existing implementations **SHOULD** migrate to integrating directly
1212> with LLM provider APIs. See the [deprecated features
from line 506
506506 User-->>Client: Review and approve/modify
507507
508508 Note over Server,Client: Replay Request with approved response
509 Client-->>Server: tools/call(id:3, Return approved response)
509 Client-->>Server: tools/call(id:2, Return approved response)
510510```
511511
512512## Data Types
from line 519
519519The list of messages in a sampling request **SHOULD NOT** be retained between
520520separate requests.
521521
522The `content` field can contain:
522The `content` field contains a single content block or an array of content blocks. Each
523block is one of the following types, subject to the
524[message content constraints](#message-content-constraints):
523525
524526#### Text Content
525527
from line 552
550552}
551553```
552554
555#### Tool Use Content
556
557```json theme={null}
558{
559 "type": "tool_use",
560 "id": "call_abc123",
561 "name": "get_weather",
562 "input": { "city": "Paris" }
563}
564```
565
566#### Tool Result Content
567
568```json theme={null}
569{
570 "type": "tool_result",
571 "toolUseId": "call_abc123",
572 "content": [
573 {
574 "type": "text",
575 "text": "Weather in Paris: 18°C, partly cloudy"
576 }
577 ]
578}
579```
580
553581### Model Preferences
554582
555583Model selection in MCP requires careful abstraction since servers and clients may use
from line 632
604632
605633### Context Inclusion
606634
607The `includeContext` parameter specifies what context information the client is expected
608to include in its response:
635The `includeContext` parameter requests that the client attach context information to
636the prompt:
609637
610638* `"none"`: No additional context.
611639* `"thisServer"`: Include context from the requesting server.
specification/draft/index Changed · +6 / -3 lines
from line 63
6363
6464### Additional Utilities
6565
66* Configuration
6766* Progress tracking
6867* Cancellation
68* Subscriptions
69* Completion
70* Pagination
71* Caching
6972* Error reporting
7073
7174### Extensions
from line 82
7982
8083* **[Tasks](https://modelcontextprotocol.io/extensions/tasks/overview.md)**: Asynchronous execution of long-running
8184 operations, with polling, mid-flight input, and durable handles
82* **[Skills over MCP](https://modelcontextprotocol.io/community/working-groups/skills-over-mcp.md)**: Rich, structured
85* **[Skills over MCP](https://modelcontextprotocol.io/extensions/skills/overview.md)**: Rich, structured
8386 instructions for agent workflows, discovered and consumed through MCP
8487* **[MCP Apps](https://modelcontextprotocol.io/extensions/apps/overview.md)**: Interactive UI elements (charts, forms,
8588 video players) rendered inline within conversations
from line 134
131134
132135> [card] [Server Features](https://modelcontextprotocol.io/specification/draft/server.md)
133136
134> [card] [Client Features](https://modelcontextprotocol.io/specification/draft/client)
137> [card] [Client Features](https://modelcontextprotocol.io/specification/draft/client/elicitation.md)
135138
136139> [card] [Contributing](https://modelcontextprotocol.io/community/contributing.md)
137140
specification/draft/server/prompts Changed · +6 / -1 lines
from line 170
170170```json theme={null}
171171{
172172 "jsonrpc": "2.0",
173 "method": "notifications/prompts/list_changed"
173 "method": "notifications/prompts/list_changed",
174 "params": {
175 "_meta": {
176 "io.modelcontextprotocol/subscriptionId": "listen-1"
177 }
178 }
174179}
175180```
176181
specification/draft/server/resources Changed · +26 / -7 lines
### Resource Template
from line 57
5757
5858Servers may advertise either feature independently, together or neither.
5959
60Servers that support neither `listChanged` nor `subscribe` may omit it:
60Servers that support neither `listChanged` nor `subscribe` may omit both fields:
6161
6262```json theme={null}
6363{
from line 228
228228### List Changed Notification
229229
230230When the list of available resources changes, servers that declared the `listChanged`
231capability **SHOULD** send a notification:
231capability **SHOULD** send a notification to clients that have opened a
232[`subscriptions/listen`][subscriptions] stream with `resourcesListChanged: true`:
232233
233234```json theme={null}
234235{
235236 "jsonrpc": "2.0",
236 "method": "notifications/resources/list_changed"
237 "method": "notifications/resources/list_changed",
238 "params": {
239 "_meta": {
240 "io.modelcontextprotocol/subscriptionId": "listen-1"
241 }
242 }
237243}
238244```
239245
from line 310
304310* `description`: Optional description
305311* `icons`: Optional array of icons for display in user interfaces
306312* `mimeType`: Optional MIME type
313* `annotations`: Optional [annotations](#annotations)
307314* `size`: Optional size in bytes
315
316### Resource Template
317
318A resource template definition includes:
319
320* `uriTemplate`: [URI template](https://datatracker.ietf.org/doc/html/rfc6570) for constructing resource URIs
321* `name`: The name of the resource template.
322* `title`: Optional human-readable name of the resource template for display purposes.
323* `description`: Optional description
324* `icons`: Optional array of icons for display in user interfaces
325* `mimeType`: Optional MIME type, only included if all resources that match the template have the same type
326* `annotations`: Optional [annotations](#annotations)
308327
309328### Resource Contents
310329