mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 10:02:15 +00:00
Remove the leading '#!/usr/bin/env docker agent run' shebang and following blank line from all example YAML and HCL files, as the config format is now self-documenting.
28 lines
1.0 KiB
YAML
28 lines
1.0 KiB
YAML
# Example: using working_dir for MCP and LSP toolsets
|
|
#
|
|
# Some language servers and MCP tools must be started from a specific directory.
|
|
# For example, gopls must be started from the Go module root. Use `working_dir`
|
|
# to configure the launch directory for any MCP or LSP toolset.
|
|
#
|
|
# `working_dir` is:
|
|
# - Optional (defaults to the agent's working directory when omitted)
|
|
# - Resolved relative to the agent's working directory if it is a relative path
|
|
|
|
agents:
|
|
root:
|
|
model: openai/gpt-5-mini
|
|
description: Example agent demonstrating working_dir for MCP and LSP toolsets
|
|
instruction: |
|
|
You are a helpful coding assistant with access to language server and MCP tools
|
|
launched from their respective project directories.
|
|
toolsets:
|
|
# LSP server started from a subdirectory (e.g. a Go module in ./backend)
|
|
- type: lsp
|
|
command: gopls
|
|
working_dir: ./backend
|
|
|
|
# MCP server started from a specific tools directory
|
|
- type: mcp
|
|
command: my-mcp-server
|
|
working_dir: ./tools/mcp
|