Skip to content

Commit 8136002

Browse files
lurenssclaude
andcommitted
fix: migrate from mcp[cli] to standalone fastmcp package for fastmcp.cloud compatibility
Changes: - Update pyproject.toml: Replace mcp[cli]>=1.3.0 with fastmcp>=2.0.0 - Update server.py: Change import from mcp.server.fastmcp to fastmcp This fixes the pre-flight check failure on fastmcp.cloud deployment. The platform requires the standalone fastmcp package, not the official MCP SDK's FastMCP wrapper. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a7bcd18 commit 8136002

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [
99
]
1010
requires-python = ">=3.10"
1111
dependencies = [
12-
"mcp[cli]>=1.3.0",
12+
"fastmcp>=2.0.0",
1313
"httpx>=0.24.0",
1414
]
1515
classifiers = [

src/scrapegraph_mcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from typing import Any, Dict
1414

1515
import httpx
16-
from mcp.server.fastmcp import FastMCP
16+
from fastmcp import FastMCP
1717

1818

1919
class ScapeGraphClient:

0 commit comments

Comments
 (0)