Skip to content

MCP

CAI supports the Model Context Protocol (MCP) for integrating external tools and services with AI agents. MCP is supported via two transport mechanisms:

  1. SSE (Server-Sent Events) - For web-based servers that push updates over HTTP connections:

    CAI>/mcp load http://localhost:9876/sse burp
    

  2. STDIO (Standard Input/Output) - For local inter-process communication:

    CAI>/mcp load stdio myserver python mcp_server.py
    

Once connected, you can add the MCP tools to any agent:

CAI>/mcp add burp redteam_agent
Adding tools from MCP server 'burp' to agent 'Red Team Agent'...
                                 Adding tools to Red Team Agent
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Tool                              โ”ƒ Status โ”ƒ Details                                         โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ send_http_request                 โ”‚ Added  โ”‚ Available as: send_http_request                 โ”‚
โ”‚ create_repeater_tab               โ”‚ Added  โ”‚ Available as: create_repeater_tab               โ”‚
โ”‚ send_to_intruder                  โ”‚ Added  โ”‚ Available as: send_to_intruder                  โ”‚
โ”‚ url_encode                        โ”‚ Added  โ”‚ Available as: url_encode                        โ”‚
โ”‚ url_decode                        โ”‚ Added  โ”‚ Available as: url_decode                        โ”‚
โ”‚ base64encode                      โ”‚ Added  โ”‚ Available as: base64encode                      โ”‚
โ”‚ base64decode                      โ”‚ Added  โ”‚ Available as: base64decode                      โ”‚
โ”‚ generate_random_string            โ”‚ Added  โ”‚ Available as: generate_random_string            โ”‚
โ”‚ output_project_options            โ”‚ Added  โ”‚ Available as: output_project_options            โ”‚
โ”‚ output_user_options               โ”‚ Added  โ”‚ Available as: output_user_options               โ”‚
โ”‚ set_project_options               โ”‚ Added  โ”‚ Available as: set_project_options               โ”‚
โ”‚ set_user_options                  โ”‚ Added  โ”‚ Available as: set_user_options                  โ”‚
โ”‚ get_proxy_http_history            โ”‚ Added  โ”‚ Available as: get_proxy_http_history            โ”‚
โ”‚ get_proxy_http_history_regex      โ”‚ Added  โ”‚ Available as: get_proxy_http_history_regex      โ”‚
โ”‚ get_proxy_websocket_history       โ”‚ Added  โ”‚ Available as: get_proxy_websocket_history       โ”‚
โ”‚ get_proxy_websocket_history_regex โ”‚ Added  โ”‚ Available as: get_proxy_websocket_history_regex โ”‚
โ”‚ set_task_execution_engine_state   โ”‚ Added  โ”‚ Available as: set_task_execution_engine_state   โ”‚
โ”‚ set_proxy_intercept_state         โ”‚ Added  โ”‚ Available as: set_proxy_intercept_state         โ”‚
โ”‚ get_active_editor_contents        โ”‚ Added  โ”‚ Available as: get_active_editor_contents        โ”‚
โ”‚ set_active_editor_contents        โ”‚ Added  โ”‚ Available as: set_active_editor_contents        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Added 20 tools from server 'burp' to agent 'Red Team Agent'.
CAI>/agent 13
CAI>Create a repeater tab

You can list all active MCP connections and their transport types:

CAI>/mcp list

https://github.com/user-attachments/assets/386a1fd3-3469-4f84-9396-2a5236febe1f

Example: Controlling Chrome with CAI

1) Install node, following the instructions on the official site

2) Install Chrome (Chromium is not compatible with this functionality)

3) Run the following commands:

/mcp load stdio devtools npx chrome-devtools-mcp@latest
/mcp add devtools redteam_agent
/agent redteam_agent

Once this is done, you will have full control of Chrome using the red team agent.