mirror of https://github.com/aliasrobotics/cai.git
### Summary: This enables users to **use** MCP inside the SDK. 1. You add a list of MCP servers to `Agent`, via `mcp_server=[...]` 2. When an agent runs, we look up its MCP tools and add them to the list of tools. 3. When a tool call occurs, we call the relevant MCP server. Notes: 1. There's some refactoring to make sure we send the full list of tools to the Runner/Model etc. 2. Right now, you could have a locally defined tool that conflicts with an MCP defined tool. I didn't add errors for that, will do in a followup. ### Test Plan: See unit tests. Also has an end to end example next PR. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| fake_models.py | ||
| helpers.py | ||
| test_input.py | ||
| test_openai_stt.py | ||
| test_openai_tts.py | ||
| test_pipeline.py | ||
| test_workflow.py | ||