Repository navigation
cea-techpulse-python: cap mcp below 2 so the Tech News MCP server starts - #185
Conversation
src/mcpserver/tech_news.py imports mcp.server.fastmcp, which mcp 2.x removed. src/requirements.txt asks for mcp with no bound, so a fresh environment gets mcp 2.3.0 and the stdio server the agent launches fails on import. Version history updated.
|
Hi, just checking whether this one is on your radar. It's a small fix (cap mcp below 2 so the Tech News MCP server starts) and the branch is still mergeable. Happy to change anything. |
garrytrinder
left a comment
There was a problem hiding this comment.
Thanks for the fix, this looks good. The pin matches the mcp.server.fastmcp import in tech_news.py. One small note: assets/sample.json updateDateTime should also be bumped to match the new version history row. We'll handle that in a follow-up so this isn't held up.
|
Merged! Thanks @vishalhabib99 for catching and fixing this, much appreciated. 🙏 We'll follow up separately to update the |
|
Thanks for merging this, @garrytrinder. If it would help, I can send the |
Summary
samples/cea-techpulse-python/src/requirements.txtlistsmcpwith no version bound. mcp 2.x removedmcp.server.fastmcp, whichsrc/mcpserver/tech_news.pyimports, so a fresh environment created fromsrc/requirements.txt(as the README describes) gets mcp 2.3.0. When the agent'sTechNewsMCPServicelaunches the server over stdio, it fails at import and the news tools never load:This caps it at
mcp<2and adds a 1.1 row to the sample's version history.Testing
Python 3.12,
uv pip compile src/requirements.txt: main resolvesmcp==2.3.0, this branch resolvesmcp==1.30.0, where both the server'sFastMCPimport and the client'sstdio_clientimport work. I didn't run the sample end to end (it needs a Microsoft 365 tenant).