-
Notifications
You must be signed in to change notification settings - Fork 348
Expand file tree
/
Copy pathmcp-definitions.yaml
More file actions
78 lines (71 loc) · 1.9 KB
/
mcp-definitions.yaml
File metadata and controls
78 lines (71 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env docker agent run
# yaml-language-server: $schema=../agent-schema.json
# This example demonstrates how to use the top-level `mcps` section to define
# MCP servers once and reference them across multiple agents, avoiding duplication.
models:
model:
provider: anthropic
model: claude-sonnet-4-0
max_tokens: 64000
# Define MCP servers once at the top level.
# Each entry can use `command`, `remote`, or `ref` (just like inline MCP toolsets).
mcps:
context7:
ref: docker:context7
github:
ref: docker:github-official
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "${GITHUB_PERSONAL_ACCESS_TOKEN}"
tools:
- create_or_update_file
- search_repositories
- create_repository
- get_file_contents
- push_files
- create_issue
- create_pull_request
- list_issues
agents:
root:
model: model
description: Lead developer
instruction: |
You are the lead developer. Coordinate the team.
sub_agents: [frontend, backend]
toolsets:
- type: filesystem
- type: think
# Reference the MCP definition by name — no need to repeat the full config.
- type: mcp
ref: context7
- type: mcp
ref: github
frontend:
model: model
description: Frontend engineer
instruction: |
You are a frontend engineer.
toolsets:
- type: filesystem
- type: shell
# Same MCP server, referenced by name.
- type: mcp
ref: context7
# Reference github MCP but override the tool list for this agent.
- type: mcp
ref: github
tools:
- get_file_contents
- search_repositories
backend:
model: model
description: Backend engineer
instruction: |
You are a backend engineer.
toolsets:
- type: filesystem
- type: shell
- type: mcp
ref: context7
- type: mcp
ref: github