openai-agents-python/examples/mcp/sse_example
Carmen(Jia) Liu e827dfe75f
Fix: Correct the trace path in examples (#395)
### What changed?
The trace URL was using the wrong path format:
- Old: `/traces/{trace_id}`
- Fixed: `/traces/trace?trace_id={trace_id}`

<img width="781" alt="Screenshot 2025-03-30 at 5 54 11 pm"
src="https://github.com/user-attachments/assets/982fbb1d-7163-4438-b237-493e3100b5c7"
/>
2025-04-01 11:51:52 -04:00
..
main.py Fix: Correct the trace path in examples (#395) 2025-04-01 11:51:52 -04:00
README.md Update README.md (#405) 2025-04-01 11:50:40 -04:00
server.py MCP example for SSE (#354) 2025-03-26 12:56:35 -04:00

MCP SSE Example

This example uses a local SSE server in server.py.

Run the example via:

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

Details

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