Skip to content

Commit 890ebb2

Browse files
committed
docs(a2a): add MCP server config examples to docs
Add JSON configuration samples for MCP and A2A servers to improve setup clarity in protocol and debugger documentation.
1 parent 54b5503 commit 890ebb2

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

docs/a2a/a2a-debugger.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ create a file end with `.mcp.json` in your project root directory, and add the f
1212

1313
```json
1414
{
15+
"mcpServers": {
16+
"weather": {
17+
"command": "java",
18+
"args": [
19+
"-jar",
20+
"/Volumes/source/ai/autodev-mcp-test/java-mcp/target/mcp-0.0.1-SNAPSHOT.jar"
21+
]
22+
}
23+
},
1524
"a2aServers": {
1625
"remote-example": {
1726
"url": "http://localhost:9999"

docs/a2a/index.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,29 @@ permalink: /a2a
2020
- A2A Agent 即 Tool。即你可以将支持 A2A 的 Agent,作为类似于 MCP 中的 Tool 来使用。
2121
- A2A Debugger。即你可以通过 A2A Debugger 来调试 A2A Agent。
2222

23-
2423
### A2A Agent as Tool
2524

25+
Enable the MCP server in AutoDev settings, and Config with A2A
26+
27+
```JSON
28+
{
29+
"mcpServers": {
30+
"weather": {
31+
"command": "java",
32+
"args": [
33+
"-jar",
34+
"/Volumes/source/ai/autodev-mcp-test/java-mcp/target/mcp-0.0.1-SNAPSHOT.jar"
35+
]
36+
}
37+
},
38+
"a2aServers": {
39+
"remote-example": {
40+
"url": "http://localhost:9999"
41+
}
42+
}
43+
}
44+
```
45+
2646
如下是示例的 DevIns Command:
2747

2848
```devin

0 commit comments

Comments
 (0)