Skip to content

docs(deps): explain why mcp[cli] is capped below 2.0 (#34) - #44

Merged
OkiriGabriel merged 2 commits into
open-devops-agent:mainfrom
Nitjsefnie-OSC:fix/mcp-pin-34
Aug 17, 2026
Merged

OkiriGabriel merged 2 commits into
open-devops-agent:mainfrom
Nitjsefnie-OSC:fix/mcp-pin-34

Conversation

@Nitjsefnie

Copy link
Copy Markdown
Contributor

Summary
Adds a rationale comment above the mcp[cli]>=1.9.0,<2.0.0 pin in requirements.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 the mcp.server.fastmcp removal 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 removed mcp.server.fastmcp, which devops_mcp/registry.py and devops_mcp/server.py import) 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, pip resolves mcp 2.0.0 and tests/test_mcp.py::test_register_agent_tools_registers_all_tools fails with ModuleNotFoundError: 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)

…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]>
@OkiriGabriel

Copy link
Copy Markdown
Collaborator

Reviewed — CI is green across all checks. Pin explanation for mcp[cli] < 2.0 is clear. Merging to main.

@OkiriGabriel
OkiriGabriel merged commit dfb0a34 into open-devops-agent:main Aug 17, 2026
10 checks passed
@Nitjsefnie
Nitjsefnie deleted the fix/mcp-pin-34 branch August 19, 2026 14:50
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.

2 participants