Switch from mcp SDK to standalone fastmcp package
The mcp SDK v2.0.0 (2026-07-28) renamed FastMCP to MCPServer and removed the mcp.server.fastmcp import path entirely. The standalone fastmcp package (PrefectHQ, v3.x) is the actively maintained framework with identical @mcp.tool() decorator API. - pyproject.toml: [mcp] extra now requires fastmcp>=3.0.0 - server.py: import changed from mcp.server.fastmcp to fastmcp - mcp_stdio.py: unchanged (imports from diligence.mcp.server)
This commit is contained in:
parent
00fcc9f0c6
commit
b63e5f7f5b
2 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ postgres = [
|
|||
"asyncpg>=0.30.0",
|
||||
]
|
||||
mcp = [
|
||||
"mcp[cli]>=1.0.0,<2.0.0",
|
||||
"fastmcp>=3.0.0",
|
||||
]
|
||||
dev = [
|
||||
"pytest>=8.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue