Token导航 LogoToken导航TokenDH.com
Sync Agents Settings logo
开发工具stdio官方级别未说明来源级核验

Sync Agents Settings

MCP Server

sync-agents-settings

一个用于同步多款AI编码代理工具(如Claude Code、Gemini CLI等)的MCP服务器配置和指令文件(CLAUDE.md)的工具,简化多工具间的配置管理。

工具数

0

提示词数

0

GitHub Stars

8

资源数

0
开发工具TypeScriptClaudeClaudeCursorWindsurfCline

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Leoyang183

提供方

Leoyang183

最后核验

2026/5/17 20:21

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx sync-agents-settings list

详细介绍

同步代理设置

![License: MIT](https://opensource.org/licenses/MIT) ](https://www.npmjs.com/package/sync-agents-settings) ](https://www.npmjs.com/package/sync-agents-settings) ![TypeScript](https://www.typescriptlang.org/) ](https://nodejs.org/) ](https://pnpm.io/) ![Vitest](https://vitest.dev/) ![MCP](https://modelcontextprotocol.io/) ![code style: prettier](https://prettier.io/) ![CI](https://github.com/Leoyang183/sync-agents-settings/actions/workflows/ci.yml)

从以下位置同步MCP服务器配置和指令文件(CLAUDE.md) 克劳德代码双子星命令行工具, Codex CLI, 开源代码, Kiro命令行界面, 光标, 化学CLI, Vibe命令行界面 (米斯特拉尔), 通义代码, 安培 (源图), Cline命令行界面, 帆板运动,以及 助手CLI.

README翻译: 🇹🇼繁体中文 | 🇨🇳 简体中文 | 🇯🇵日本语 | 🇰🇷 韩语 支持矩阵: CLI兼容性矩阵

为什么

如果你使用Claude Code作为你的主要AI编码代理,但也在其他代理(Gemini CLI、Codex CLI、OpenCode、Kiro、Cursor、Kimi CLI、Vibe CLI、Qwen Code、Amp、Cline CLI、Windsurf)之间切换,以利用它们的免费层或不同的模型,你知道其中的痛苦——每个工具都有自己的MCP配置格式,逐一设置它们是乏味的。指令文件也是如此——CLAUDE.md、GEMINI.md、AGENTS.md都需要相同的内容,但格式不同。

此工具允许您配置MCP服务器并在Claude Code中编写一次指令,然后使用单个命令在任何地方同步。

快速开始

选项A:Claude代码插件(推荐)

通过marketplace安装为Claude Code插件:

# 1. Add the marketplace
claude plugin marketplace add Leoyang183/sync-agents-settings

# 2. Install the plugin
claude plugin install sync-agents-settings

# Then use slash commands in any conversation:
#   /sync               — sync MCP configs (with dry-run preview)
#   /sync-list          — list all MCP servers
#   /sync-diff          — compare configs between agents
#   /sync-doctor        — detect config drift and parse errors
#   /sync-validate      — validate schema and target capabilities
#   /sync-reconcile     — validate + detect drift + sync only missing
#   /sync-instructions  — sync CLAUDE.md to other agents
#   /report-schema      — print or write report JSON schema markdown

该插件还包括 同步感知技能 当您编辑MCP设置或CLAUDE.md文件时,它会自动建议同步。

选项B:npx命令行界面

无需安装,只需运行 npx:

# List all MCP servers detected from Claude Code
npx sync-agents-settings list

# Preview sync (no files modified)
npx sync-agents-settings sync --dry-run

# Sync to all targets (with automatic backup)
npx sync-agents-settings sync

# Sync CLAUDE.md instructions to all targets
npx sync-agents-settings sync-instructions

选项C:全局安装

# Global install for the `sync-agents` command
npm install -g sync-agents-settings

# Then use directly
sync-agents list
sync-agents sync

用法

# Sync to a specific target
sync-agents sync --target gemini
sync-agents sync --target codex
sync-agents sync --target opencode
sync-agents sync --target kiro
sync-agents sync --target cursor
sync-agents sync --target kimi
sync-agents sync --target vibe
sync-agents sync --target qwen
sync-agents sync --target amp
sync-agents sync --target cline
sync-agents sync --target windsurf

# Sync to Codex project-level config
sync-agents sync --target codex --codex-home ./my-project/.codex

# Sync to Kimi project-level config
sync-agents sync --target kimi --kimi-home ./my-project/.kimi

# Sync to custom home directories
sync-agents sync --target qwen --qwen-home ./my-project/.qwen
sync-agents sync --target amp --amp-home ./my-project/.amp
sync-agents sync --target cline --cline-home ./my-project/.cline
sync-agents sync --target windsurf --windsurf-home ./my-project/.windsurf

# Compare differences
sync-agents diff

# Check drift / parse errors between Claude and targets
sync-agents doctor

# Validate source schema and target capability compatibility
sync-agents validate

# One-shot safe reconcile (validate + doctor + sync missing)
sync-agents reconcile --dry-run

# CI-friendly JSON output
sync-agents reconcile --report json

# CI-friendly JSON output for drift checker
sync-agents doctor --report json

# CI-friendly JSON output for schema/capability validation
sync-agents validate --report json

# CI-friendly JSON output for sync result
sync-agents sync --report json --dry-run

# CI-friendly JSON output for instruction sync
sync-agents sync-instructions --report json --dry-run --global --target gemini

# CI-friendly JSON output for diff result
sync-agents diff --report json --target gemini codex

# Note: all --report json outputs include `schemaVersion: 1`

Report schema reference: `docs/report-schema.md`

# Regenerate report schema documentation
sync-agents report-schema --write docs/report-schema.md

# CI check: ensure report schema doc is up to date
sync-agents report-schema --check

# Auto-fix from doctor (internally runs reconcile)
sync-agents doctor --fix --dry-run

# Auto-fix after validation passes
sync-agents validate --fix --dry-run

# Skip OAuth-only servers (e.g. Slack)
sync-agents sync --skip-oauth

# Skip backup
sync-agents sync --no-backup

# Verbose output
sync-agents sync -v

# Check only specific targets
sync-agents doctor --target gemini codex

# Check Codex project-level config drift
sync-agents doctor --target codex --codex-home ./.codex

# Validate only selected targets and ignore OAuth-only servers
sync-agents validate --target codex opencode --skip-oauth

# Validation semantics:
# - blank-only command/url values are treated as missing
# - OAuth-only servers produce manual-setup warnings without duplicate field errors

# Reconcile selected targets only
sync-agents reconcile --target gemini codex

# Sync instruction files (CLAUDE.md → GEMINI.md / AGENTS.md / Kiro steering / Cursor rules / Aider conventions)
# Targets: gemini, codex, opencode, kimi, vibe, kiro, cursor, aider, qwen, amp
sync-agents sync-instructions

# Sync only global instructions
sync-agents sync-instructions --global

# Sync only project-level instructions
sync-agents sync-instructions --local

# Sync to specific targets
sync-agents sync-instructions --target gemini codex kimi vibe aider qwen amp

# Auto-overwrite without prompts (for CI)
sync-agents sync-instructions --on-conflict overwrite

# Keep legacy behavior: remove standalone @import lines instead of expanding
sync-agents sync-instructions --import-mode strip

# Allow standalone @import to read files outside current project root (use with care)
sync-agents sync-instructions --allow-unsafe-imports

# Preview instruction sync
sync-agents sync-instructions --dry-run

发展

git clone https://github.com/Leoyang183/sync-agents-settings.git
cd sync-agents-settings
pnpm install
pnpm dev list        # Run from source
pnpm test            # Run tests

运作原理

克劳德密码是唯一的真理来源 对于MCP设置,同步到所有支持的目标。

                                                 ┌─→ Gemini Writer    ─→ ~/.gemini/settings.json
                                                 ├─→ Codex Writer     ─→ ~/.codex/config.toml
~/.claude.json ─────┐                            ├─→ OpenCode Writer  ─→ ~/.config/opencode/opencode.json
                     ├─→ Reader ─→ UnifiedMcpServer[] ─┼─→ Kiro Writer      ─→ ~/.kiro/settings/mcp.json
~/.claude/plugins/ ──┘                            ├─→ Cursor Writer    ─→ ~/.cursor/mcp.json
                                                 ├─→ Kimi Writer      ─→ ~/.kimi/mcp.json
                                                 ├─→ Vibe Writer      ─→ ~/.vibe/config.toml
                                                 ├─→ Qwen Writer      ─→ ~/.qwen/settings.json
                                                 ├─→ Amp Writer       ─→ ~/.config/amp/settings.json
                                                 ├─→ Cline Writer     ─→ ~/.cline/data/settings/cline_mcp_settings.json
                                                 └─→ Windsurf Writer  ─→ ~/.codeium/windsurf/mcp_config.json
阶段描述
读者阅读来源 ~/.claude.json 并启用插件 .mcp.json 文件,合并为统一格式
双子座作家JSON→ JSON, type: "http"httpUrl, ${VAR}$VAR
法典撰稿人JSON→toml, ${VAR:-default} → 扩展到实际值(环境值或回退)
OpenCode编写器JSON→ JSON, command+args → 合并 command 阵列, envenvironment, type: "local"/"remote"
基洛作家格式与Claude相同, ${VAR:-default} → 扩大
光标书写器格式与Claude相同, ${VAR:-default} → 扩大
Kimi作家格式与Claude相同, ${VAR:-default} → 扩大
Vibe作家JSON→toml [[mcp_servers]] 显式表数组 transport 现场, ${VAR:-default} → 扩大
Qwen作家JSON→ JSON, type: "http"httpUrl, ${VAR}$VAR (与双子座相同)
放大器写入器JSON→ JSON,使用 "amp.mcpServers" 钥匙, ${VAR} 保存(与克劳德相同)
Cline作家格式与Claude相同, ${VAR:-default} → 扩大
风帆作家JSON→ JSON, urlserverUrl, ${VAR}${env:VAR}

指令同步(sync-instructions)

将CLAUDE.md指令文件同步到每个目标的本机格式:

                                          ┌─→ ~/.gemini/GEMINI.md             (plain copy)
                                          ├─→ ~/.codex/AGENTS.md              (plain copy)
~/.claude/CLAUDE.md (+ ~/.claude/rules/*.md) ─→ expand @imports ──┼─→ ~/.config/opencode/AGENTS.md    (plain copy)
                                          ├─→ ~/.kimi/AGENTS.md               (plain copy)
                                          ├─→ ~/.vibe/AGENTS.md               (plain copy)
                                          ├─→ ~/.qwen/AGENTS.md               (plain copy)
                                          ├─→ ~/.config/amp/AGENTS.md         (plain copy)
                                          ├─→ ~/.kiro/steering/claude-instructions.md  (+ inclusion: always)
                                          └─→ ⚠ Cursor global not supported  (SQLite)

                                          ┌─→ ./GEMINI.md                     (plain copy)
                                          ├─→ ./AGENTS.md                     (Codex + OpenCode + Kimi + Vibe + Qwen + Amp share)
./.claude/CLAUDE.md (fallback: ./CLAUDE.md) + ./.claude/rules/*.md ─→ expand @imports ──┼─→ .kiro/steering/claude-instructions.md    (+ inclusion: always)
                                          └─→ .cursor/rules/claude-instructions.mdc   (+ alwaysApply: true)
目标全局本地格式转换
双子座~/.gemini/GEMINI.md./GEMINI.md纯拷贝(独立展开 @import 线路)
食品法典委员会~/.codex/AGENTS.md./AGENTS.md纯拷贝(独立展开 @import 线路)
OpenCode~/.config/opencode/AGENTS.md./AGENTS.md (与Codex共享)纯拷贝(独立展开 @import 线路)
是Kimi。 ~/.kimi/AGENTS.md./AGENTS.md (与Codex/OpenCode/Vibe/Qwen/Amp共享)纯拷贝(独立扩展 @import 线路)
Vibe~/.vibe/AGENTS.md./AGENTS.md (与Codex/OpenCode/Kimi/Qwen/Amp共享)纯拷贝(独立扩展 @import 线路)
Qwen代码~/.qwen/AGENTS.md./AGENTS.md (与Codex/OpenCode/Kimi/Vibe/Amp共享)纯拷贝(独立扩展 @import 线路)
放大器~/.config/amp/AGENTS.md./AGENTS.md (与Codex/OpenCode/Kimi/Vibe/Qwen共享)纯拷贝(独立扩展 @import 线路)
Cline不支持不支持(使用 .clinerules)
Windsurf不支持不支持(使用自己的规则格式)--
助手~/.aider/CONVENTIONS.md.aider/CONVENTIONS.md纯拷贝+追加销售 read 进入 .aider.conf.yml
基罗~/.kiro/steering/claude-instructions.md.kiro/steering/claude-instructions.md添加 inclusion: always 正面物质
游标不支持(SQLite).cursor/rules/claude-instructions.mdc添加 alwaysApply: true 正面物质

笔记:

  • 首选本地源解析 ./.claude/CLAUDE.md,然后回落到 ./CLAUDE.md.
  • 额外规则 .claude/rules/**/*.md 自动附加(除非已通过 @import).
  • 如果规则文件有frontmatter paths,仅当至少有一个项目文件匹配时,才会包含它。
  • @import 处理默认值 inline (扩展)。使用 --import-mode strip 删除独立的导入行。
  • 默认情况下,独立 @import 只能读取当前项目根目录内的文件。使用 --allow-unsafe-imports 选择退出。
  • 内联进口扩张有护栏(max depth: 20, max files: 200)以避免失控的递归。
  • 助手同步也会出现问题 .aider.conf.yml read 所以 CONVENTIONS.md 自动加载(全局/项目遵循同步范围)。
  • Kimi CLI当前正在加载 AGENTS.md 从工作目录。 ~/.kimi/AGENTS.md 同步为可重用的全局模板。

当目标文件已存在时,系统将提示您选择: 覆盖, 附加 (保留现有+在下面添加CLAUDE.md),或 跳过.使用 --on-conflict overwrite|append|skip 用于非交互模式。

安全机制:

  • 现有服务器永远不会被覆盖(幂等,可以安全地重新运行)
  • 自动备份到 ~/.sync-agents-backup/ 默认情况下(--no-backup 跳过)
  • --dry-run 预览更改而不写入任何文件

来源:克劳德代码

从两个来源读取MCP服务器:

  1. ~/.claude.jsonmcpServers 对象(用户配置的服务器)
  2. **`~/.claude/plugins/cache//

//.mcp.json** → 启用插件MCP服务器(与 ~/.claude/settings.json enabledPlugins`)

克劳德代码有两个 .mcp.json 格式:

// Format 1: Flat (e.g. context7, firebase)
{ "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp"] } }

