mcp-cli
Installation
Summary
Command-line interface for discovering and executing MCP server tools and external integrations.
- Five core commands cover server discovery, tool exploration, schema inspection, execution, and grep-based searching across all available tools
- Supports JSON input/output for scripting, raw text extraction, and description flags for verbose tool documentation
- Handles complex JSON arguments via heredoc, stdin piping, or file input to accommodate special characters and multi-line payloads
- Distinguishes exit codes by error type: client errors (1), server/tool failures (2), and network issues (3) for reliable error handling in automation
SKILL.md
MCP-CLI
Access MCP servers through the command line. MCP enables interaction with external systems like GitHub, filesystems, databases, and APIs.
Commands
| Command | Output |
|---|---|
mcp-cli |
List all servers and tool names |
mcp-cli <server> |
Show tools with parameters |
mcp-cli <server>/<tool> |
Get tool JSON schema |
mcp-cli <server>/<tool> '<json>' |
Call tool with arguments |
mcp-cli grep "<glob>" |
Search tools by name |
Add -d to include descriptions (e.g., mcp-cli filesystem -d)