| Crates.io | mcp-cli |
| lib.rs | mcp-cli |
| version | 0.3.0 |
| created_at | 2025-06-21 04:55:16.352616+00 |
| updated_at | 2025-06-30 06:22:54.416528+00 |
| description | Interactive CLI debugger and TUI for MCP servers |
| homepage | https://github.com/conikeec/mcp-probe |
| repository | https://github.com/conikeec/mcp-probe |
| max_upload_size | |
| id | 1720530 |
| size | 518,029 |
Interactive CLI debugger and TUI for MCP (Model Context Protocol) servers.
mcp-cli provides a powerful terminal-based interface for debugging and testing MCP servers. It features:
cargo install mcp-cli
git clone https://github.com/conikeec/mcp-probe
cd mcp-probe
cargo install --path crates/mcp-cli
The CLI tool is named mcp-probe and provides multiple commands:
Launch the interactive TUI for debugging an MCP server:
# Connect to stdio server
mcp-probe debug --stdio python -- -m my_mcp_server
# Connect to HTTP SSE server
mcp-probe debug --http-sse http://localhost:3000/sse
# Connect to HTTP streaming server
mcp-probe debug --http-stream http://localhost:3000/stream
Export discovered capabilities to various formats:
# Export to JSON
mcp-probe export --stdio python -- -m my_mcp_server --format json --output capabilities.json
# Export to YAML
mcp-probe export --stdio python -- -m my_mcp_server --format yaml --output capabilities.yaml
Validate an MCP server implementation:
mcp-probe validate --stdio python -- -m my_mcp_server
/ to open search, results appear as you typeR to view latest responseCreate a configuration file at ~/.config/mcp-probe/config.yaml:
# Default transport configuration
transport:
type: "stdio"
command: "python"
args: ["-m", "my_mcp_server"]
working_dir: "/path/to/server"
# Environment variables
environment:
DEBUG: "true"
API_KEY: "your-api-key"
# UI preferences
ui:
theme: "dark"
page_size: 10
auto_scroll: true
# Logging configuration
logging:
level: "info"
file: "mcp-probe.log"
# Connect to GitHub MCP server
mcp-probe debug --stdio npx -- -y @modelcontextprotocol/server-github
# In the TUI:
# 1. Press '/' to search
# 2. Type "repo" to find repository-related tools
# 3. Select a tool and fill in parameters
# 4. Press Tab to execute
# 5. Press 'R' to view the response
# Connect with debug logging
RUST_LOG=debug mcp-probe debug --stdio python -- -m my_server --debug
# The TUI will show:
# - All discovered capabilities
# - Real-time protocol messages
# - Detailed error information
# - Session state tracking
git clone https://github.com/conikeec/mcp-probe
cd mcp-probe
cargo build --release
cargo test --all-features
cargo fmt --all
cargo clippy --all-targets --all-features -- -D warnings
Contributions are welcome! Please see the main repository for contribution guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.