@mcpconnect/cli
v0.0.21
Published
CLI tool for MCPConnect - quickly start a server with UI for debugging MCP integrations
Maintainers
Readme
@mcpconnect/cli
Command-line interface for MCPConnect - quickly start a server with UI for debugging MCP integrations.
Quick Start
npx @mcpconnect/cliThis will:
- Start the MCPConnect server on
http://localhost:3001 - Automatically open your browser to the UI
- Serve the full MCPConnect interface
Usage
Default Command
# Start server on default port 3001
npx @mcpconnect/cli
# Start on specific port
npx @mcpconnect/cli 8080
# Start with options
npx @mcpconnect/cli --host 0.0.0.0 --no-openExplicit Start Command
# Start with explicit command
npx @mcpconnect/cli start
# With options
npx @mcpconnect/cli start --port 8080 --host 0.0.0.0Options
-p, --port <port>- Port to run server on (default: 3001)-h, --host <host>- Host to bind server to (default: localhost)--no-open- Don't automatically open browser--no-cors- Disable CORS middleware--no-helmet- Disable security headers
Examples
# Basic usage
npx @mcpconnect/cli
# Custom port and host
npx @mcpconnect/cli --port 8080 --host 0.0.0.0
# Don't open browser automatically
npx @mcpconnect/cli --no-open
# Development mode (disable security features)
npx @mcpconnect/cli --no-helmet --no-corsProgrammatic Usage
You can also use the CLI functions programmatically:
import { startServer } from "@mcpconnect/cli";
const { url } = await startServer({
port: 3001,
host: "localhost",
cors: true,
helmet: true,
});
console.log(`Server running at ${url}`);Development
# Clone and setup
git clone https://github.com/rocket-connect/mcpconnect
cd mcpconnect
pnpm install
# Build all packages
pnpm build
# Test CLI locally
pnpm start