// Format 2: Nested under mcpServers (e.g. sentry, stripe)
{ "mcpServers": { "sentry": { "type": "http", "url": "https://mcp.sentry.dev/mcp" } } }

目标:Gemini CLI

写信给 ~/.gemini/settings.jsonmcpServers 对象。

与Claude的主要格式差异:

  • 克劳德 type: "http" → 双子座 httpUrl
  • 克劳德 type: "sse" → 双子座 url
  • 克劳德 command (stdio)→ 双子座 command (相同)
  • Env-var语法:Claude ${VAR} → 双子座 $VAR (自动转换)
// Gemini settings.json
{
  "theme": "Dracula",          // existing settings preserved
  "mcpServers": {
    "context7": {              // stdio server
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    },
    "sentry": {                // http server
      "httpUrl": "https://mcp.sentry.dev/mcp"
    }
  }
}

目标:Codex CLI

写信给 ~/.codex/config.toml 默认情况下为(全局)。使用 --codex-home 写到项目级别 .codex/config.toml 相反。

注: Codex CLI不会合并全局和项目配置。当一个项目 .codex/,Codex只读取该目录。全球 ~/.codex/ 完全被忽略了。

关键格式差异:

  • 使用TOML而不是JSON
  • command/args stdio(相同概念)
  • url 对于HTTP服务器(不需要类型字段)
  • env 是一个TOML子表 [mcp_servers..env]
[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp"]

[mcp_servers.sentry]
url = "https://mcp.sentry.dev/mcp"

[mcp_servers.n8n-mcp]
command = "npx"
args = ["n8n-mcp"]

  [mcp_servers.n8n-mcp.env]
  N8N_API_KEY = "your-key"
  N8N_API_URL = "https://your-n8n.example.com"

目标:OpenCode

写信给 ~/.config/opencode/opencode.jsonmcp 对象。

关键格式差异:

  • 根密钥为 mcp (不是 mcpServers)
  • stdio服务器使用 type: "local" 与合并 command 数组(命令+参数组合)
  • HTTP/SSE服务器使用 type: "remote"
  • 环境变量使用 environment 字段(非 env)
// opencode.json
{
  "model": "anthropic/claude-sonnet-4-5",  // existing settings preserved
  "mcp": {
    "context7": {                          // stdio → local
      "type": "local",
      "command": ["npx", "-y", "@upstash/context7-mcp"]
    },
    "sentry": {                            // http → remote
      "type": "remote",
      "url": "https://mcp.sentry.dev/mcp"
    },
    "n8n-mcp": {                           // env → environment
      "type": "local",
      "command": ["npx", "n8n-mcp"],
      "environment": {
        "N8N_API_KEY": "your-key"
      }
    }
  }
}

目标:Kiro CLI

写信给 ~/.kiro/settings/mcp.jsonmcpServers 对象。

格式与Claude Code相同。 ${VAR:-default} URL中的语法在同步过程中会自动扩展。

目标:光标

写信给 ~/.cursor/mcp.jsonmcpServers 对象。

格式与Claude Code相同。 ${VAR:-default} URL中的语法在同步过程中会自动扩展。

目标:Kimi CLI

写信给 ~/.kimi/mcp.json 默认情况下。使用 --kimi-home 同步到自定义基目录(例如,项目级别 .kimi/).

格式与Claude Code相同。 ${VAR:-default} URL中的语法在同步过程中会自动扩展。

目标:Vibe CLI(米斯特拉尔)

写信给 ~/.vibe/config.toml 默认情况下。使用 --vibe-home 同步到自定义基目录(例如,项目级别 .vibe/).

关键格式差异:

  • 使用TOML [[mcp_servers]] (表数组)——每个条目都有一个 name 明确 transport 领域
  • 克劳德 "http" → Vibe "streamable-http"克劳德 "sse" → Vibe "http"
  • command 是字符串(不是数组), env 是一个TOML子表
  • ${VAR:-default} URL中的语法在同步过程中会自动扩展
[[mcp_servers]]
name = "context7"
transport = "stdio"
command = "npx"
args = ["-y", "@upstash/context7-mcp"]

[[mcp_servers]]
name = "supabase"
transport = "streamable-http"
url = "https://mcp.supabase.com/mcp"

目标:Qwen代码

写信给 ~/.qwen/settings.jsonmcpServers 对象。使用 --qwen-home 同步到自定义基本目录。

与Gemini相同的转换模式:

  • 克劳德 type: "http" → Qwen httpUrl
  • 克劳德 type: "sse" → Qwen url
  • Env-var语法:Claude ${VAR} → Qwen $VAR (自动转换)
// ~/.qwen/settings.json
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    },
    "sentry": {
      "httpUrl": "https://mcp.sentry.dev/mcp"
    }
  }
}

目标:安培(源图)

写信给 ~/.config/amp/settings.json"amp.mcpServers" 钥匙。使用 --amp-home 同步到自定义基本目录。

关键格式差异:

  • 根密钥为 "amp.mcpServers" (不是 mcpServers)
  • url 字段保持原样(与克劳德相同)
  • ${VAR} 语法保留(无需转换)
// ~/.config/amp/settings.json
{
  "amp.mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    },
    "sentry": {
      "type": "http",
      "url": "https://mcp.sentry.dev/mcp"
    }
  }
}

目标:Cline CLI

写信给 ~/.cline/data/settings/cline_mcp_settings.jsonmcpServers 对象。使用 --cline-home 同步到自定义基本目录。

格式与Claude Code相同。 ${VAR:-default} URL中的语法在同步过程中会自动扩展。

// ~/.cline/data/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    },
    "sentry": {
      "type": "http",
      "url": "https://mcp.sentry.dev/mcp"
    }
  }
}

目标:风帆

写信给 ~/.codeium/windsurf/mcp_config.jsonmcpServers 对象。使用 --windsurf-home 同步到自定义基本目录。

关键格式差异:

  • 克劳德 url → 帆板运动 serverUrl
  • Env-var语法:Claude ${VAR} → 帆板运动 ${env:VAR} (自动转换)
// ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    },
    "sentry": {
      "type": "http",
      "serverUrl": "https://mcp.sentry.dev/mcp"
    }
  }
}

运输类型映射

Claude CodeGemini CLICodex CLIOpenCodeKiro CLICursorKimi CLIVibe CLIQwen CodeAmpCline CLIWindsurf
command + args (stdio) command + argscommand + argstype: "local", command: [cmd, ...args]与克劳德相同与克劳德相同transport: "stdio", command + args + namecommand + args与克劳德相同command + args
type: "http" + urlhttpUrlurltype: "remote", url与克劳德相同与克劳德相同transport: "streamable-http", url + namehttpUrl与克劳德相同serverUrl
type: "sse" + urlurlurltype: "remote", url与克劳德相同与克劳德相同transport: "http", url + nameurl与克劳德相同serverUrl
envenvenvenvironmentenvenvenvenvenvenvenvenv
oauth跳过跳过跳过

备份

每次同步都会自动将所有受影响的配置文件备份到 ~/.sync-agents-backup// 在写入之前,请保留相对于的原始目录结构 ~:

~/.sync-agents-backup/2026-03-20T00-06-08-042Z/
├── .claude.json                  # ← ~/.claude.json
├── .claude/
│   └── settings.json             # ← ~/.claude/settings.json
├── .gemini/
│   └── settings.json             # ← ~/.gemini/settings.json
├── .codex/
│   └── config.toml               # ← ~/.codex/config.toml
├── .config/
│   ├── opencode/
│   │   └── opencode.json         # ← ~/.config/opencode/opencode.json
│   └── amp/
│       └── settings.json         # ← ~/.config/amp/settings.json
├── .kiro/
│   └── settings/
│       └── mcp.json              # ← ~/.kiro/settings/mcp.json
├── .cursor/
│   └── mcp.json                  # ← ~/.cursor/mcp.json
├── .kimi/
│   └── mcp.json                  # ← ~/.kimi/mcp.json
├── .vibe/
│   └── config.toml               # ← ~/.vibe/config.toml
├── .qwen/
│   └── settings.json             # ← ~/.qwen/settings.json
├── .cline/
│   └── data/
│       └── settings/
│           └── cline_mcp_settings.json  # ← ~/.cline/data/settings/cline_mcp_settings.json
└── .codeium/
    └── windsurf/
        └── mcp_config.json       # ← ~/.codeium/windsurf/mcp_config.json

使用 --no-backup 跳过。不存在的目标目录(未安装CLI)将被跳过并发出警告,而不会创建。

配置文件位置

MCP设置

工具配置路径格式
克劳德代码(用户MCP)~/.claude.jsonJSON
克劳德代码(设置)~/.claude/settings.jsonJSON
克劳德代码(MCP插件)~/.claude/plugins/cache/.../.mcp.jsonJSON
Gemini CLI~/.gemini/settings.jsonJSON
Codex CLI(全球)~/.codex/config.toml汤姆
Codex CLI(项目).codex/config.toml (使用 --codex-home)汤姆
OpenCode(全局)~/.config/opencode/opencode.jsonJSON
OpenCode(项目)opencode.json 在项目根目录中JSON
Kiro CLI(全球)~/.kiro/settings/mcp.jsonJSON
Kiro CLI(项目).kiro/settings/mcp.json 在项目根目录中JSON
光标(全局)~/.cursor/mcp.jsonJSON
光标(项目).cursor/mcp.json 在项目根目录中JSON
Kimi CLI(全球)~/.kimi/mcp.jsonJSON
Kimi CLI(项目).kimi/mcp.json (使用 --kimi-home ./.kimi)JSON
Vibe CLI(全局)~/.vibe/config.toml汤姆
Vibe CLI(项目).vibe/config.toml (使用 --vibe-home ./.vibe)汤姆
Qwen代码(全球)~/.qwen/settings.jsonJSON
Qwen代码(项目).qwen/settings.json (使用 --qwen-home ./.qwen)JSON
Amp(全局)~/.config/amp/settings.jsonJSON
Amp(项目).config/amp/settings.json (使用 --amp-home ./.amp)JSON
Cline CLI(全局)~/.cline/data/settings/cline_mcp_settings.jsonJSON
Cline CLI(项目).cline/data/settings/cline_mcp_settings.json (使用 --cline-home ./.cline)JSON
风帆(全球)~/.codeium/windsurf/mcp_config.jsonJSON
风帆(项目).codeium/windsurf/mcp_config.json (使用 --windsurf-home ./.codeium/windsurf)JSON

