refactor: replace lowlevel Server decorators with on_* constructor kwargs by maxisbey · Pull Request #1985 · modelcontextprotocol/python-sdk · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2a5ebec
refactor: replace lowlevel Server decorators with on_* constructor kw…
maxisbey Feb 3, 2026
2b9e8c7
fix: remove unnecessary request_ctx contextvar from notification hand…
maxisbey Feb 3, 2026
a7779e1
fix: address PR review comments on migration docs and type hints
maxisbey Feb 6, 2026
b2dc1af
fix: collapse single-arg Server() to one line in migration example
maxisbey Feb 6, 2026
e7a6e5f
refactor: replace _create_handler_kwargs with private methods on MCPS…
maxisbey Feb 9, 2026
e0fc054
refactor: use dict instead of list of tuples for handler maps
maxisbey Feb 9, 2026
56e4ada
docs: document keyword-only Server constructor params in migration guide
maxisbey Feb 9, 2026
5e4274a
refactor: inline _register_default_task_handlers into enable_tasks
maxisbey Feb 9, 2026
032ebb2
feat: add on_* handler kwargs to enable_tasks for custom task handlers
maxisbey Feb 9, 2026
9b77527
refactor: drop explicit Any from ServerRequestContext, rely on Reques…
maxisbey Feb 10, 2026
b466beb
refactor: make ExperimentalHandlers generic on LifespanResultT
maxisbey Feb 10, 2026
edf4833
refactor: type MCPServer handler signatures instead of Any
maxisbey Feb 10, 2026
7801dc3
refactor: type notify as ClientNotification, remove getattr
maxisbey Feb 10, 2026
5fd17d1
fix: resolve pyright errors in ExperimentalHandlers.enable_tasks
maxisbey Feb 10, 2026
178d41f
fix: advertise subscribe capability when handler is registered
maxisbey Feb 10, 2026
ca8fd2e
refactor: make on_ping non-optional with default handler per MCP spec
maxisbey Feb 10, 2026
f4c256f
fix: update tests to use new Server constructor kwargs pattern
maxisbey Feb 11, 2026
b3f817f
fix: migrate experimental task server tests to new handler pattern
maxisbey Feb 11, 2026
c72c2dc
fix: migrate tests to new Server constructor kwargs pattern
maxisbey Feb 11, 2026
793b144
fix: skip partial task capability tests
maxisbey Feb 11, 2026
8da8b7b
fix: migrate examples and snippets to new Server constructor kwargs p…
maxisbey Feb 11, 2026
92f0de5
fix: update README.v2.md prose to match new low-level Server API
maxisbey Feb 11, 2026
f61ca1f
fix: improve test coverage across lowlevel server and experimental tasks
maxisbey Feb 11, 2026
c1a7020
fix: cover experimental property cache-hit branch and fix completion …
maxisbey Feb 11, 2026
868165a
fix: address PR review comments (typo and field name in docs)
maxisbey Feb 12, 2026
903866c
fix: improve migration guide accuracy and document additional breakin…
maxisbey Feb 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
314 changes: 149 additions & 165 deletions README.v2.md

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions docs/experimental/index.md
302 changes: 291 additions & 11 deletions docs/migration.md
Loading