Skip to content

cea-techpulse-python: cap mcp below 2 so the Tech News MCP server starts - #185

Merged
garrytrinder merged 1 commit into
pnp:mainfrom
vishalhabib99:fix/techpulse-mcp-below-2
Nov 3, 2026
Merged

garrytrinder merged 1 commit into
pnp:mainfrom
vishalhabib99:fix/techpulse-mcp-below-2

Conversation

@vishalhabib99

Copy link
Copy Markdown
Contributor

Summary

samples/cea-techpulse-python/src/requirements.txt lists mcp with no version bound. mcp 2.x removed mcp.server.fastmcp, which src/mcpserver/tech_news.py imports, so a fresh environment created from src/requirements.txt (as the README describes) gets mcp 2.3.0. When the agent's TechNewsMCPService launches the server over stdio, it fails at import and the news tools never load:

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

This caps it at mcp<2 and adds a 1.1 row to the sample's version history.

Testing

Python 3.12, uv pip compile src/requirements.txt: main resolves mcp==2.3.0, this branch resolves mcp==1.30.0, where both the server's FastMCP import and the client's stdio_client import work. I didn't run the sample end to end (it needs a Microsoft 365 tenant).

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.
@vishalhabib99

Copy link
Copy Markdown
Contributor Author

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 garrytrinder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@garrytrinder
garrytrinder merged commit c901018 into pnp:main Nov 3, 2026
@garrytrinder

Copy link
Copy Markdown
Member

Merged! Thanks @vishalhabib99 for catching and fixing this, much appreciated. 🙏 We'll follow up separately to update the updateDateTime in sample.json.

@vishalhabib99

Copy link
Copy Markdown
Contributor Author

Thanks for merging this, @garrytrinder. If it would help, I can send the sample.json updateDateTime follow-up as a small PR. Otherwise I'll leave it to you.

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.

2 participants