Skip to content

Commit 8a3029b

Browse files
committed
Integrate FastMCP
This commit integrates FastMCP, a high-level MCP server implementation originally written by Jeremiah Lowin, into the official MCP SDK. It also updates dependencies and adds new dev dependencies. It moves the existing SDK into a .lowlevel .
1 parent aaf32b5 commit 8a3029b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4869
-514
lines changed

pyproject.toml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[build-system]
2-
requires = ["hatchling"]
3-
build-backend = "hatchling.build"
41

52
[project]
63
name = "mcp"
@@ -29,11 +26,31 @@ dependencies = [
2926
"anyio>=4.5",
3027
"httpx>=0.27",
3128
"httpx-sse>=0.4",
32-
"pydantic>=2.7.2",
29+
"pydantic>=2.7.2,<3.0.0",
3330
"starlette>=0.27",
3431
"sse-starlette>=2.0",
32+
"pydantic-settings>=2.6.1",
33+
]
34+
35+
[project.optional-dependencies]
36+
rich = ["rich>=13.9.4"]
37+
38+
[tool.uv]
39+
resolution = "lowest-direct"
40+
dev-dependencies = [
41+
"pyright>=1.1.378",
42+
"pytest>=8.3.3",
43+
"ruff>=0.6.9",
44+
"trio>=0.26.2",
45+
"pytest-flakefinder>=1.1.0",
46+
"pytest-xdist>=3.6.1",
47+
"pytest-asyncio>=0.24.0",
3548
]
3649

50+
[build-system]
51+
requires = ["hatchling"]
52+
build-backend = "hatchling.build"
53+
3754
[project.urls]
3855
Homepage = "https://modelcontextprotocol.io"
3956
Repository = "https://github.com/modelcontextprotocol/python-sdk"
@@ -58,15 +75,6 @@ target-version = "py310"
5875
[tool.ruff.lint.per-file-ignores]
5976
"__init__.py" = ["F401"]
6077

61-
[tool.uv]
62-
resolution = "lowest-direct"
63-
dev-dependencies = [
64-
"pyright>=1.1.378",
65-
"pytest>=8.3.3",
66-
"ruff>=0.6.9",
67-
"trio>=0.26.2",
68-
]
69-
7078
[tool.uv.workspace]
7179
members = ["examples/servers/*"]
7280

0 commit comments

Comments
 (0)