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
|
|
@ -7,7 +7,7 @@ from __future__ import annotations
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import httpx
|
import httpx
|
||||||
from mcp.server.fastmcp import FastMCP
|
from fastmcp import FastMCP
|
||||||
|
|
||||||
_client: httpx.AsyncClient | None = None
|
_client: httpx.AsyncClient | None = None
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ postgres = [
|
||||||
"asyncpg>=0.30.0",
|
"asyncpg>=0.30.0",
|
||||||
]
|
]
|
||||||
mcp = [
|
mcp = [
|
||||||
"mcp[cli]>=1.0.0,<2.0.0",
|
"fastmcp>=3.0.0",
|
||||||
]
|
]
|
||||||
dev = [
|
dev = [
|
||||||
"pytest>=8.0",
|
"pytest>=8.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue