JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 307
  • Score
    100M100P100Q83749F
  • License MIT

CLI tool for MCPConnect - quickly start a server with UI for debugging MCP integrations

Package Exports

  • @mcpconnect/cli
  • @mcpconnect/cli/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mcpconnect/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@mcpconnect/cli

Command-line interface for MCPConnect - quickly start a server with UI for debugging MCP integrations.

Quick Start

npx @mcpconnect/cli

This will:

  1. Start the MCPConnect server on http://localhost:3001
  2. Automatically open your browser to the UI
  3. 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-open

Explicit Start Command

# Start with explicit command
npx @mcpconnect/cli start

# With options
npx @mcpconnect/cli start --port 8080 --host 0.0.0.0

Options

  • -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-cors

Programmatic 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