sketch: refactor lowlevel server to handler pattern#1968
Closed
maxisbey wants to merge 17 commits intomainmodelcontextprotocol/python-sdk:mainfrom
sketch/lowlevel-server-v2modelcontextprotocol/python-sdk:sketch/lowlevel-server-v2Copy head branch name to clipboard
Closed
sketch: refactor lowlevel server to handler pattern#1968maxisbey wants to merge 17 commits intomainmodelcontextprotocol/python-sdk:mainfrom sketch/lowlevel-server-v2modelcontextprotocol/python-sdk:sketch/lowlevel-server-v2Copy head branch name to clipboard
maxisbey wants to merge 17 commits intomainmodelcontextprotocol/python-sdk:mainfrom
sketch/lowlevel-server-v2modelcontextprotocol/python-sdk:sketch/lowlevel-server-v2Copy head branch name to clipboard
Commits
Commits on Feb 2, 2026
sketch: lowlevel server v2 with overloaded handler classes
Show description for ec9815fcommittedrefactor: replace decorator-based handlers with RequestHandler/NotificationHandler pattern
Show description for eb35b3ccommittedrefactor: split RequestContext into handler context hierarchy
Show description for 0b60fadcommitted- committed
refactor: decouple ExperimentalHandlers from Server internals, update migration docs
Show description for 860e8d6committedrefactor: update MCPServer to use RequestHandler pattern instead of decorators
Show description for 17c459ccommittedrefactor: collapse context hierarchy into single RequestContext class
Show description for 8100870committedrefactor: move _ping_handler below Server class
Show description for d5c3b5fcommittedrefactor: merge request_handler.py and notification_handler.py into handler.py
Show description for 952a29ccommittedrefactor: move request_ctx contextvar to lowlevel server, remove per-handler boilerplate
Show description for 6f0b041committed- committed
docs: fix stale examples in migration guide
Show description for 24f1f39committedrefactor: address review — kw_only dataclass, type Experimental properly, remove redundant guard
Show description for 8eb7299committedfix: allow ping handler override, add task overloads, update stale docstrings
Show description for cafb3e5committed- committed
Update src/mcp/server/lowlevel/__init__.py
Show description for 044e128andcommitted- committed