Repository navigation
docs(deps): explain why mcp[cli] is capped below 2.0 (#34) - #44
Merged
OkiriGabriel merged 2 commits intoAug 17, 2026
Merged
Conversation
…nt#34) The <2.0.0 cap landed in PR open-devops-agent#38 but with no rationale in the file, so a future bump could silently re-remove it. mcp 2.0.0 removed mcp.server.fastmcp, which devops_mcp/registry.py and devops_mcp/server.py import; without the cap a fresh install resolves mcp 2.0.0 and tests/test_mcp.py::test_register_agent_tools_registers_all_tools fails at import (ModuleNotFoundError: No module named 'mcp.server.fastmcp'). Co-Authored-By: Kimi K3 <[email protected]>
Brings in upstream's .env.example entries for PAGERDUTY_URGENCY_*, fixing tests/test_env_example_coverage.py. Co-Authored-By: Kimi K3 <[email protected]>
Collaborator
|
Reviewed — CI is green across all checks. Pin explanation for mcp[cli] < 2.0 is clear. Merging to |
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.
Summary
Adds a rationale comment above the
mcp[cli]>=1.9.0,<2.0.0pin inrequirements.txt. The cap itself already landed in #38 — but nothing in the file says why it's there, and an unexplained upper bound is exactly what a future dependency bump silently removes (re-opening themcp.server.fastmcpremoval failure).Related Issues and Pull Requests
Relates to #34
Changes
requirements.txt: two comment lines above the pin naming the reason (mcp 2.0.0 removedmcp.server.fastmcp, whichdevops_mcp/registry.pyanddevops_mcp/server.pyimport) and the issue reference. No version change, no other file.Testing
Verified in fresh venvs on this box (CI never installs the dev requirements, so local proof is the only proof): with the pre-#38 unbounded pin,
pipresolves mcp 2.0.0 andtests/test_mcp.py::test_register_agent_tools_registers_all_toolsfails withModuleNotFoundError: No module named 'mcp.server.fastmcp'; with the capped pin it resolves mcp 1.29.0 and the test passes. Adversarially re-verified independently.Footer
Generated by Kimi K3 (brief, implementation, review, verification)