mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
Bumps model IDs across examples/*.yaml (and the gopher.hcl sibling) to the current-generation anchors: Claude Sonnet 5 / Opus 5 (with Sonnet 4.6 / Opus 4.8 kept where a key signals a cheaper/fallback tier), GPT-5.6-sol/-terra, Gemini 3.8 Flash, Grok 4.5, Kimi K3, and Llama 4 Maverick on OpenRouter. Refs #4137.
78 lines
1.9 KiB
YAML
78 lines
1.9 KiB
YAML
# 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-5
|
|
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: "${env.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
|