mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-08-05 02:45:28 +00:00
fix(mcp): keep built-in servers on SDK v1 (#5820)
This commit is contained in:
parent
d96c7af3df
commit
01790c2f08
2 changed files with 19 additions and 1 deletions
|
|
@ -38,7 +38,10 @@ python-dateutil
|
||||||
caldav
|
caldav
|
||||||
cryptography
|
cryptography
|
||||||
bcrypt
|
bcrypt
|
||||||
mcp
|
# Built-in servers use the v1 low-level Server decorator API. MCP SDK v2 is a
|
||||||
|
# breaking rewrite, so keep fresh installs on the maintained v1 line until the
|
||||||
|
# servers are migrated together.
|
||||||
|
mcp<2
|
||||||
pyotp
|
pyotp
|
||||||
qrcode[pil]
|
qrcode[pil]
|
||||||
croniter
|
croniter
|
||||||
|
|
|
||||||
15
tests/test_mcp_dependency_compatibility.py
Normal file
15
tests/test_mcp_dependency_compatibility.py
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
"""Regression coverage for the built-in MCP servers' SDK compatibility line."""
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
REQUIREMENTS = Path(__file__).resolve().parents[1] / "requirements.txt"
|
||||||
|
|
||||||
|
|
||||||
|
def test_mcp_requirement_excludes_breaking_v2_sdk():
|
||||||
|
requirements = [
|
||||||
|
line.split("#", 1)[0].strip().replace(" ", "")
|
||||||
|
for line in REQUIREMENTS.read_text(encoding="utf-8").splitlines()
|
||||||
|
]
|
||||||
|
|
||||||
|
assert "mcp<2" in requirements
|
||||||
Loading…
Add table
Reference in a new issue