New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mcp_hub_fun/cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcp_hub_fun/cli

A NPX command to install and list Model Context Protocols

latest
npmnpm
Version
0.1.14
Version published
Maintainers
1
Created
Source

@mcp_hub_fun/cli

@mcp_hub_fun/cli 是一个用于安装、运行和管理 MCP Hub 平台 MCP Server 的命令行工具。

要求

  • NodeJS 18或更高版本

安装

npm install -g @mcp_hub_fun/cli

或者使用npx直接运行:

npx @mcp_hub_fun/cli <命令>

使用方法

npx @mcp_hub_fun/cli <命令>

可用命令

  • install <服务器> - 安装一个 MCP 服务器
    • --client <客户端> - 指定 AI 客户端
    • --path <路径> - 指定自定义配置文件路径
  • uninstall <服务器> - 卸载一个 MCP 服务器
    • --client <客户端> - 指定 AI 客户端
    • --path <路径> - 指定自定义配置文件路径
  • run <服务器> - 运行一个 MCP 服务器
    • --env <json> - 提供JSON格式的配置
  • list clients - 列出可用的客户端
  • --help - 显示帮助信息

支持的客户端

  • cursor - Cursor 编辑器
  • trae - Trae 国内版本
  • trae-global - Trae 国际版本
  • cline - Cline 扩展
  • windsurf - Windsurf 编辑器

示例

# 安装服务器到 Cursor(默认路径)
npx -y @mcp_hub_fun/cli@latest install sequential-thinking --client cursor

# 安装服务器到 Trae 国际版
npx -y @mcp_hub_fun/cli@latest install sequential-thinking --client trae-global

# 安装服务器到自定义路径
npx -y @mcp_hub_fun/cli@latest install sequential-thinking --client cursor --path /custom/path/mcp.json

# 卸载服务器
npx -y @mcp_hub_fun/cli@latest uninstall sequential-thinking --client cursor

# 从自定义路径卸载服务器
npx -y @mcp_hub_fun/cli@latest uninstall sequential-thinking --client cursor --path /custom/path/mcp.json

# 列出可用的客户端
npx -y @mcp_hub_fun/cli list clients

# 运行服务器
npx -y @mcp_hub_fun/cli run sequential-thinking

# 运行服务器并增加配置
npx -y @mcp_hub_fun/cli@latest run Codebase --client cursor --env '{"API_TOKEN":"<填入你的API_TOKEN>"}'

# 显示帮助菜单
npx @mcp_hub_fun/cli --help

自定义路径功能

使用 --path 参数可以将 MCP 服务器安装到自定义位置,这在以下情况下很有用:

  • 非标准安装路径: 当 AI 客户端安装在非默认位置时
  • 便携式应用: 当使用便携版 AI 客户端时
  • 多用户环境: 在共享系统上为不同用户配置不同路径
  • 备份和迁移: 方便配置文件的备份和迁移
# 示例:使用自定义路径
npx @mcp_hub_fun/cli install my-server --client cursor --path "/Applications/Cursor.app/Contents/Resources/app/extensions/mcp.json"

FAQs

Package last updated on 04 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts