Narrow message_handler's parameter to notifications and exceptions (#3168)
This commit is contained in:
parent
47bfa85e83
commit
814072c94d
1 changed files with 74 additions and 147 deletions
|
|
@ -146,7 +146,7 @@ Each of these is a section in the **[Migration Guide](migration.md)**:
|
|||
|
||||
* The **WebSocket transport**, both sides, and the `mcp[ws]` extra. It was never part of the MCP specification.
|
||||
* The **experimental Tasks** API (`mcp.*.experimental`). 2026-07-28 moves tasks out of the core protocol and into an official extension ([SEP-2663](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2663)), which this SDK does not implement yet.
|
||||
* `mcp.types`, `mcp.shared.version`, and `mcp.shared.progress` as import paths.
|
||||
* `mcp.types`, `mcp.shared.version`, `mcp.shared.progress`, and `mcp.shared.session` (with the `RequestResponder` stub v1 `message_handler` annotations imported) as import paths.
|
||||
* The deprecated `streamablehttp_client` spelling, and the `get_session_id` callback from `streamable_http_client` (which now yields exactly two streams).
|
||||
* `McpError`, renamed **`MCPError`** with a direct `(code, message, data)` constructor.
|
||||
* `MCPServer.get_context()`, `mount_path=`, and the lowlevel `Server`'s decorator methods, ContextVar, and handler dicts.
|
||||
|
|
|
|||
Loading…
Reference in a new issue