Skip to content

FastAPI mount FastMCP didn't use /mcp path #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MarshallEriksen-shaomingyang opened this issue Apr 17, 2025 · 1 comment · Fixed by #390
Closed

FastAPI mount FastMCP didn't use /mcp path #189

MarshallEriksen-shaomingyang opened this issue Apr 17, 2025 · 1 comment · Fixed by #390

Comments

@MarshallEriksen-shaomingyang

I use FastAPI.mount(path="/mcp", app=FastMCP.sse_app()) and It works but client request wrong path

Image

Image

@jlowin
Copy link
Owner

jlowin commented Apr 20, 2025

I believe this is a known issue with the SSE app, see e.g. modelcontextprotocol/python-sdk#386 and modelcontextprotocol/python-sdk#540 which both attempt to fix it. It will need to be fixed in the low-level SDK if that's the case.

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 a pull request may close this issue.

2 participants