Skip to content

Commit c1b65fa

Browse files
committed
fix: have ack notification confirm subscriptions server agreed to
1 parent 20ae431 commit c1b65fa

2 files changed

Lines changed: 34 additions & 6 deletions

File tree

docs/seps/2575-stateless-mcp.mdx

Lines changed: 17 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

seps/2575-stateless-mcp.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,22 @@ messages until the server sends a final `Result` to close it.
448448
```ts
449449
export interface SubscriptionsAcknowledgedNotification extends Notification {
450450
method: "notifications/subscriptions/acknowledged";
451+
params: {
452+
/**
453+
* The notification subscriptions the server has agreed to honor.
454+
* Only includes notification types the server actually supports.
455+
* If the client requested an unsupported notification type
456+
* (e.g., promptsListChanged when the server has no prompts),
457+
* it is omitted from this set.
458+
*/
459+
notifications: {
460+
toolsListChanged?: boolean;
461+
promptsListChanged?: boolean;
462+
resourcesListChanged?: boolean;
463+
resourceSubscriptions?: string[];
464+
logLevel?: LoggingLevel;
465+
};
466+
};
451467
}
452468
```
453469

@@ -473,9 +489,7 @@ the following RPC methods and notifications are removed:
473489
- `initialize` / `notifications/initialized`: The initialization handshake is
474490
removed. Version negotiation is handled per-request via `MCP-Protocol-Version`
475491
headers and `_meta` fields. Capability discovery is handled by
476-
`server/discover`. Servers compliant with this SEP **SHOULD** accept and
477-
ignore `notifications/initialized` without error to maintain backward
478-
compatibility with clients that may send it.
492+
`server/discover`.
479493
- `logging/setLevel`: Removed. The log level is now specified per-request via
480494
the `'io.modelcontextprotocol/logLevel'` `_meta` field. There is no
481495
replacement RPC.

0 commit comments

Comments
 (0)