You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Transfer Task]({{ '/tools/transfer-task/' | relative_url }}) | Delegate tasks to sub-agents (auto-enabled with `sub_agents`) |
43
+
|[Background Agents]({{ '/tools/background-agents/' | relative_url }}) | Dispatch work to sub-agents concurrently |
44
+
|[Handoff]({{ '/tools/handoff/' | relative_url }}) | Delegate tasks to remote agents via A2A |
45
+
|[A2A]({{ '/tools/a2a/' | relative_url }}) | Connect to remote agents via the Agent-to-Agent protocol |
46
46
47
47
## MCP Tools
48
48
49
49
docker-agent supports the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) for extending agents with external tools. There are three ways to connect MCP tools:
50
50
51
51
-**Docker MCP** (recommended) — Run MCP servers in Docker containers via the [MCP Gateway](https://github.com/docker/mcp-gateway). Browse the [Docker MCP Catalog](https://hub.docker.com/search?q=&type=mcp).
52
52
-**Local MCP (stdio)** — Run MCP servers as local processes communicating over stdin/stdout.
53
-
-**Remote MCP (SSE / HTTP)** — Connect to MCP servers running on a network. See [Remote MCP Servers](/features/remote-mcp/).
53
+
-**Remote MCP (SSE / HTTP)** — Connect to MCP servers running on a network. See [Remote MCP Servers]({{ '/features/remote-mcp/' | relative_url }}).
54
54
55
55
```yaml
56
56
toolsets:
57
57
- type: mcp
58
58
ref: docker:duckduckgo
59
59
```
60
60
61
-
See [Tool Config](/configuration/tools/#mcp-tools) for full MCP configuration reference.
61
+
See [Tool Config]({{ '/configuration/tools/#mcp-tools' | relative_url }}) for full MCP configuration reference.
62
62
63
63
<div class="callout callout-tip">
64
64
<div class="callout-title">💡 See also
65
65
</div>
66
-
<p>For full configuration reference, see <a href="/configuration/tools/">Tool Config</a>. For RAG (document retrieval), see <a href="/features/rag/">RAG</a>.</p>
66
+
<p>For full configuration reference, see <a href="{{ '/configuration/tools/' | relative_url }}">Tool Config</a>. For RAG (document retrieval), see <a href="{{ '/features/rag/' | relative_url }}">RAG</a>.</p>
| `add_date` | boolean | ✗ | When `true`, injects the current date into the agent's context. |
68
68
| `add_environment_info` | boolean | ✗ | When `true`, injects working directory, OS, CPU architecture, and git info into context. |
@@ -71,13 +71,13 @@ agents:
71
71
| `code_mode_tools` | boolean | ✗ | When `true`, formats tool responses in a code-optimized format with structured output schemas. Useful for MCP gateway and programmatic access. |
72
72
| `max_iterations` | int | ✗ | Maximum number of tool-calling loops. Default: unlimited (0). Set this to prevent infinite loops. |
73
73
| `num_history_items` | int | ✗ | Limit the number of conversation history messages sent to the model. Useful for managing context window size with long conversations. Default: unlimited (all messages sent). |
74
-
| `rag` | array | ✗ | List of RAG source names to attach to this agent. References sources defined in the top-level `rag` section. See [RAG](/features/rag/). |
74
+
| `rag` | array | ✗ | List of RAG source names to attach to this agent. References sources defined in the top-level `rag` section. See [RAG]({{ '/features/rag/' | relative_url }}). |
75
75
| `skills` | boolean | ✗ | Enable automatic skill discovery from standard directories. |
76
76
| `commands` | object | ✗ | Named prompts that can be run with `docker agent run config.yaml /command_name`. |
77
77
| `welcome_message` | string | ✗ | Message displayed to the user when a session starts. Useful for providing context or instructions. |
78
-
| `handoffs` | array | ✗ | List of A2A agent configurations this agent can delegate to. See [A2A Protocol](/features/a2a/). |
79
-
| `hooks` | object | ✗ | Lifecycle hooks for running commands at various points. See [Hooks](/configuration/hooks/). |
80
-
| `structured_output` | object | ✗ | Constrain agent output to match a JSON schema. See [Structured Output](/configuration/structured-output/). |
78
+
| `handoffs` | array | ✗ | List of A2A agent configurations this agent can delegate to. See [A2A Protocol]({{ '/features/a2a/' | relative_url }}). |
79
+
| `hooks` | object | ✗ | Lifecycle hooks for running commands at various points. See [Hooks]({{ '/configuration/hooks/' | relative_url }}). |
80
+
| `structured_output` | object | ✗ | Constrain agent output to match a JSON schema. See [Structured Output]({{ '/configuration/structured-output/' | relative_url }}). |
81
81
82
82
<div class="callout callout-warning">
83
83
<div class="callout-title">⚠️ max_iterations
@@ -109,7 +109,7 @@ agents:
109
109
110
110
## Deferred Tool Loading
111
111
112
-
Toolsets support `defer` to load tools on-demand and speed up agent startup. See [Deferred Tool Loading](/configuration/tools/#deferred-tool-loading) for details.
112
+
Toolsets support `defer` to load tools on-demand and speed up agent startup. See [Deferred Tool Loading]({{ '/configuration/tools/#deferred-tool-loading' | relative_url }}) for details.
0 commit comments