@@ -93,8 +93,10 @@ Example configuration:
9393{
9494 "mcpServers": {
9595 "myagent": {
96- "command": "/usr/local/bin/cagent ",
96+ "command": "/usr/local/bin/docker ",
9797 "args": [
98+ "agent",
99+ "serve",
98100 "mcp",
99101 "/path/to/agent.yml",
100102 "--working-dir",
@@ -111,7 +113,7 @@ Example configuration:
111113
112114Configuration breakdown :
113115
114- - `command` : Full path to your `cagent ` binary (use `which cagent ` to find it)
116+ - `command` : Full path to your `docker ` binary (use `which docker ` to find it), or path to docker-agent if not using the docker CLI plugin
115117- `args` : MCP command arguments:
116118 - `mcp` : The subcommand to run cagent in MCP mode
117119 - `dockereng/myagent` : Your agent configuration (local file path or OCI
@@ -142,7 +144,7 @@ Command breakdown:
142144- `myagent` : Name for this MCP server in Claude Code
143145- `--env` : Pass environment variables (repeat for each variable)
144146- `--` : Separates Claude Code options from the MCP server command
145- - `docker agent mcp /path/to/agent.yml` : The cagent MCP command with the path to your
147+ - `docker agent serve mcp /path/to/agent.yml` : The cagent MCP command with the path to your
146148 agent configuration
147149- `--working-dir $(pwd)` : Set the working directory for agent execution
148150
@@ -153,7 +155,7 @@ sessions.
153155
154156For other MCP-compatible clients, you need to :
155157
156- 1. Start cagent with `docker agent mcp /path/to/agent.yml --working-dir /project/path`
158+ 1. Start cagent with `docker agent serve mcp /path/to/agent.yml --working-dir /project/path`
1571592. Configure the client to communicate with Docker Agent over stdio
1581603. Pass required environment variables (API keys, etc.)
159161
@@ -166,11 +168,11 @@ reference:
166168
167169` ` ` console
168170# Local file path
169- $ docker agent mcp ./agent.yml
171+ $ docker agent serve mcp ./agent.yml
170172
171173# OCI registry reference
172- $ docker agent mcp agentcatalog/pirate
173- $ docker agent mcp dockereng/myagent:v1.0.0
174+ $ docker agent serve mcp agentcatalog/pirate
175+ $ docker agent serve mcp dockereng/myagent:v1.0.0
174176` ` `
175177
176178Use the same syntax in MCP client configurations :
@@ -179,8 +181,8 @@ Use the same syntax in MCP client configurations:
179181{
180182 "mcpServers": {
181183 "myagent": {
182- "command": "/usr/local/bin/cagent ",
183- "args": ["mcp", "agentcatalog/pirate"]
184+ "command": "/usr/local/bin/docker ",
185+ "args": ["agent", "serve", " mcp", "agentcatalog/pirate"]
184186 }
185187 }
186188}
@@ -299,7 +301,7 @@ around.
299301- Explore the [toolsets reference](../reference/toolsets.md) to learn what tools
300302 agents can use
301303- Add [RAG for codebase search](../rag.md) to your agent
302- - Check the [CLI reference](../reference/cli.md) for all `docker agent mcp` options
304+ - Check the [CLI reference](../reference/cli.md) for all `docker agent serve mcp` options
303305- Browse [example
304306 configurations](https://github.com/docker/cagent/tree/main/examples) for
305307 different agent types
0 commit comments