MCP CLI Command Interface#
What's wrong with this entry?
What: A new command-line interface for interacting with MCP (Model Context Protocol) servers directly from bash commands within Claude Code sessions.
How to use:
# Discover available MCP servers and tools
mcp-cli servers # List all connected MCP servers
mcp-cli tools [server] # List available tools
mcp-cli grep "weather" # Search tools by keyword
# Get tool schema (REQUIRED before calling any tool)
mcp-cli info slack/search_private # View JSON schema for parameters
# Invoke MCP tools
mcp-cli call slack/search_private '{"query": "mentions", "max_results": 10}'
# Use stdin for complex JSON
mcp-cli call api/send_request - <<'EOF'
{
"endpoint": "/data",
"headers": {"Authorization": "Bearer token"}
}
EOF
Details:
- Enabled via
ENABLE_EXPERIMENTAL_MCP_CLIenvironment variable - Claude must call
mcp-cli infobefore anymcp-cli callto check parameter schemas - Includes full Commander.js CLI with multiple subcommands
- Automatically tracked with telemetry event
tengu_mcp_cli_command_executed - Evidence: Command parser
Re()at line 3935, handlerso2()at line 493008, entry point check at line 493024 inpretty-v2.0.34.js