fix(goose): mcp configuration for stdio now use cmd instead of command

This commit is contained in:
2026-01-06 20:50:31 -06:00
parent 7339d30f33
commit a9332c284e

View File

@@ -207,13 +207,13 @@ class GoosePlugin(ToolPlugin):
self.status.log( self.status.log(
f"Adding local MCP extension: {mcp.name} - {mcp.command}" f"Adding local MCP extension: {mcp.name} - {mcp.command}"
) )
# Goose uses stdio type for local MCPs # Goose uses stdio type for local MCPs with "cmd" field
config_data["extensions"][mcp.name] = { config_data["extensions"][mcp.name] = {
"enabled": True, "enabled": True,
"name": mcp.name, "name": mcp.name,
"timeout": 60, "timeout": 300,
"type": "stdio", "type": "stdio",
"command": mcp.command, "cmd": mcp.command,
"args": mcp.args if mcp.args else [], "args": mcp.args if mcp.args else [],
"envs": mcp.env if mcp.env else {}, "envs": mcp.env if mcp.env else {},
} }