Skip to content

Commit bf48373

Browse files
committed
docs: add MCP configuration section to README for experimental ACP transport
1 parent 8183c5f commit bf48373

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,39 @@ agentapi server --allowed-origins 'https://example.com,http://localhost:3000' --
134134
AGENTAPI_ALLOWED_ORIGINS='https://example.com http://localhost:3000' agentapi server -- claude
135135
```
136136

137+
#### MCP configuration (experimental)
138+
139+
When using the experimental ACP transport (`--experimental-acp`), you can provide MCP servers to the agent via a JSON configuration file using the `--mcp-file` flag.
140+
141+
The file uses the same format as Claude's MCP configuration:
142+
143+
```json
144+
{
145+
"mcpServers": {
146+
"filesystem": {
147+
"command": "npx",
148+
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"],
149+
"env": {
150+
"DEBUG": "true"
151+
}
152+
},
153+
"api-server": {
154+
"type": "http",
155+
"url": "https://api.example.com/mcp",
156+
"headers": {
157+
"Authorization": "Bearer token"
158+
}
159+
}
160+
}
161+
}
162+
```
163+
164+
Example usage:
165+
166+
```bash
167+
agentapi server --experimental-acp --mcp-file ./mcp.json -- claude
168+
```
169+
137170
### `agentapi attach`
138171

139172
Attach to a running agent's terminal session.

0 commit comments

Comments
 (0)