mcp-server-manager
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMCP Server Manager
MCP服务器管理器
Workflow
工作流程
-
Discover candidate servers
- Check project for existing server configs.
.mcp.json - Check for global MCP servers (Claude Code).
~/.claude.json - Scan for MCP-related packages in or
package.json.Cargo.toml
- Check project
-
Choose a registration target
- Project-local: edit directly.
.mcp.json - Global (Claude Code): use /
claude mcp add.claude mcp remove
- Project-local: edit
-
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 directly for project-local config.
.mcp.json
- stdio server:
-
Verify registration
- For : read the file and confirm the entry exists.
.mcp.json - For global: run to verify.
claude mcp list
- For
-
Explain reload requirement
- MCP servers are loaded at session start; ask the user to restart the session.
-
发现候选服务器
- 检查项目文件,查看现有的服务器配置。
.mcp.json - 检查文件,获取全局MCP服务器(Claude Code)。
~/.claude.json - 在或
package.json中扫描与MCP相关的包。Cargo.toml
- 检查项目
-
选择注册目标
- 项目本地:直接编辑文件。
.mcp.json - 全局(Claude Code):使用/
claude mcp add命令。claude mcp remove
- 项目本地:直接编辑
-
注册服务器
- 标准输入输出(stdio)服务器:
bash
claude mcp add <name> -- <command> <args...> - 带环境变量的stdio服务器:
bash
claude mcp add <name> -e KEY=VALUE -- <command> <args...> - 或者直接编辑文件进行项目本地配置。
.mcp.json
- 标准输入输出(stdio)服务器:
-
验证注册
- 对于:读取文件并确认条目存在。
.mcp.json - 对于全局配置:运行命令进行验证。
claude mcp list
- 对于
-
说明重新加载要求
- MCP服务器会在会话启动时加载;请告知用户需要重启会话。
Notes
注意事项
- Infer type from config: key = HTTP,
url/commandkeys = stdio.args - When multiple sources define the same name, confirm which to use.
- For stdio servers using , the package downloads when the server first runs.
npx
- 从配置推断类型:包含键 = HTTP服务器,包含
url/command键 = stdio服务器。args - 当多个源定义了相同名称时,确认使用哪一个。
- 对于使用的stdio服务器,包会在服务器首次运行时下载。
npx
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"]
}
}
}