cai/examples/mcp/sse_example/README.md

14 lines
371 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# MCP SSE Example
This example uses a local SSE server in [server.py](server.py).
Run the example via:
```
uv run python examples/mcp/sse_example/main.py
```
## Details
The example uses `MCPServerSse` from `agents.mcp` (see `main.py`; same MCP server types as in CAIs `cai.sdk.agents.mcp`). The SSE URL must match your server (often `http://localhost:8000/sse`).