Skip to content

Pin MCP dependency below version 2 - #2

Open
milu777 wants to merge 1 commit into
mendixlabs:mainfrom
milu777:fix/mcp-v2-dependency
Open

Pin MCP dependency below version 2#2
milu777 wants to merge 1 commit into
mendixlabs:mainfrom
milu777:fix/mcp-v2-dependency

Conversation

@milu777

@milu777 milu777 commented Jul 30, 2026

Copy link
Copy Markdown

Summary

Constrain the MCP Python SDK dependency to version 1.x.

MCP 2.0 removed mcp.server.fastmcp, causing the server to fail at startup with:

ModuleNotFoundError: No module named 'mcp.server.fastmcp'

Change

Updated the Readme doc from:

"args": ["mendix-doc-mcp"]

to:
"args": [ "--with", "mcp<2", "mendix-doc-mcp" ]

Updated the dependency from:

mcp[cli]>=1.27

to:

mcp[cli]>=1.27,<2

Verification

  • Confirmed the server starts with MCP 1.29.0
  • Confirmed MCP initialization and tool listing work
  • All 48 tests pass

@milu777

milu777 commented Jul 30, 2026

Copy link
Copy Markdown
Author

Constrain the project dependency to mcp[cli]>=1.27,<2 because mcp2.0.0 package no longer contains fastmcp.

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