CLI as MCP
{
"mcpServers": {
"kubectl": {
"command": "kubectl",
"cli": true
}
}
}Why
You / AI agent --> mcp CLI --> CliTransport --> kubectl / docker / terraform / ...
|
servers.jsonHow discovery works
Calling tools
Configuration
Minimal
Full options
Field
Type
Default
Description
cli_help
cli_helpcli_only
cli_onlycli_depth
cli_depthPreset tools
Examples
kubectl
docker
terraform
git (read-only)
How it works with proxy mode
Environment variables
Variable
Default
Description
Help format support
CLI framework
Example
Supported
Last updated
Was this helpful?