指令文件

工具全局路径项目路径格式
克劳德代码~/.claude/CLAUDE.md./.claude/CLAUDE.md (回退 ./CLAUDE.md)Markdown
Gemini CLI~/.gemini/GEMINI.md./GEMINI.mdMarkdown
Codex CLI~/.codex/AGENTS.md./AGENTS.mdMarkdown
OpenCode~/.config/opencode/AGENTS.md./AGENTS.mdMarkdown
是CLI。 ~/.kimi/AGENTS.md./AGENTS.mdMarkdown
Vibe命令行界面~/.vibe/AGENTS.md./AGENTS.mdMarkdown
Qwen代码~/.qwen/AGENTS.md./AGENTS.mdMarkdown
放大器~/.config/amp/AGENTS.md./AGENTS.mdMarkdown
Cline CLI不支持不支持(使用 .clinerules)
Windsurf不支持不支持(使用自己的规则格式)--
Kiro命令行界面~/.kiro/steering/claude-instructions.md.kiro/steering/claude-instructions.mdMarkdown+封面
游标不支持(SQLite).cursor/rules/claude-instructions.mdcMDC(Markdown+前体)

Claude代码插件

这个项目既是克劳德代码 插件市场,直接在Claude Code对话中提供斜线命令和上下文技能。

安装

# From GitHub (remote — clones the repo)
claude plugin marketplace add Leoyang183/sync-agents-settings
claude plugin install sync-agents-settings

# Or from local path (symlink — reflects local changes instantly)
claude plugin marketplace add /path/to/sync-agents-settings
claude plugin install sync-agents-settings

斜杠命令

命令描述
/sync将MCP服务器配置同步到其他代理(带模拟运行预览和确认)
/sync-list列出在Claude Code中配置的所有MCP服务器
/sync-diff比较Claude和其他代理之间的MCP配置
/sync-doctor检测Claude和目标之间的MCP配置漂移
/sync-validate验证MCP模式和目标能力兼容性
/sync-reconcile验证+检测漂移+仅同步丢失的服务器
/sync-instructions将CLAUDE.md指令文件同步到其他代理格式
/report-schema打印或编写报告JSON模式标记

同步感知技能

该插件包含一项技能,可以在编辑MCP设置时自动检测(.claude.json, .mcp.json)或 CLAUDE.md 文件,并建议同步到其他代理。

插件开发

# Validate plugin/marketplace structure
claude plugin validate /path/to/sync-agents-settings

局限性

  • OAuth服务器 (例如,Slack with oauth.clientId)仅作为URL同步——您需要在每个CLI中手动进行身份验证
  • ${CLAUDE_PLUGIN_ROOT} env变量在其他CLI中无法解析
  • Codex CLI不支持 ${VAR:-default} URL中的语法——这些在同步过程中会自动展开(如果设置了env值,则为默认值)
  • 重新运行同步将 不覆盖 现有条目(可安全运行多次)
  • Codex CLI不会合并全局和项目配置——当 .codex/ 存在于项目中,全局 ~/.codex/ 被忽略
  • 如果目标配置目录不存在,sync将跳过该目标(不会创建目录)

星迹

![Star History Chart](https://star-history.com/#Leoyang183/sync-agents-settings&Date)

许可证

麻省理工学院

目录标签

目录标签

开发工具TypeScriptClaude配置同步本地部署AI编码代理MCP服务器指令文件

支持客户端

ClaudeCursorWindsurfCline

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

oauth

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

sync-agents-settings

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiooauth部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP