Bug Description
The docker mcp tools call <tool> CLI command double-encodes JSON arguments, causing all tool calls to fail.
Steps to Reproduce
- Run
docker mcp tools call git_status --args '{"repo_path": "/repo"}'
- Observe verbose output:
Calling tool git_status with arguments: {"{\"repo_path\": \"/repo\"}":null}
Expected vs Actual
- Expected: Gateway receives
{"repo_path": "/repo"} as a proper JSON object
- Actual: Arguments become a STRING KEY
{"repo_path": "/repo"} with value null
Impact
- All
docker mcp tools call commands fail
- Gateway works fine when called from Claude Code (which handles JSON correctly)
- This only affects CLI-based testing of the MCP gateway
Environment
- Docker Desktop on Windows (WSL2 backend)
- Docker MCP Toolkit CLI
Bug Description
The
docker mcp tools call <tool>CLI command double-encodes JSON arguments, causing all tool calls to fail.Steps to Reproduce
docker mcp tools call git_status --args '{"repo_path": "/repo"}'Calling tool git_status with arguments: {"{\"repo_path\": \"/repo\"}":null}Expected vs Actual
{"repo_path": "/repo"}as a proper JSON object{"repo_path": "/repo"}with valuenullImpact
docker mcp tools callcommands failEnvironment