Skip to content

fix(mcp): pin mcp<2 — an unbounded floor let CI install a breaking major - #2

Merged
bhyi4 merged 1 commit into
mainfrom
fix/pin-mcp-below-2
Aug 4, 2026
Merged

fix(mcp): pin mcp<2 — an unbounded floor let CI install a breaking major#2
bhyi4 merged 1 commit into
mainfrom
fix/pin-mcp-below-2

Conversation

@bhyi4

@bhyi4 bhyi4 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

What broke

mcp/pyproject.toml declared mcp>=1.0.0 with no upper bound, so CI installed mcp 2.0.0
as soon as it shipped. The server imports mcp.server.fastmcp, which 2.x no longer exposes at
that path:

File ".../yeoul_mcp/server.py", line 18, in <module>
    from mcp.server.fastmcp import FastMCP
ModuleNotFoundError: No module named 'mcp.server.fastmcp'

Nothing in this repo changed — the dependency did. main has not re-run CI since 2026-07-22,
so the breakage sat there unseen and only surfaced when an unrelated PR triggered the workflow.

The fix

Pin to >=1.0.0,<2 to restore a working install. Verified the specifier admits 1.0.0 / 1.27.2 /
1.29.0 and excludes 2.0.0.

Supporting 2.x is deliberately not in this PR: it needs the new import path, so the bound
should be lifted together with that change rather than before it. The comment in the file says so,
to keep the next person from widening it on reflex.

Scope

One file, one dependency line (plus the explanatory comment). No behavior change.

🤖 Generated with Claude Code

`dependencies = ["mcp>=1.0.0"]` had no upper bound, so CI installed mcp 2.0.0 as soon
as it shipped. The server imports `mcp.server.fastmcp`, which 2.x no longer exposes at
that path, and the `mcp` job started failing with ModuleNotFoundError.

Nothing in this repo changed — the dependency did. main has not re-run CI since
2026-07-22, so the rot only surfaced when a PR triggered the workflow.

Pin to `>=1.0.0,<2` to restore a working install. Supporting 2.x is a separate change:
it needs the new import path, so the bound should be lifted together with it, not before.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@bhyi4
bhyi4 merged commit 9e9ebbb into main Aug 4, 2026
3 checks passed
@bhyi4
bhyi4 deleted the fix/pin-mcp-below-2 branch August 4, 2026 14:41
bhyi4 added a commit that referenced this pull request Aug 4, 2026
… never miss silently (#1)

머지(대장님 지시: 순서대로 머지). #2(mcp<2 핀) 머지 후 브랜치 업데이트로 CI 전부 그린(mcp·test macos/ubuntu). fix(index-append): 번호매김 리스트에서 결론 유실 방지 + 조용한 누락 방지.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant