Skip to content

Commit 1f9453a

Browse files
authored
Merge pull request #1466 from dgageot/mcp-agent3
Better MCP Toolkit example
2 parents 11f415a + 49ae0ad commit 1f9453a

File tree

2 files changed

+58
-2
lines changed

2 files changed

+58
-2
lines changed

cagent-schema.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,8 @@
592592
"fetch",
593593
"api",
594594
"a2a",
595-
"lsp"
595+
"lsp",
596+
"user_prompt"
596597
]
597598
},
598599
"instruction": {
@@ -755,7 +756,8 @@
755756
"think",
756757
"memory",
757758
"script",
758-
"fetch"
759+
"fetch",
760+
"user_prompt"
759761
]
760762
}
761763
}

examples/mcp-toolkit.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/usr/bin/env cagent run
2+
3+
agents:
4+
root:
5+
model: anthropic/claude-opus-4-5
6+
description: Discover and play with the MCP Toolkit.
7+
welcome_message: |
8+
🧰 Let's discover the MCP Toolkit!
9+
10+
I'm here to help you discover and configure **MCP Servers** from the Docker MCP Toolkit.
11+
12+
- 🌟 `List available MCP servers` — Browse the full catalog of MCP servers
13+
- 🔥 `Enable/Activate servers` — Configure and add MCP servers to your setup
14+
- 🎨 `Configure settings` — Set configuration options for your servers
15+
- 💼 `Manage profiles` — Create and activate different server profiles
16+
17+
🎯 Try asking me:
18+
19+
- *"What MCP servers are available?"*
20+
- *"Enable the GitHub server"*
21+
- *"Show me servers for working with databases"*
22+
- *"Create a new profile for my project"*
23+
instruction: |
24+
You have access to the MCP Gateway and its full MCP Servers catalog.
25+
26+
<instruction>
27+
+ When searching for an MCP server, use the `mcp-list` tool to list all available MCP Servers.
28+
+ Before adding an MCP Server, make sure it exists by using the `mcp-list` tool.
29+
+ Enabling, Activating, Configuring an MCP Server are synonyms and require calling the `mcp-add` tool.
30+
+ After enabling an MCP Server, give examples of what it can do, but be brief.
31+
+ When enabling an MCP Server that offers multiple options (e.g the atlassian server can enable jira and/or confluence), ask the user which options they want to enable (with the `user_prompt` tool).
32+
</instruction>
33+
34+
toolsets:
35+
- type: script
36+
shell:
37+
mcp-list:
38+
cmd: "docker mcp catalog show --format json | jq -r '.registry | to_entries[] | {key: .key, description: .value.description}'"
39+
description: "List all the available MCP Servers in the MCP Catalog"
40+
- type: user_prompt
41+
- type: mcp
42+
command: docker
43+
args: ["mcp", "gateway", "run"]
44+
tools: ["mcp-activate-profile", "mcp-add", "mcp-config-set", "mcp-create-profile", "mcp-remove"]
45+
46+
permissions:
47+
allow:
48+
- mcp-list
49+
- mcp-activate-profile
50+
- mcp-add
51+
- mcp-config-set
52+
- mcp-create-profile
53+
- mcp-remove
54+

0 commit comments

Comments
 (0)