KD

koki-develop/mmcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

40 stars 7 forks 质量 85 趋势 32MIT

koki-develop/mmcp 是一个从 https://github.com/koki-develop/mmcp. 导入的 MCP 候选服务器。

概览

koki-develop/mmcp 是一个从 https://github.com/koki-develop/mmcp. 导入的 MCP 候选服务器。

概述(AI 翻译)

将MCP(模型上下文协议)服务器定义集中管理,并应用于支持的代理。

支持的特工

代理 ID 配置路径
克劳德代码 claude-code ~/.claude.json
Claude桌面 claude-desktop macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json
法典CLI codex-cli ~/.codex/config.toml
光标 cursor ~/.cursor/mcp.json
双子座CLI gemini-cli ~/.gemini/settings.json
GitHub 副驾驶 CLI github-copilot-cli ~/.copilot/mcp-config.json

未来可能会增加更多代理。

安装

开始

1.在 MMCP 配置中添加一个 MCP 服务器

将MCP服务器定义添加到~/.mmcp.json。

你可以随时查看已配置的服务器:

2.选择目标代理人

设置要应用的代理(例如claude-code)。

注册代理人名单:

3.把你的 MMCP 配置应用到代理上

关于每种模式的作用,请参见应用模式。

就这些。你来自~/.mmcp.json的MCP服务器会写入代理的配置中(例如’~/.claude.’

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

mmcp

Manage your MCP (Model Context Protocol) server definitions in one place and apply them to supported agents.

Supported Agents

Agent id Config Path
Claude Code claude-code ~/.claude.json
Claude Desktop claude-desktop macOS: ~/Library/Application Support/Claude/claude_desktop_config.jsonWindows: %APPDATA%\Claude\claude_desktop_config.jsonLinux: ~/.config/Claude/claude_desktop_config.json
Codex CLI codex-cli ~/.codex/config.toml
Cursor cursor ~/.cursor/mcp.json
Gemini CLI gemini-cli ~/.gemini/settings.json
GitHub Copilot CLI github-copilot-cli ~/.copilot/mcp-config.json

More agents may be added in the future.

Installation

npm install -g mmcp

Getting Started

1. Add an MCP server to mmcp config

$ mmcp add [--env KEY=VALUE ...] [--config ] [--force] --   [args...]

# e.g.
$ mmcp add -- context7 npx -y @upstash/context7-mcp@latest
$ mmcp add -- everything npx -y @modelcontextprotocol/server-everything@latest

Adds the MCP server definition into ~/.mmcp.json.

You can check configured servers anytime:

$ mmcp list [--config ]
context7: npx -y @upstash/context7-mcp@latest
everything: npx -y @modelcontextprotocol/server-everything@latest

2. Choose target agents

Set which agents to apply to (e.g. claude-code).

$ mmcp agents add [--config ] 

# e.g.
$ mmcp agents add claude-code
$ mmcp agents add claude-desktop
$ mmcp agents add codex-cli
$ mmcp agents add cursor
$ mmcp agents add gemini-cli
$ mmcp agents add github-copilot-cli

List registered agents:

$ mmcp agents list [--config ]
claude-code
claude-desktop
codex-cli
cursor
gemini-cli
github-copilot-cli

3. Apply your mmcp config to the agents

$ mmcp apply [--mode merge|replace]

See Apply modes for what each mode does.

That’s it. Your MCP servers from ~/.mmcp.json will be written into the agent’s config (e.g. ~/.claude.json for Claude Code).

Configuration

mmcp stores configuration as JSON. Default location is ~/.mmcp.json.

Example:

{
  "mode": "merge",
  "agents": [
    "claude-code",
    "claude-desktop",
    "codex-cli",
    "cursor",
    "gemini-cli",
    "github-copilot-cli"
  ],
在 GitHub 查看完整 README

安装

npx -y @upstash/context7-mcp@latest
新手?先看 mcpskill.org 教程 →

配置

{ "mode": "merge", "agents": [ "claude-code", "claude-desktop", "codex-cli", "cursor", "gemini-cli", "github-copilot-cli" ], "mcpServers": { "context7": { "command": "npx", "args": [ "-y", "@upstash/context7-mcp@latest" ], "env": {} }, "everything": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-everything@latest" ], "env": {} } } }