Skip to content

Commit c6bc325

Browse files
docs: document working_dir field for MCP and LSP toolsets
- docs/tools/lsp/index.md: add working_dir to Properties table; extend the Go/gopls example to show the monorepo subdirectory use-case - docs/configuration/tools/index.md: add working_dir to both the Local MCP (stdio) and Docker MCP (ref) property tables - CHANGELOG.md: add Unreleased section noting the new field Assisted-By: docker-agent
1 parent d610013 commit c6bc325

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

docs/configuration/tools/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Browse available tools at the [Docker MCP Catalog](https://hub.docker.com/search
6565
| `tools` | array | Optional: only expose these tools |
6666
| `instruction` | string | Custom instructions injected into the agent's context |
6767
| `config` | any | MCP server-specific configuration (passed during initialization) |
68+
| `working_dir` | string | Working directory for the MCP gateway subprocess. Only applies when the catalog entry runs as a local process (not remote). Relative paths are resolved against the agent's working directory. |
6869

6970
### Local MCP (stdio)
7071

@@ -86,6 +87,7 @@ toolsets:
8687
| `args` | array | Command arguments |
8788
| `tools` | array | Optional: only expose these tools |
8889
| `env` | object | Environment variables (key-value pairs) |
90+
| `working_dir` | string | Working directory for the MCP server process. Relative paths are resolved against the agent's working directory. Defaults to the agent's working directory when omitted. |
8991
| `instruction` | string | Custom instructions injected into the agent's context |
9092
| `version` | string | Package reference for [auto-installing](#auto-installing-tools) the command binary |
9193

docs/tools/lsp/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ agents:
6565
| `args` | array | ✗ | Command-line arguments for the LSP server |
6666
| `env` | object | ✗ | Environment variables for the LSP process |
6767
| `file_types` | array | ✗ | File extensions this LSP handles (e.g., `[".go", ".mod"]`) |
68+
| `working_dir` | string | ✗ | Working directory for the LSP server process. Relative paths are resolved against the agent's working directory. Defaults to the agent's working directory when omitted. |
6869
| `version` | string | ✗ | Package reference for [auto-installing]({{ '/configuration/tools/#auto-installing-tools' | relative_url }}) the command binary |
6970

7071
## Common LSP Servers
@@ -81,6 +82,16 @@ toolsets:
8182
file_types: [".go"]
8283
```
8384

85+
If your Go module lives in a subdirectory (e.g. a monorepo where `go.mod` is under `./backend`), set `working_dir` so `gopls` is started from the module root:
86+
87+
```yaml
88+
toolsets:
89+
- type: lsp
90+
command: gopls
91+
file_types: [".go"]
92+
working_dir: ./backend # gopls must be started from the module root
93+
```
94+
8495
### TypeScript/JavaScript (typescript-language-server)
8596

8697
```yaml

0 commit comments

Comments
 (0)