Skip to content

fix(mcp): pin mcp<2.0.0 and report fastmcp removal accurately - #355

Open
erensh27 wants to merge 1 commit into
NVIDIA:mainfrom
erensh27:fix/pin-mcp-under-2
Open

fix(mcp): pin mcp<2.0.0 and report fastmcp removal accurately#355
erensh27 wants to merge 1 commit into
NVIDIA:mainfrom
erensh27:fix/pin-mcp-under-2

Conversation

@erensh27

@erensh27 erensh27 commented Aug 9, 2026

Copy link
Copy Markdown

Fixes #333.

Two fixes:

  1. pyproject.toml — cap the mcp extra at mcp<2.0.0: mcp 2.0.0 (released 2026-07-28) removed mcp.server.fastmcp, so fresh skillspector[mcp] installs could resolve mcp 2.x and then fail at server init.
  2. src/skillspector/mcp_server.py — on import failure, first check whether mcp itself is importable. If it is, the problem is the missing mcp.server.fastmcp submodule (mcp>=2.0.0), so the error now says so and points at pip install 'skillspector[mcp]' for a compatible pin, instead of the misleading "optional 'mcp' dependency is missing" message.

Reproduction from the issue now yields a truthful error under mcp 2.x, and pip install 'skillspector[mcp]' no longer resolves to mcp 2.x at all.

mcp 2.0.0 (2026-07-28) removed mcp.server.fastmcp, so a fresh
'skillspector[mcp]' install could resolve mcp 2.x and then fail at
server start with the misleading 'requires the optional mcp
dependency' error even though mcp is installed.

- pyproject.toml: cap the extra at mcp<2.0.0.
- mcp_server.py: on import failure, check whether mcp itself is
  importable; if it is, report that mcp.server.fastmcp was removed
  (mcp>=2.0.0) instead of claiming the extra is missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant