WG

william-garden/sync-mcp

开发工具

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

56 stars 4 forks 质量 70 趋势 4

william-garden/sync-mcp 是从 https://github.com/william-garden/sync-mcp. 导入的 MCP 服务器候选服务器。

概览

william-garden/sync-mcp 是从 https://github.com/william-garden/sync-mcp. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

同步-MCP

一键MCP配置同步工具。 中文

1.概述

Sync-MCP 是一款基于Node.js的命令行工具,旨在解决手动同步跨多个集成开发环境(IDE)、代码编辑器和 CLI 工具的通用 MCP 配置的痛点。用户只需简单命令即可安全地将一个工具(源代码)的配置文件同步到另一个工具(目标)的配置文件,从而实现统一且自动化的配置管理。

2.技术规格

  • 环境:Node.js 18+(需要ESM支持和现代API)。
  • 分发:通过npm分发,支持使用npx sync-mcp直接执行,或通过npm i -g sync-mcp实现全局安装。
  • 运行时依赖:仅依赖跨平台文件系统和CLI交互库;无需原生编译环境。
  • 支持平台:在Linux、Windows和macOS上运行稳定。

3.用途

3.1.直接同步

通过为源工具和目标工具提供关键词,直接执行同步。

3.2.交互同步

当命令在没有参数的情况下执行时,它进入交互模式。

操作流程:

  1. 选择来源:

  2. 选择目标:

4.

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

README

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

sync-mcp

One-Click MCP Configuration Sync Tool. 中文

1. Overview

sync-mcp is a Node.js-based command-line tool designed to solve the pain point of manually syncing universal MCP configurations across multiple IDEs, code editors, and CLI tools. Users can use simple commands to safely synchronize the configuration file of one tool (source) to another tool (target), thereby achieving unified and automated configuration management.

2. Technical Specifications

  • Environment: Node.js 18+ (requires ESM support and modern APIs).
  • Distribution: Distributed via npm, supports direct execution with npx sync-mcp or global installation with npm i -g sync-mcp.
  • Runtime Dependencies: Only depends on cross-platform file system and CLI interaction libraries; no native compilation environment required.
  • Supported Platforms: Runs stably on Linux, Windows, and macOS.

3. Usage

3.1. Direct Sync

Execute synchronization directly by providing keywords for the source and target tools.

npx -y sync-mcp  

3.2. Interactive Sync

When the command is executed without any arguments, it enters interactive mode.

npx -y sync-mcp

Operation Flow:

  1. Select Source:
    ? Select the configuration source file: (Use arrow keys)  
    > 1. VS Code (~/.vscode/mcp.json)  
        2. Cursor (~/.cursor/mcp.json)  
        3. GitHub Copilot CLI (~/.copilot/mcp-config.json)  
        4. Customize
    
  2. Select Target:
    ? Select the configuration target file: (Use arrow keys)  
    > 1. VS Code (~/.vscode/mcp.json)  
        2. Cursor (~/.cursor/mcp.json)  
        3. GitHub Copilot CLI (~/.copilot/mcp-config.json)  
        4. Customize (Select a target tool or create a new configuration)
    

4. Tool Matching Keywords

Tool Name Supported Keywords
Codex codex, openai, codex cli
Claude Code claude, claude-code, claude code, anthropic
Cursor cursor, cursor ide
Gemini CLI gemini, gemini cli, google, gcloud
GitHub Copilot CLI copilot, copilot cli, github, gh
Visual Studio Code vscode, vs code, vs-code, code
OpenCode opencode, open code, anomaly

5. Supported Tools and Configuration Paths

Tool Name Linux Path macOS Path Windows Path Documentation URL
Codex ~/.codex/config.toml ~/.codex/config.toml %USERPROFILE%\.codex\config.toml Codex MCP guide
Claude Code ~/.claude.json ~/.claude.json %USERPROFILE%\.claude.json Claude Code MCP guide
Cursor ~/.cursor/mcp.json ~/.cursor/mcp.json %USERPROFILE%\.cursor\mcp.json Cursor MCP guide
在 GitHub 查看完整 README

安装

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

配置

{ "mcpServers": { "context7": { "type": "stdio", "command": "npx", "args": [ "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY" ], "env": {} } } }