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
feat: add optional working_dir to MCP and LSP toolset configs
- Add WorkingDir field to Toolset struct (pkg/config/latest/types.go)
- Validate that working_dir is only used with type 'mcp' or 'lsp'
- Resolve working_dir relative to agent's working directory at process start
- Propagate working_dir from top-level mcps: definitions to agent toolsets
- Add resolveToolsetWorkingDir helper in registry.go
- Add tests: validate_test.go, mcps_test.go, registry_test.go
- Add example: examples/toolset-working-dir.yaml
- Update agent-schema.json for Toolset and MCPToolset
Closes#2459
Assisted-By: docker-agent
Copy file name to clipboardExpand all lines: agent-schema.json
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -901,6 +901,10 @@
901
901
}
902
902
}
903
903
]
904
+
},
905
+
"working_dir": {
906
+
"type": "string",
907
+
"description": "Optional working directory for the MCP server process. Relative paths are resolved relative to the agent's working directory."
904
908
}
905
909
},
906
910
"anyOf": [
@@ -1141,6 +1145,10 @@
1141
1145
"version": {
1142
1146
"type": "string",
1143
1147
"description": "Package reference for auto-installation of MCP/LSP tool binaries. Format: 'owner/repo' or 'owner/repo@version'. Set to 'false' to disable auto-install for this toolset."
1148
+
},
1149
+
"working_dir": {
1150
+
"type": "string",
1151
+
"description": "Optional working directory for MCP/LSP toolset processes. Relative paths are resolved relative to the agent's working directory. Only valid for type 'mcp' or 'lsp'."
0 commit comments