-
Notifications
You must be signed in to change notification settings - Fork 660
Client doesn't use bath path for SSE transport? #150
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
Comments
Thanks for the report - definitely feels like something off, though that endpoint hasn't changed from v1 so it might be unintentional. I'll have to investigate. |
Thanks for taking a look. It could be something in the configuration, I also found this: modelcontextprotocol/python-sdk#412 (comment) What's the relationship between the two projects with what looks like the same name i.e. "FastMCP"? |
It looks like this is in the server config -- when I run the first code block (with the Client), I do see it trying to use the base URL correctly (and failing, because I'm not running any server). I will take a look at patching that issue here. Version 1 of FastMCP was absorbed into the official SDK a few months ago; FastMCP v2 lives here. |
Actually if this is a client issue, I think maybe it will be fixed by modelcontextprotocol/python-sdk#386 since the client inherits that transport. Still looking at the server config |
After testing, I do think this is an issue in the low-level server and is addressed by modelcontextprotocol/python-sdk#386. I'm going to close it here as FastMCP is re-exposing the low-level server and therefore we don't have a place to fix it. As far as I can tell the FastMCP client is respecting the base path for its initial call, but the server itself is sending it to the wrong endpoint. If that's not the case, happy to reopen as a client bug. |
Uh oh!
There was an error while loading. Please reload this page.
I'm running this command against a function deployed to OpenFaaS. It supports SSE, and is running the sample / demo for SSE transport with uvicorn/Starlette.
The connection starts - however the client immediately tries to access the wrong base path for the messages endpoint:
When I add debugging to the server, and use Cursor as a client instead, it still fails and I get:
Clearly, there is nothing mounted at /messages, it needs to respect the base path of
"http://127.0.0.1:8080/function/mcp
I've tried mounting/routing at various paths and combinations. The
messages
route was a suggestion from Cursor, which I don't think is being used.Is this an oversight? Do you need anything else from me for a fix?
The text was updated successfully, but these errors were encountered: