Skip to content

Commit d6901ac

Browse files
bobmoroshevclaude
andcommitted
fix(deps): pin mcp to <2 to keep the FastMCP API
mcp 2.0.0 removed the mcp.server.fastmcp module that telegram_mcp.runtime imports, so any install resolving the dependency freely (docker build, pip install -r requirements.txt, pip install -e .) now fails at import with ModuleNotFoundError. Constrain the requirement to the 1.x line in both requirements.txt and pyproject.toml, and refresh uv.lock. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 57aaa76 commit d6901ac

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ requires-python = ">=3.10"
2525
dependencies = [
2626
"dotenv>=0.9.9",
2727
"httpx>=0.28.1",
28-
"mcp[cli]>=1.8.0",
28+
"mcp[cli]>=1.8.0,<2",
2929
"python-dotenv>=1.1.0",
3030
"python-json-logger>=3.3.0",
3131
"qrcode>=8.2",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dotenv>=0.9.9
22
httpx>=0.28.1
3-
mcp[cli]>=1.8.0
3+
mcp[cli]>=1.8.0,<2
44
python-dotenv>=1.1.0
55
python-json-logger>=3.3.0
66
qrcode>=8.2

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)