This guide provides instructions for getting started with the MCP Connection Hub CLI.
There are multiple ways to install and use the CLI:
The CLI is automatically installed inside the Docker container:
# Start the container
docker-compose up -d
# Run CLI commands inside the container
docker exec mcp-connection-hub mcp-cli --helpYou can install a wrapper script on the host that forwards commands to the container:
# Run the installation script
./scripts/install_cli.sh
# Use the CLI directly
mcp-cli --helpFor development, you can set up a Python environment:
# Set up development environment
./scripts/setup_dev_env.sh
# Run CLI directly
./mcp-cli --helpOnce installed, you can use the CLI with the following commands:
# Show version
mcp-cli version
# Show help for all commands
mcp-cli --help
# Show help for a specific command
mcp-cli tool --helpThe CLI provides several command groups:
- Tool Management:
mcp-cli tool [command] - Configuration:
mcp-cli config [command] - System Operations:
mcp-cli system [command] - Job Management:
mcp-cli job [command] - User Management:
mcp-cli user [command]
You can test all CLI commands using the test script:
# Make sure scripts are executable
./make_scripts_executable.sh
# Run the test script
./scripts/test_cli.shThe test script will run through all major CLI commands to verify functionality.
# List all tools
mcp-cli tool list
# Get information about a specific tool
mcp-cli tool info brave_web_search
# Enable a tool
mcp-cli tool enable brave_web_search
# Configure a tool
mcp-cli tool configure brave_web_search --param timeout --value 20# View all configuration
mcp-cli config get
# View specific configuration value
mcp-cli config get database.url
# Set configuration value
mcp-cli config set api.port 9000# View system status
mcp-cli system status
# Run health check
mcp-cli system health
# View logs
mcp-cli system logsFor more detailed information, see:
- CLI Examples: Comprehensive examples of CLI usage
- CLI Development Guide: Guide for extending the CLI
- Milestone 1.5 Documentation: Overview of the CLI implementation