Skip to content

Secure, Fast, and Extensible Sandbox runtime for AI agents.

fix(sdks): raise undici and mcp lower bounds in published manifests

高然7e4f4f2ab920
diff --git a/sdks/mcp/sandbox/python/pyproject.toml b/sdks/mcp/sandbox/python/pyproject.toml
index 2c92433cf..5a134690e 100644
--- a/sdks/mcp/sandbox/python/pyproject.toml
+++ b/sdks/mcp/sandbox/python/pyproject.toml
@@ -42,7 +42,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
- "mcp[cli]>=2,<3",
+ "mcp[cli]>=2.3.0,<3",
"opensandbox>=1.1.1,<2.0.0",
"starlette>=1.3.1",
"python-multipart>=0.0.31",
diff --git a/sdks/mcp/sandbox/python/tests/test_mcp2_migration.py b/sdks/mcp/sandbox/python/tests/test_mcp2_migration.py
index dc4aa7ba7..903805028 100644
--- a/sdks/mcp/sandbox/python/tests/test_mcp2_migration.py
+++ b/sdks/mcp/sandbox/python/tests/test_mcp2_migration.py
@@ -15,7 +15,7 @@
"""Regression tests for the MCP 2.x migration (follow-up to the 1.x pin in #1725).
The server now targets the mcp 2.x API (`MCPServer` / 2-param `Context`) and the
-dependency constraint is `mcp[cli]>=2,<3`. These tests pin both halves:
+dependency constraint is `mcp[cli]>=2.3.0,<3`. These tests pin both halves:
the distribution metadata keeps the constraint, and the public entry points
only exist on the 2.x API surface.
"""
@@ -58,7 +58,7 @@ class TestMcp2Constraint:
mcp_entries = [r for r in requires if r.startswith("mcp[")]
assert mcp_entries, f"no mcp requirement found in: {requires}"
entry = mcp_entries[0]
- assert ">=2" in entry, entry
+ assert ">=2.3.0" in entry, entry
assert "<3" in entry, entry
def test_pyproject_declares_mcp_2(self) -> None:
@@ -68,7 +68,7 @@ class TestMcp2Constraint:
data = tomllib.loads(pyproject.read_text())
deps = data["project"]["dependencies"]
mcp_deps = [d for d in deps if d.startswith("mcp[")]
- assert mcp_deps == ["mcp[cli]>=2,<3"]
+ assert mcp_deps == ["mcp[cli]>=2.3.0,<3"]
class TestMcp2Imports:
diff --git a/sdks/mcp/sandbox/python/uv.lock b/sdks/mcp/sandbox/python/uv.lock
index 8cda25dce..12a8eca1b 100644
--- a/sdks/mcp/sandbox/python/uv.lock
+++ b/sdks/mcp/sandbox/python/uv.lock
@@ -640,7 +640,7 @@ dev = [
[package.metadata]
requires-dist = [
{ name = "cryptography", specifier = ">=50.0.0" },
- { name = "mcp", extras = ["cli"], specifier = ">=2,<3" },
+ { name = "mcp", extras = ["cli"], specifier = ">=2.3.0,<3" },
{ name = "opensandbox", editable = "../../../sandbox/python" },
{ name = "pydantic-settings", specifier = ">=2.14.2" },
{ name = "pyjwt", specifier = ">=2.14.0" },
diff --git a/sdks/sandbox/javascript/package.json b/sdks/sandbox/javascript/package.json
index 699301799..b3be1588e 100644
--- a/sdks/sandbox/javascript/package.json
+++ b/sdks/sandbox/javascript/package.json
@@ -55,7 +55,7 @@
"dependencies": {
"@opentelemetry/api": "^1.9.0",
"openapi-fetch": "^0.14.1",
- "undici": "^7.29.1"
+ "undici": "^7.30.1"
},
"devDependencies": {
"@eslint/js": "^9.39.4",