Files
docker-agent/examples/toolset-working-dir.yaml
David Gageot 20b25b3da9 remove shebang lines from example configs
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.
2026-05-20 16:26:18 +02:00

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