Repository navigation
Commit 985bfce
committed
fix(git): migrate to MCP Python SDK v2 constructor-based API
Fixes #4580. The v1 decorator based handlers (@server.list_tools,
@server.call_tool) no longer exist in v2; the low-level Server now
takes handlers as on_* constructor arguments. Also pins mcp>=2,<3
in pyproject.toml, the missing upper bound was the actual root
cause: an unconstrained mcp>=1.0.0 let a fresh install silently
resolve to the incompatible v2 SDK.
Also removes the unused list_repos()/by_roots() helper, confirmed
dead via grep, which relied on the now-removed ambient
server.request_context property.1 parent 76d64c8 commit 985bfce
3 files changed
Lines changed: 263 additions & 293 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments