mcp-server-manager

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

MCP Server Manager

MCP服务器管理器

Workflow

工作流程

  1. Discover candidate servers
    • Check project
      .mcp.json
      for existing server configs.
    • Check
      ~/.claude.json
      for global MCP servers (Claude Code).
    • Scan for MCP-related packages in
      package.json
      or
      Cargo.toml
      .
  2. Choose a registration target
    • Project-local: edit
      .mcp.json
      directly.
    • Global (Claude Code): use
      claude mcp add
      /
      claude mcp remove
      .
  3. Register the server
    • stdio server:
      bash
      claude mcp add <name> -- <command> <args...>
    • stdio with env:
      bash
      claude mcp add <name> -e KEY=VALUE -- <command> <args...>
    • Or edit
      .mcp.json
      directly for project-local config.
  4. Verify registration
    • For
      .mcp.json
      : read the file and confirm the entry exists.
    • For global: run
      claude mcp list
      to verify.
  5. Explain reload requirement
    • MCP servers are loaded at session start; ask the user to restart the session.
  1. 发现候选服务器
    • 检查项目
      .mcp.json
      文件,查看现有的服务器配置。
    • 检查
      ~/.claude.json
      文件,获取全局MCP服务器(Claude Code)。
    • package.json
      Cargo.toml
      中扫描与MCP相关的包。
  2. 选择注册目标
    • 项目本地:直接编辑
      .mcp.json
      文件。
    • 全局(Claude Code):使用
      claude mcp add
      /
      claude mcp remove
      命令。
  3. 注册服务器
    • 标准输入输出(stdio)服务器:
      bash
      claude mcp add <name> -- <command> <args...>
    • 带环境变量的stdio服务器:
      bash
      claude mcp add <name> -e KEY=VALUE -- <command> <args...>
    • 或者直接编辑
      .mcp.json
      文件进行项目本地配置。
  4. 验证注册
    • 对于
      .mcp.json
      :读取文件并确认条目存在。
    • 对于全局配置:运行
      claude mcp list
      命令进行验证。
  5. 说明重新加载要求
    • MCP服务器会在会话启动时加载;请告知用户需要重启会话。

Notes

注意事项

  • Infer type from config:
    url
    key = HTTP,
    command
    /
    args
    keys = stdio.
  • When multiple sources define the same name, confirm which to use.
  • For stdio servers using
    npx
    , the package downloads when the server first runs.
  • 从配置推断类型:包含
    url
    键 = HTTP服务器,包含
    command
    /
    args
    键 = stdio服务器。
  • 当多个源定义了相同名称时,确认使用哪一个。
  • 对于使用
    npx
    的stdio服务器,包会在服务器首次运行时下载。

VMark Example

VMark示例

json
// .mcp.json
{
  "mcpServers": {
    "tauri": {
      "command": "npx",
      "args": ["-y", "@hypothesi/tauri-mcp-server"]
    }
  }
}
json
// .mcp.json
{
  "mcpServers": {
    "tauri": {
      "command": "npx",
      "args": ["-y", "@hypothesi/tauri-mcp-server"]
    }
  }
}