openai-agents-python/examples/mcp/streamablehttp_example
Akshit97 1847008e0f
feat: Streamable HTTP support (#643)
Co-authored-by: aagarwal25 <akshit_agarwal@intuit.com>
2025-05-14 14:45:14 -04:00
..
main.py feat: Streamable HTTP support (#643) 2025-05-14 14:45:14 -04:00
README.md feat: Streamable HTTP support (#643) 2025-05-14 14:45:14 -04:00
server.py feat: Streamable HTTP support (#643) 2025-05-14 14:45:14 -04:00

MCP Streamable HTTP Example

This example uses a local Streamable HTTP server in server.py.

Run the example via:

uv run python examples/mcp/streamablehttp_example/main.py

Details

The example uses the MCPServerStreamableHttp class from agents.mcp. The server runs in a sub-process at https://localhost:8000/mcp.