cai/examples/mcp/sse_example
@uayucar a723b9cd45 chore: sync repository with cai-public-staging snapshot
Replace entire working tree with contents of /Users/unai/cai-public-staging.
This is a wholesale overwrite reflecting the current public staging state.

Co-Authored-By: Claude (claude-opus-4-7) <noreply@anthropic.com>
2026-06-05 12:50:21 +02:00
..
README.md chore: sync repository with cai-public-staging snapshot 2026-06-05 12:50:21 +02:00
main.py MCP example for SSE (#354) 2025-03-26 12:56:35 -04:00
server.py MCP example for SSE (#354) 2025-03-26 12:56:35 -04:00

README.md

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 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).