fix(deps): cap mcp<2 so serving works from binary/uvx/pip + v0.9.5 - #258
Merged
Conversation
….9.5 Root cause of the crash uncovered while smoke-testing the frozen binary's serve: mcp 2.0.0 removed the low-level `Server.list_tools`/`call_tool` decorators our serve path uses (gecko.mcp_server / gecko.http_server). Installs that DON'T read uv.lock — the PyInstaller binary (npx) and `uvx`/`pip` — resolved `mcp[cli]>=1.28.1` to 2.0.0, so EVERY bundled surface (jupiter-mcp/txline-mcp/ore-mcp/orquestra) crashed on serve with `'Server' object has no attribute 'list_tools'`. Tests + the hosted server + dev all used 1.x via uv.lock, so it was invisible until the binary serve was tested. Fix: cap `mcp[cli]>=1.28.1,<2` in the serve extra. Verified with a minimal PyInstaller build — the frozen binary regains `list_tools` and serves. mypy clean (128 files), serve/stdio/http suites green, demo smoke ok, mcp pinned 1.28.1. All markers bumped to 0.9.5 in lockstep + CHANGELOG. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause of the frozen-binary serve crash: mcp 2.0.0 removed the low-level
Server.list_tools/call_tooldecorators the serve path uses. Unpinned installs (PyInstaller binary +uvx/pip, which don't readuv.lock) resolved 2.0.0 → every bundled surface crashed on serve ('Server' object has no attribute 'list_tools'), incl. the npx orquestra path. Tests/hosted/dev used 1.x viauv.lock, so it was invisible until the binary serve was smoke-tested.Fix: cap
mcp[cli]>=1.28.1,<2. Verified with a minimal PyInstaller build — the frozen binary regainslist_toolsand serves. mypy clean (128 files), serve/stdio/http suites green. All markers → 0.9.5.Tag
v0.9.5publishes; then I re-smoke the binary'sorquestra --stdioderive.🤖 Generated with Claude Code