Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

cap mcp to 2.0 (#10373)

Shahmir Varqhad866df0d984f
diff --git a/pyproject.toml b/pyproject.toml
index c16534f68f..24db01fc12 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -117,7 +117,7 @@ lsp = [
]
mcp = [
- "mcp>=1.0.0",
+ "mcp>=1.0.0,<2", # MCP 2.0 is a major rework, unsupported for now.
"pydantic>2",
]
@@ -224,7 +224,7 @@ test-optional = [
"flax>=0.10.0; python_version == '3.12'",
"torch>=2.4.0; python_version == '3.12'",
"scikit-bio>=0.6.3; python_version == '3.12'",
- "mcp>=1.0.0",
+ "mcp>=1.0.0,<2",
# zeromq
"pyzmq>=27.1.0",
# weave tracing integration
@@ -261,7 +261,7 @@ typecheck = [
"types-redis>=4.6.0.20241004",
"types-Markdown>=3.6.0.20240316",
"types-PyYAML>=6.0.12.20240808",
- "mcp>=1.0.0",
+ "mcp>=1.0.0,<2",
# zeromq
"pyzmq>=27.1.0",
"pyarrow-stubs",
diff --git a/tests/snapshots/optional-dependencies-mcp.txt b/tests/snapshots/optional-dependencies-mcp.txt
index c6e77c95d0..587c67536f 100644
--- a/tests/snapshots/optional-dependencies-mcp.txt
+++ b/tests/snapshots/optional-dependencies-mcp.txt
@@ -1,2 +1,2 @@
-mcp>=1.0.0
+mcp>=1.0.0,<2
pydantic>2
\ No newline at end of file