JSPM

@mcpflow.io/mcp-mcpm-cli

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q23462F
  • License GNU Affero General Public License v3.0

一个用于在Claude应用中管理MCP服务器的命令行工具。

Package Exports

    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 (@mcpflow.io/mcp-mcpm-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    MCPM CLI

    此包由 MCPFlow 打包并发布到npm仓库。

    一个用于在Claude应用中管理MCP服务器的命令行工具。

    安装与使用

    直接使用npx运行:

    npx @mcpflow.io/mcp-mcpm-cli

    或者先安装后使用:

    # 安装
    npm install @mcpflow.io/mcp-mcpm-cli
    
    # 使用
    npx @mcpflow.io/mcp-mcpm-cli

    使用方法

    Installation

    npm install -g @mcpm/cli

    工具函数

    version

    Exports the version of the MCPM CLI

    参数:

    formatMCPServers

    Formats an array of MCP servers with status into a string

    参数:

    • servers: An array of MCP servers with status

    debug

    Logs a debug message if the log level is set to debug or higher

    参数:

    • args: Additional arguments to log
    • message: The message to log

    info

    Logs an info message if the log level is set to info or higher

    参数:

    • args: Additional arguments to log
    • message: The message to log

    warn

    Logs a warning message if the log level is set to warn or higher

    参数:

    • args: Additional arguments to log
    • message: The message to log

    error

    Logs an error message if the log level is set to error or higher

    参数:

    • args: Additional arguments to log
    • message: The message to log

    clearAllData

    Clears all data

    参数:

    getInstanceByType

    Gets an instance of the host service by type

    参数:

    • type: The type of the host service

    getPackageInfo

    Gets information about a package

    参数:

    • name: The name of the package

    searchPackages

    Searches for packages in the registry

    参数:

    • query: The search query

    installPackage

    Installs a package

    参数:

    • name: The name of the package to install
    • params: The parameters for the package

    addMCPSelfMCPServer

    Adds the MCPM CLI as a MCP server

    参数:

    addMCPServer

    Adds a MCP server

    参数:

    • name: The name of the MCP server
    • config: The configuration for the MCP server

    removeMCPServer

    Removes a MCP server

    参数:

    • name: The name of the MCP server to remove

    disableMCPServer

    Disables a MCP server

    参数:

    • name: The name of the MCP server to disable

    enableMCPServer

    Enables a disabled MCP server

    参数:

    • name: The name of the MCP server to enable

    getAllMCPServersWithStatus

    Gets all MCP servers with status

    参数:

    restartHostApp

    Restarts Claude.app

    参数:

    getMCPServerWithStatus

    Gets a MCP server with status

    参数:

    • name: The name of the MCP server

    getEnabledMCPServers

    Gets all enabled MCP servers

    参数:

    getDisabledMCPServers

    Gets all disabled MCP servers

    参数:

    updateMCPServerParams

    Updates the parameters of a MCP server

    参数:

    • name: The name of the MCP server
    • params: The parameters to update

    startMCPServer

    Starts the MCPM MCP server

    参数:

    原始信息

    • 开发者: MCP-Club
    • 版本: 1.0.0
    • 许可证: GNU Affero General Public License v3.0
    • 原始仓库: MCP-Club/mcpm

    原始README

    MCPM CLI

    npm version npm downloads Build Status GitHub license GitHub issues GitHub stars

    A command-line tool for managing MCP servers in Claude App.

    Highlights

    • 🚀 Easy Server Management: Add, remove, and manage multiple MCP servers in Claude App with simple commands
    • 🔄 Server Status Control: Enable/disable servers and view their status at any time
    • 🛠️ Interactive CLI: User-friendly command-line interface with interactive prompts for easy configuration
    • 🔌 Self-Integration: Can add MCPM CLI itself as a MCP server with a single command
    • 📝 JSON Configuration: Manages servers through Claude's configuration file with proper error handling
    • 🔍 Package Discovery: Search and discover MCP packages from the community

    RoadMap

    • Add Remote MCP Discovery (A MCPHub for search and recommendation)
    • Auto Install MCP Servers For you
    • A GUI for MCPM CLI

    Installation

    npm install -g @mcpm/cli

    Usage

    > mcpm help
    
    Usage: mcpm [options] [command]
    
    Options:
      -V, --version         output the version number
      -d, --debug           enables verbose logging (default: false)
      -h, --help            display help for command
    
    Commands:
      search [query]        Search for MCP packages
      install <n>           Install a MCP package from the registry
      add [options] [name]  Manually add a new MCP server to your Claude App
      remove [name]         Remove a MCP server from your Claude App
      disable [name]        Disable an MCP server (moves it from Claude to storage)
      enable [name]         Enable a disabled MCP server (moves it from storage to Claude)
      list [options]        List all your MCP servers
      mcp                   Start the MCPM MCP server
      restart               Restart Claude.app
      help [command]        display help for command
    

    Search for MCP packages

    Search for available MCP packages in the registry:

    mcpm search              # Interactive search mode
    mcpm search <query>      # Search with a specific query
    mcpm search --json       # Output results in JSON format

    Install a MCP package

    Install a MCP package by its ID:

    mcpm install <package-id>     # Install a specific package
    mcpm i <package-id>          # Short alias for install
    mcpm install -y <package-id>  # Install without confirmation

    Remove a MCP server

    Remove a MCP server from Claude App:

    mcpm remove                 # Interactive mode
    mcpm remove <name>          # Remove a specific server
    mcpm rm <name>              # Short alias for remove

    Disable an MCP server

    Moves a server from Claude App to storage, making it temporarily unavailable.

    mcpm disable               # Interactive mode
    mcpm disable <name>        # Specify server name

    Enable an MCP server

    Moves a previously disabled server from storage back to Claude App.

    mcpm enable               # Interactive mode
    mcpm enable <name>        # Specify server name

    List MCP servers

    mcpm list            # Shows all configured MCP servers

    Start As A MCP Server

    mcpm mcp               # Start MCPM as a MCP server

    For more information, visit our MCP.md.

    Add itself as a MCP server to your Claude App

    mcpm add --self          # Add MCPM CLI as a MCP server

    Configuration

    • Active servers are stored in Claude App's configuration
    • Disabled servers are stored in ~/.mcpm/*

    Development

    Publish A new version

    GitHub Actions will automatically publish a new version when a new tag is created

    git tag v1.4.1
    git push origin v1.4.1