Skip to content

fix: cap mcp below 2 in the call-for-papers MCP example - #145

Closed
vishalhabib99 wants to merge 1 commit into
IBM:mainfrom
vishalhabib99:fix/cfp-example-mcp-below-2
Closed

vishalhabib99 wants to merge 1 commit into
IBM:mainfrom
vishalhabib99:fix/cfp-example-mcp-below-2

Conversation

@vishalhabib99

Copy link
Copy Markdown

Summary

The call-for-papers MCP example's requirements.txt lists mcp with no version, so pip install -r requirements.txt (the README step, and the example's Dockerfile) now installs mcp 2.3.0. server.py imports from mcp.server.fastmcp import FastMCP, which mcp 2.x removed, so the server fails on import:

ModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer ...

This is the same break the root pyproject.toml capped in 0.2.1 (#118); this example has its own requirements file, so the cap didn't reach it.

Changes

  • examples/call-for-papers-mcp/requirements.txt: mcp -> mcp<2.
  • CHANGELOG.md: a Fixed entry under [Unreleased].

Checks

uv pip compile of the example's requirements.txt (Python 3.11):

resolves from mcp.server.fastmcp import FastMCP
main mcp==2.3.0, langchain-mcp-adapters==0.3.1 ModuleNotFoundError
this branch mcp==1.30.0, langchain-mcp-adapters==0.3.2 works
  • make ci passes: not run. The change is limited to an example's requirements file and the changelog, outside src/.
  • CHANGELOG.md updated under ## [Unreleased]
  • PR title uses a conventional prefix
  • Commits are signed off for the DCO

Signed-off-by: Vishal Habib <vishalhabib99@gmail.com>
@vishalhabib99

Copy link
Copy Markdown
Author

Closing this since #147 moved the example to mcp 2.x, which fixes the start-up problem at the source. Thanks for the migration!

@dhl123

dhl123 commented Nov 4, 2026

Copy link
Copy Markdown
Member

Thanks for digging into this! We have migrated our agent examples to MCP 2.x, which avoids the version downgrade (#146). Closing this PR, the report was helpful in getting us there. Thank you! We appreciate!

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.

chore: check dependency conflicts and update mcp version to 2.x.

2 participants