Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Model Context Protocol Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-model-context-protocol-knowledge-patch-nevaberry-plugins)
---
name: model-context-protocol-knowledge-patch
description: Model Context Protocol (MCP)
version: "2025-11-25"
license: MIT
metadata:
author: Nevaberry
---
# Model Context Protocol compatibility
Load this skill when implementing or updating MCP clients, servers, authorization,
HTTP transports, interactive operations, or schema validators. Consult the
attributed reference entries for behavior that depends on the protocol revision.
## Reference index
| Reference | Topics |
| --- | --- |
| [Authorization](references/authorization.md) | OAuth discovery, PKCE, registration, token and issuer binding, resource indicators, scope consent |
| [Interactive operations](references/interactive-operations.md) | Progress, completion, form and URL elicitation, sampling, experimental core tasks, tasks extension |
| [Protocol revisions and schemas](references/protocol-revisions-and-schemas.md) | Lifecycle, discovery, capabilities, schemas, tool results, errors, caching, display metadata, tracing |
| [Transport, sessions, and subscriptions](references/transport-sessions-and-subscriptions.md) | HTTP bodies and headers, sessions, SSE routing and recovery, subscriptions, logging, legacy transport |
## Breaking changes in `2026-07-28`
### Stateless requests and server discovery
`initialize` and `notifications/initialized` are removed. Send these keys in
every request's `params._meta`:
- `io.modelcontextprotocol/protocolVersion`
- `io.modelcontextprotocol/clientCapabilities`
- `io.modelcontextprotocol/clientInfo` (optional but recommended)
Servers should include `io.modelcontextprotocol/serverInfo` in result metadata
and return `UnsupportedProtocolVersionError` on a version mismatch.
Servers must implement `server/discover` to advertise supported protocol
versions, capabilities, and identity. Clients may call it before other
operations to select a version or use it as a compatibility probe over stdio.
```json
{"jsonrpc":"2.0","id":1,"method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{}}}}
```
### HTTP state, streams, and subscriptions
Streamable HTTP drops MCP sessions and `Mcp-Session-Id`. Tools, prompts, and
resources lists can no longer vary by connection. Carry cross-call state with
explicit server-minted handles passed as ordinary tool arguments.
SSE event IDs, `Last-Event-ID` resumption, and message redelivery are removed.
A broken response stream loses the in-flight request; the client must issue a
new request with a fresh JSON-RPC ID.
Use the long-lived POST response to `subscriptions/listen` in place of the HTTP
GET stream, `resources/subscribe`, and `resources/unsubscribe`. Opt in with
`toolsListChanged`, `promptsListChanged`, `resourcesListChanged`, or
`resourceSubscriptions`. The server acknowledges the subscription and tags
notifications with `io.modelcontextprotocol/subscriptionId`. Request-scoped
progress and log messages continue on their own request's response stream.
Streamable HTTP POSTs use `Mcp-Method` and `Mcp-Name` routing headers.
Tool parameters can supply custom headers through `x-mcp-header`.
### Multi round-trip requests and URL interactions
A server needing roots, sampling, or elicitation returns an `InputRequiredResult`
with `resultType: "input_required"` and requests in `inputRequests`. Retry the
original operation with answers in `inputResponses`. Successful results require
`resultType`, using `"complete"` for ordinary results. Clients must treat omitted
discriminators from earlier revisions as `"complete"`.
URL elicitation drops `elicitationId` and `notifications/elicitation/complete`.
Retry the original request to learn the outcome of the out-of-band interaction.
Servers needing correlation across retries can encode their own identifier in
`requestState`.
### Tasks extension and errors
Tasks move out of core into the official `io.modelcontextprotocol/tasks`
extension. Poll `tasks/get` and send client input with `tasks/update`.
The extension drops `tasks/result` and `tasks/list`; servers may return task
handles without per-request opt-in. Advertise optional protocol extensions in
the `extensions` field of `ClientCapabilities` and `ServerCapabilities`.
Missing-resource errors change from `-32002` to `-32602` (`Invalid Params`).
Use `-32000` through `-32019` for implementation-defined server errors and reserve
`-32020` through `-32099` for MCP, with existing SDK usage grandfathered.
The stable codes are `-32020` for `HeaderMismatch`, `-32021` for
`MissingRequiredClientCapability`, and `-32022` for `UnsupportedProtocolVersion`.
The schema includes `HeaderMismatchError`.
### Tool schemas and cache hints
Tool `inputSchema` and `outputSchema` accept any JSON Schema 2020-12 keywords;
`structuredContent` accepts any JSON value. Validators must account for the
revision's `$ref` resolution requirements and resource bounds for schema
composition keywords. The generated `schema.json` accepts fractional numeric
`minimum`, `maximum`, and `default` values.
`tools/list`, `prompts/list`, `resources/list`, `resources/read`, and
`resources/templates/list` results require `ttlMs` and `cacheScope`.
Use `ttlMs` as a freshness hint in milliseconds and `cacheScope` (`"public"` or
`"private"`) to determine whether a shared cache may store the result.
List-change notifications complement these hints. Servers should return
`tools/list` entries in a deterministic order so clients can reliably cache them.
## Deprecations and removed methods in `2026-07-28`
- Prefer Client ID Metadata Documents. OAuth Dynamic Client Registration remains
available for authorization servers without document support. When registering
dynamically, the client must set the appropriate `application_type` for its
redirect URIs.
- Avoid adding Roots, Sampling, or Logging to new implementations. Pass file or
directory inputs via tool arguments, resource URIs, or server configuration.
Integrate directly with a model API for sampling; use stderr over stdio or
OpenTelemetry for logging.
- `includeContext` values `"thisServer"` and `"allServers"` are formally
deprecated. Omit the field or use `"none"`.
- Remove calls to `ping` and `logging/setLevel`; stop sending
`notifications/roots/list_changed`. Set `io.modelcontextprotocol/logLevel`
in a request's `_meta` to receive `notifications/message` for that request.
Servers must suppress those messages when the field is absent.
- Legacy HTTP+SSE is formally classified as Deprecated. Migrate to Streamable HTTP.
## Authorization quick reference
In `2025-06-18`, MCP clients must implement RFC 8707 Resource Indicators.
Send `resource` in both authorization and token requests even if the
authorization server lacks Resource Indicators support. Use the most specific
canonical MCP URI available, including a path identifying a particular server, and omit
a trailing slash unless it changes the resource's meaning.
In `2025-11-25`, a challenge is optional for protected resource metadata discovery.
If it omits `resource_metadata`, the client must try
`/.well-known/oauth-protected-resource` with the MCP endpoint path appended,
then at the origin root. Authorization-server discovery supports OpenID Connect
Discovery 1.0; clients must verify PKCE support through
`code_challenge_methods_supported` in both supported metadata formats before
authorizing. Use `S256` when technically capable.
Clients supporting all registration options should try pre-registered
credentials, then a metadata document when
`client_id_metadata_document_supported` is true, then dynamic registration when
`registration_endpoint` is available, then user-entered credentials.
Host the document at an HTTPS URL with a path and use that exact URL as
`client_id` in both the OAuth request and the document (`2025-11-25`).
Treat the challenge's `scope` as authoritative for the current request.
If absent, use all of the resource's `scopes_supported` when present; otherwise
omit the scope parameter. At runtime, servers should send HTTP 403 with a Bearer
challenge carrying `error="insufficient_scope"`, `scope`, and `resource_metadata`.
Clients acting for a user should try reauthorization and limit retries of the
original request (`2025-11-25`).
In `2026-07-28`, authorization servers should include `iss` on authorization
responses. Clients must validate it against the recorded issuer when present
before redeeming the code. Key stored client credentials by issuer, use them
only with that issuer, and register again when the authorization server changes.
## Interactive operations quick reference
### Form and URL elicitation in `2025-11-25`
Advertise `capabilities.elicitation.form: {}` and/or
`capabilities.elicitation.url: {}`. Empty `elicitation` advertises form only;
omitted `params.mode` means `"form"`. Clients must return `-32602` for an
unsupported mode. Forms support titled or untitled single-select and
multi-select enums; handle both kinds in `ElicitResult`. Form schemas can set
`default` on string, number, and enum fields.
URL-mode requests contain `mode: "url"`, `elicitationId`, `url`, and `message`.
An `accept` response omits `content` and records consent to navigate. Completion
may arrive separately via `notifications/elicitation/complete` with
`params.elicitationId`; clients must ignore unknown or already-completed IDs.
Clients must show the full URL before asking for consent, skip automatic
prefetching, and use a browser context that keeps page contents and user input
private from the client and model. Servers must verify that the user completing
the interaction is the same user who requested it.
### Tool-enabled sampling in `2025-11-25`
Supply sampling tools in `tools` and control tool selection with `toolChoice`.
Send tool-enabled sampling only to clients advertising
`capabilities.sampling.tools: {}`. After assistant `tool_use` blocks, the next
message must have role `user` and contain only `tool_result` blocks, with a
matching `toolUseId` for every tool-use `id`. Clients should return `-32602` for
missing results or mixed content.
### Experimental core tasks in `2025-11-25`
Tasks are experimental in this revision. Under `capabilities.tasks.requests`,
servers advertise `tools.call`; clients advertise `sampling.createMessage`
and/or `elicitation.create`, each as `{}`. Listing and cancellation have separate
opt-ins at `capabilities.tasks.list` and `capabilities.tasks.cancel`.
With `capabilities.tasks.requests.tools.call` advertised, apply the tool's
`execution.taskSupport`: omitted means `"forbidden"`, `"optional"` permits either
form, and calling a `"required"` tool without augmentation returns `-32601`.
Poll `tasks/get`, respecting `pollInterval` in milliseconds when supplied;
`notifications/tasks/status` are optional. On `input_required`, call
`tasks/result` so the receiver can send follow-up requests while the response
waits for a terminal state. See the reference for retention, correlation,
cancellation, access rules, and the later tasks extension.
## Tool results and HTTP compatibility
In `2025-06-18`, when a tool declares `outputSchema`, the server must return
conforming `structuredContent`; the client should validate it. For older clients,
also return serialized JSON in a text block in `content`. A `resource_link` URI
can be fetched or subscribed to directly and may be absent from `resources/list`.
Servers returning embedded `resource` items in tool results should implement
the `resources` capability.
In `2025-11-25`, report invalid tool arguments as tool execution errors so the
model can correct the input and retry. Interpret schemas without an explicit
dialect as JSON Schema 2020-12.
In `2025-06-18`, send the negotiated revision in `MCP-Protocol-Version` on each
HTTP request after initialization. If absent and the server cannot determine
the version from session state or another source, it should assume `2025-03-26`.
A supplied invalid or unsupported version must receive HTTP 400.
In `2025-11-25`, a Streamable HTTP server must return HTTP 403 Forbidden when
the `Origin` header is invalid.