Skip to content

fix(deps): declare undeclared mcp dependency - #3

Draft
JRM-FusionAL wants to merge 1 commit into
mainfrom
claude/nice-noether-27088f
Draft

fix(deps): declare undeclared mcp dependency#3
JRM-FusionAL wants to merge 1 commit into
mainfrom
claude/nice-noether-27088f

Conversation

@JRM-FusionAL

Copy link
Copy Markdown
Owner

Summary

Fix found by a scheduled dependency audit (2026-08-12) covering all JRM-FusionAL repos.

server.py does from mcp.server.fastmcp import FastMCP, but mcp (the official MCP Python SDK) was never declared in pyproject.toml — only fastmcp>=3.2.0 is, and it happens to pull mcp<2.0 in transitively today. mcp shipped a breaking v2.0.0 two weeks before this audit (2026-07-28) that removes mcp.server.fastmcp entirely with no compatibility shim. If anything in the dependency graph ever resolves mcp>=2.0 (a future fastmcp release that lifts its <2.0 ceiling, a different transitive path, a manual pip install -U mcp), this import hard-fails.

Added an explicit mcp>=1.23.0,<2.0 dependency so the constraint — and the reason for it — is visible in pyproject.toml instead of being an accident of fastmcp's own pin. 1.23.0 is also the CVE-2025-66416 (DNS-rebinding) fix version, so the floor documents that protection explicitly too.

Test plan

  • pip install -e . resolves cleanly and mcp shows up as a direct (not just transitive) dependency
  • github-mcp-safe still starts and serves as expected

🤖 Generated with Claude Code


Generated by Claude Code

server.py does `from mcp.server.fastmcp import FastMCP`, but `mcp` (the
official MCP Python SDK) was never declared in pyproject.toml — it only
worked because fastmcp pulls it in transitively with a `<2.0` ceiling.
mcp shipped a breaking v2.0.0 (2026-07-28) that removes
`mcp.server.fastmcp` entirely with no compatibility shim; if anything
ever resolves mcp>=2.0 in this environment, the import hard-fails.
Declaring the constraint explicitly also makes clear why the code is
protected from CVE-2025-66416 (DNS-rebinding, fixed <1.23.0) instead of
that being incidental.

Found via scheduled dependency audit (2026-08-12).
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9d8f29d4-03ad-4b8d-aafb-c00595b09179

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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