Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Pin mcp SDK under 2.0 to avoid breaking changes (#1428)

Jeremiah Lowin18533951ad3a
diff --git a/pyproject.toml b/pyproject.toml
index fa72fbd05..daa643a81 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -7,7 +7,7 @@ dependencies = [
"python-dotenv>=1.1.0",
"exceptiongroup>=1.2.2",
"httpx>=0.28.1",
- "mcp>=1.12.4",
+ "mcp>=1.12.4,<2.0.0",
"openapi-pydantic>=0.5.1",
"rich>=13.9.4",
"cyclopts>=3.0.0",
diff --git a/uv.lock b/uv.lock
index 6877fe25a..7f6a355e0 100644
--- a/uv.lock
+++ b/uv.lock
@@ -574,7 +574,7 @@ requires-dist = [
{ name = "cyclopts", specifier = ">=3.0.0" },
{ name = "exceptiongroup", specifier = ">=1.2.2" },
{ name = "httpx", specifier = ">=0.28.1" },
- { name = "mcp", specifier = ">=1.12.4" },
+ { name = "mcp", specifier = ">=1.12.4,<2.0.0" },
{ name = "msgspec", specifier = ">=0.19.0" },
{ name = "openapi-core", specifier = ">=0.19.5" },
{ name = "openapi-pydantic", specifier = ">=0.5.1" },