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:
Claude 2026-08-03 03:53:23 +00:00
parent 00fcc9f0c6
commit b63e5f7f5b
2 changed files with 2 additions and 2 deletions

View file

@ -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",