Closed
Labels
questionFurther information is requested
Description
Question
Hello, has anyone a functioning py example running /mcp via streamable? No matter what I do, the py does not work. Tried similar approach with ts, and there it works well. I'd rather use py so asking. Even if I create as simple server with fastmcp as possible, it does not work. Thank you in an advance 🙏🏼
Additional Context
No response
Metadata
Metadata
Assignees
Labels
questionFurther information is requested
Activity
mjunaidca commentedon Jun 11, 2025
Here's a one using streamable http stateless transport in python with a simple httpx client:
https://github.com/panaversity/learn-agentic-ai/tree/main/03_ai_protocols/02_model_context_protocol/01_server_development/01_hello_mcp_server
tampiss commentedon Jun 12, 2025
Thank you, but unfortunately, it is the same as with other approaches. It does not work with the clients I use due to the redirect issue, which still occurs in the Py SDK.
INFO: 10.78.80.197:53202 - "GET /mcp HTTP/1.1" 307 Temporary Redirect
INFO: 10.78.80.197:53202 - "GET /mcp/ HTTP/1.1" 200 OK
xuzexin-hz commentedon Jun 20, 2025
Yes, whether printing mcp logs or checking other tools calling mcp, the /mcp/ address is ok. Although I don't know why the underlying layer does this
pamelafox commentedon Jul 9, 2025
This one works for me:
felixweinberger commentedon Oct 7, 2025
See above example.