sync-agents-settings 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +31 -0
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +150 -35
- package/commands/report-schema.md +25 -0
- package/commands/sync-diff.md +5 -1
- package/commands/sync-doctor.md +43 -0
- package/commands/sync-instructions.md +6 -2
- package/commands/sync-reconcile.md +41 -0
- package/commands/sync-validate.md +42 -0
- package/commands/sync.md +6 -2
- package/dist/backup.d.ts +1 -1
- package/dist/backup.js +4 -1
- package/dist/backup.js.map +1 -1
- package/dist/cli.js +542 -55
- package/dist/cli.js.map +1 -1
- package/dist/diff.d.ts +6 -0
- package/dist/diff.js +7 -0
- package/dist/diff.js.map +1 -0
- package/dist/doctor.d.ts +23 -0
- package/dist/doctor.js +140 -0
- package/dist/doctor.js.map +1 -0
- package/dist/fix.d.ts +19 -0
- package/dist/fix.js +71 -0
- package/dist/fix.js.map +1 -0
- package/dist/instructions.d.ts +8 -1
- package/dist/instructions.js +370 -11
- package/dist/instructions.js.map +1 -1
- package/dist/oauth.d.ts +2 -0
- package/dist/oauth.js +7 -0
- package/dist/oauth.js.map +1 -0
- package/dist/paths.d.ts +4 -0
- package/dist/paths.js +5 -0
- package/dist/paths.js.map +1 -1
- package/dist/reconcile.d.ts +27 -0
- package/dist/reconcile.js +122 -0
- package/dist/reconcile.js.map +1 -0
- package/dist/report-parser.d.ts +81 -0
- package/dist/report-parser.js +129 -0
- package/dist/report-parser.js.map +1 -0
- package/dist/report-schema-renderer.d.ts +2 -0
- package/dist/report-schema-renderer.js +129 -0
- package/dist/report-schema-renderer.js.map +1 -0
- package/dist/report-schema-sync.d.ts +9 -0
- package/dist/report-schema-sync.js +28 -0
- package/dist/report-schema-sync.js.map +1 -0
- package/dist/report.d.ts +47 -0
- package/dist/report.js +55 -0
- package/dist/report.js.map +1 -0
- package/dist/types.d.ts +1 -1
- package/dist/validation.d.ts +18 -0
- package/dist/validation.js +62 -0
- package/dist/validation.js.map +1 -0
- package/dist/writers/codex.js +12 -2
- package/dist/writers/codex.js.map +1 -1
- package/dist/writers/kimi.d.ts +7 -0
- package/dist/writers/kimi.js +25 -0
- package/dist/writers/kimi.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sync-agents-settings",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "Leoyang183"
|
|
5
|
+
},
|
|
6
|
+
"plugins": [
|
|
7
|
+
{
|
|
8
|
+
"name": "sync-agents-settings",
|
|
9
|
+
"source": "./",
|
|
10
|
+
"description": "Sync MCP server configs and instructions from Claude Code to other AI agents (Gemini, Codex, Cursor, Kiro, OpenCode, Kimi, Aider)",
|
|
11
|
+
"version": "0.4.1",
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Leoyang183"
|
|
14
|
+
},
|
|
15
|
+
"repository": "https://github.com/Leoyang183/sync-agents-settings",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"keywords": ["mcp", "sync", "agents", "settings"],
|
|
18
|
+
"commands": [
|
|
19
|
+
"./commands/sync.md",
|
|
20
|
+
"./commands/sync-list.md",
|
|
21
|
+
"./commands/sync-diff.md",
|
|
22
|
+
"./commands/sync-instructions.md",
|
|
23
|
+
"./commands/sync-doctor.md",
|
|
24
|
+
"./commands/sync-validate.md",
|
|
25
|
+
"./commands/sync-reconcile.md",
|
|
26
|
+
"./commands/report-schema.md"
|
|
27
|
+
],
|
|
28
|
+
"skills": ["./skills/"]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sync-agents-settings",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Sync MCP server configs and instructions from Claude Code to other AI agents (Gemini, Codex, Cursor, Kiro, OpenCode)",
|
|
5
5
|
"repository": "https://github.com/Leoyang183/sync-agents-settings",
|
|
6
6
|
"author": {
|
package/README.md
CHANGED
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
[](https://prettier.io/)
|
|
12
12
|
[](https://github.com/Leoyang183/sync-agents-settings/actions/workflows/ci.yml)
|
|
13
13
|
|
|
14
|
-
Sync MCP server configurations and instruction files (CLAUDE.md) from **Claude Code** to **Gemini CLI**, **Codex CLI**, **OpenCode**, **Kiro CLI**, and **
|
|
14
|
+
Sync MCP server configurations and instruction files (CLAUDE.md) from **Claude Code** to **Gemini CLI**, **Codex CLI**, **OpenCode**, **Kiro CLI**, **Cursor**, **Kimi CLI**, and **Aider CLI**.
|
|
15
15
|
|
|
16
16
|
**README translations:** [🇹🇼 繁體中文](docs/i18n/README.zh-tw.md) | [🇨🇳 简体中文](docs/i18n/README.zh-cn.md) | [🇯🇵 日本語](docs/i18n/README.ja.md) | [🇰🇷 한국어](docs/i18n/README.ko.md)
|
|
17
|
+
**Support matrix:** [CLI compatibility matrix](docs/compatibility-matrix.md)
|
|
17
18
|
|
|
18
19
|
## Why
|
|
19
20
|
|
|
20
|
-
If you use Claude Code as your primary AI coding agent but also switch between other agents (Gemini CLI, Codex CLI, OpenCode, Kiro, Cursor) to take advantage of their free tiers or different models, you know the pain — every tool has its own MCP config format, and setting them up one by one is tedious. Same goes for instruction files — CLAUDE.md, GEMINI.md, AGENTS.md all need the same content but in different formats.
|
|
21
|
+
If you use Claude Code as your primary AI coding agent but also switch between other agents (Gemini CLI, Codex CLI, OpenCode, Kiro, Cursor, Kimi CLI) to take advantage of their free tiers or different models, you know the pain — every tool has its own MCP config format, and setting them up one by one is tedious. Same goes for instruction files — CLAUDE.md, GEMINI.md, AGENTS.md all need the same content but in different formats.
|
|
21
22
|
|
|
22
23
|
This tool lets you configure MCP servers and write instructions once in Claude Code, then sync everywhere with a single command.
|
|
23
24
|
|
|
@@ -25,17 +26,24 @@ This tool lets you configure MCP servers and write instructions once in Claude C
|
|
|
25
26
|
|
|
26
27
|
### Option A: Claude Code Plugin (recommended)
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
Install as a Claude Code plugin via marketplace:
|
|
29
30
|
|
|
30
31
|
```bash
|
|
31
|
-
#
|
|
32
|
-
claude
|
|
32
|
+
# 1. Add the marketplace
|
|
33
|
+
claude plugin marketplace add Leoyang183/sync-agents-settings
|
|
33
34
|
|
|
34
|
-
#
|
|
35
|
-
|
|
35
|
+
# 2. Install the plugin
|
|
36
|
+
claude plugin install sync-agents-settings
|
|
37
|
+
|
|
38
|
+
# Then use slash commands in any conversation:
|
|
36
39
|
# /sync — sync MCP configs (with dry-run preview)
|
|
37
|
-
# /sync-
|
|
38
|
-
# /sync-
|
|
40
|
+
# /sync-list — list all MCP servers
|
|
41
|
+
# /sync-diff — compare configs between agents
|
|
42
|
+
# /sync-doctor — detect config drift and parse errors
|
|
43
|
+
# /sync-validate — validate schema and target capabilities
|
|
44
|
+
# /sync-reconcile — validate + detect drift + sync only missing
|
|
45
|
+
# /sync-instructions — sync CLAUDE.md to other agents
|
|
46
|
+
# /report-schema — print or write report JSON schema markdown
|
|
39
47
|
```
|
|
40
48
|
|
|
41
49
|
The plugin also includes a **sync-awareness skill** that automatically suggests syncing when you edit MCP settings or CLAUDE.md files.
|
|
@@ -78,13 +86,60 @@ sync-agents sync --target codex
|
|
|
78
86
|
sync-agents sync --target opencode
|
|
79
87
|
sync-agents sync --target kiro
|
|
80
88
|
sync-agents sync --target cursor
|
|
89
|
+
sync-agents sync --target kimi
|
|
81
90
|
|
|
82
91
|
# Sync to Codex project-level config
|
|
83
92
|
sync-agents sync --target codex --codex-home ./my-project/.codex
|
|
84
93
|
|
|
94
|
+
# Sync to Kimi project-level config
|
|
95
|
+
sync-agents sync --target kimi --kimi-home ./my-project/.kimi
|
|
96
|
+
|
|
85
97
|
# Compare differences
|
|
86
98
|
sync-agents diff
|
|
87
99
|
|
|
100
|
+
# Check drift / parse errors between Claude and targets
|
|
101
|
+
sync-agents doctor
|
|
102
|
+
|
|
103
|
+
# Validate source schema and target capability compatibility
|
|
104
|
+
sync-agents validate
|
|
105
|
+
|
|
106
|
+
# One-shot safe reconcile (validate + doctor + sync missing)
|
|
107
|
+
sync-agents reconcile --dry-run
|
|
108
|
+
|
|
109
|
+
# CI-friendly JSON output
|
|
110
|
+
sync-agents reconcile --report json
|
|
111
|
+
|
|
112
|
+
# CI-friendly JSON output for drift checker
|
|
113
|
+
sync-agents doctor --report json
|
|
114
|
+
|
|
115
|
+
# CI-friendly JSON output for schema/capability validation
|
|
116
|
+
sync-agents validate --report json
|
|
117
|
+
|
|
118
|
+
# CI-friendly JSON output for sync result
|
|
119
|
+
sync-agents sync --report json --dry-run
|
|
120
|
+
|
|
121
|
+
# CI-friendly JSON output for instruction sync
|
|
122
|
+
sync-agents sync-instructions --report json --dry-run --global --target gemini
|
|
123
|
+
|
|
124
|
+
# CI-friendly JSON output for diff result
|
|
125
|
+
sync-agents diff --report json --target gemini codex
|
|
126
|
+
|
|
127
|
+
# Note: all --report json outputs include `schemaVersion: 1`
|
|
128
|
+
|
|
129
|
+
Report schema reference: `docs/report-schema.md`
|
|
130
|
+
|
|
131
|
+
# Regenerate report schema documentation
|
|
132
|
+
sync-agents report-schema --write docs/report-schema.md
|
|
133
|
+
|
|
134
|
+
# CI check: ensure report schema doc is up to date
|
|
135
|
+
sync-agents report-schema --check
|
|
136
|
+
|
|
137
|
+
# Auto-fix from doctor (internally runs reconcile)
|
|
138
|
+
sync-agents doctor --fix --dry-run
|
|
139
|
+
|
|
140
|
+
# Auto-fix after validation passes
|
|
141
|
+
sync-agents validate --fix --dry-run
|
|
142
|
+
|
|
88
143
|
# Skip OAuth-only servers (e.g. Slack)
|
|
89
144
|
sync-agents sync --skip-oauth
|
|
90
145
|
|
|
@@ -94,7 +149,23 @@ sync-agents sync --no-backup
|
|
|
94
149
|
# Verbose output
|
|
95
150
|
sync-agents sync -v
|
|
96
151
|
|
|
97
|
-
#
|
|
152
|
+
# Check only specific targets
|
|
153
|
+
sync-agents doctor --target gemini codex
|
|
154
|
+
|
|
155
|
+
# Check Codex project-level config drift
|
|
156
|
+
sync-agents doctor --target codex --codex-home ./.codex
|
|
157
|
+
|
|
158
|
+
# Validate only selected targets and ignore OAuth-only servers
|
|
159
|
+
sync-agents validate --target codex opencode --skip-oauth
|
|
160
|
+
|
|
161
|
+
# Validation semantics:
|
|
162
|
+
# - blank-only command/url values are treated as missing
|
|
163
|
+
# - OAuth-only servers produce manual-setup warnings without duplicate field errors
|
|
164
|
+
|
|
165
|
+
# Reconcile selected targets only
|
|
166
|
+
sync-agents reconcile --target gemini codex
|
|
167
|
+
|
|
168
|
+
# Sync instruction files (CLAUDE.md → GEMINI.md / AGENTS.md / Kiro steering / Cursor rules / Aider conventions)
|
|
98
169
|
sync-agents sync-instructions
|
|
99
170
|
|
|
100
171
|
# Sync only global instructions
|
|
@@ -104,11 +175,17 @@ sync-agents sync-instructions --global
|
|
|
104
175
|
sync-agents sync-instructions --local
|
|
105
176
|
|
|
106
177
|
# Sync to specific targets
|
|
107
|
-
sync-agents sync-instructions --target gemini codex
|
|
178
|
+
sync-agents sync-instructions --target gemini codex kimi aider
|
|
108
179
|
|
|
109
180
|
# Auto-overwrite without prompts (for CI)
|
|
110
181
|
sync-agents sync-instructions --on-conflict overwrite
|
|
111
182
|
|
|
183
|
+
# Keep legacy behavior: remove standalone @import lines instead of expanding
|
|
184
|
+
sync-agents sync-instructions --import-mode strip
|
|
185
|
+
|
|
186
|
+
# Allow standalone @import to read files outside current project root (use with care)
|
|
187
|
+
sync-agents sync-instructions --allow-unsafe-imports
|
|
188
|
+
|
|
112
189
|
# Preview instruction sync
|
|
113
190
|
sync-agents sync-instructions --dry-run
|
|
114
191
|
```
|
|
@@ -134,7 +211,8 @@ pnpm test # Run tests
|
|
|
134
211
|
├─→ Reader ─→ UnifiedMcpServer[] ─┼─→ OpenCode Writer ─→ ~/.config/opencode/opencode.json
|
|
135
212
|
~/.claude/plugins/ ──┘ │
|
|
136
213
|
├─→ Kiro Writer ─→ ~/.kiro/settings/mcp.json
|
|
137
|
-
|
|
214
|
+
├─→ Cursor Writer ─→ ~/.cursor/mcp.json
|
|
215
|
+
└─→ Kimi Writer ─→ ~/.kimi/mcp.json
|
|
138
216
|
```
|
|
139
217
|
|
|
140
218
|
| Stage | Description |
|
|
@@ -145,6 +223,7 @@ pnpm test # Run tests
|
|
|
145
223
|
| **OpenCode Writer** | JSON → JSON, `command`+`args` → merged `command` array, `env` → `environment`, `type: "local"`/`"remote"` |
|
|
146
224
|
| **Kiro Writer** | Same format as Claude, `${VAR:-default}` → expanded |
|
|
147
225
|
| **Cursor Writer** | Same format as Claude, `${VAR:-default}` → expanded |
|
|
226
|
+
| **Kimi Writer** | Same format as Claude, `${VAR:-default}` → expanded |
|
|
148
227
|
|
|
149
228
|
### Instruction Sync (`sync-instructions`)
|
|
150
229
|
|
|
@@ -153,24 +232,37 @@ Syncs CLAUDE.md instruction files to each target's native format:
|
|
|
153
232
|
```
|
|
154
233
|
┌─→ ~/.gemini/GEMINI.md (plain copy)
|
|
155
234
|
├─→ ~/.codex/AGENTS.md (plain copy)
|
|
156
|
-
~/.claude/CLAUDE.md ─→
|
|
235
|
+
~/.claude/CLAUDE.md (+ ~/.claude/rules/*.md) ─→ expand @imports ──┼─→ ~/.config/opencode/AGENTS.md (plain copy)
|
|
236
|
+
├─→ ~/.kimi/AGENTS.md (plain copy)
|
|
157
237
|
├─→ ~/.kiro/steering/claude-instructions.md (+ inclusion: always)
|
|
158
238
|
└─→ ⚠ Cursor global not supported (SQLite)
|
|
159
239
|
|
|
160
240
|
┌─→ ./GEMINI.md (plain copy)
|
|
161
|
-
├─→ ./AGENTS.md (Codex + OpenCode share)
|
|
162
|
-
./CLAUDE.md
|
|
241
|
+
├─→ ./AGENTS.md (Codex + OpenCode + Kimi share)
|
|
242
|
+
./.claude/CLAUDE.md (fallback: ./CLAUDE.md) + ./.claude/rules/*.md ─→ expand @imports ──┼─→ .kiro/steering/claude-instructions.md (+ inclusion: always)
|
|
163
243
|
└─→ .cursor/rules/claude-instructions.mdc (+ alwaysApply: true)
|
|
164
244
|
```
|
|
165
245
|
|
|
166
246
|
| Target | Global | Local | Format Transform |
|
|
167
247
|
|--------|--------|-------|------------------|
|
|
168
|
-
| Gemini | `~/.gemini/GEMINI.md` | `./GEMINI.md` | Plain copy (
|
|
169
|
-
| Codex | `~/.codex/AGENTS.md` | `./AGENTS.md` | Plain copy (
|
|
170
|
-
| OpenCode | `~/.config/opencode/AGENTS.md` | `./AGENTS.md` (shared with Codex) | Plain copy (
|
|
248
|
+
| Gemini | `~/.gemini/GEMINI.md` | `./GEMINI.md` | Plain copy (expand standalone `@import` lines) |
|
|
249
|
+
| Codex | `~/.codex/AGENTS.md` | `./AGENTS.md` | Plain copy (expand standalone `@import` lines) |
|
|
250
|
+
| OpenCode | `~/.config/opencode/AGENTS.md` | `./AGENTS.md` (shared with Codex) | Plain copy (expand standalone `@import` lines) |
|
|
251
|
+
| Kimi | `~/.kimi/AGENTS.md` | `./AGENTS.md` (shared with Codex/OpenCode) | Plain copy (expand standalone `@import` lines) |
|
|
252
|
+
| Aider | `~/.aider/CONVENTIONS.md` | `.aider/CONVENTIONS.md` | Plain copy + upsert `read` entry in `.aider.conf.yml` |
|
|
171
253
|
| Kiro | `~/.kiro/steering/claude-instructions.md` | `.kiro/steering/claude-instructions.md` | Add `inclusion: always` frontmatter |
|
|
172
254
|
| Cursor | Not supported (SQLite) | `.cursor/rules/claude-instructions.mdc` | Add `alwaysApply: true` frontmatter |
|
|
173
255
|
|
|
256
|
+
Notes:
|
|
257
|
+
- Local source resolution prefers `./.claude/CLAUDE.md`, then falls back to `./CLAUDE.md`.
|
|
258
|
+
- Extra rules in `.claude/rules/**/*.md` are appended automatically (unless already included via `@import`).
|
|
259
|
+
- If a rule file has frontmatter `paths`, it is included only when at least one project file matches.
|
|
260
|
+
- `@import` handling defaults to `inline` (expand). Use `--import-mode strip` to remove standalone import lines.
|
|
261
|
+
- By default, standalone `@import` can only read files inside the current project root. Use `--allow-unsafe-imports` to opt out.
|
|
262
|
+
- Inline import expansion has guardrails (`max depth: 20`, `max files: 200`) to avoid runaway recursion.
|
|
263
|
+
- Aider sync also upserts `.aider.conf.yml` `read` so `CONVENTIONS.md` is loaded automatically (global/project follows the sync scope).
|
|
264
|
+
- Kimi CLI currently loads `AGENTS.md` from the working directory. `~/.kimi/AGENTS.md` is synced as a reusable global template.
|
|
265
|
+
|
|
174
266
|
When a target file already exists, you'll be prompted to choose: **overwrite**, **append** (keep existing + add CLAUDE.md below), or **skip**. Use `--on-conflict overwrite|append|skip` for non-interactive mode.
|
|
175
267
|
|
|
176
268
|
**Safety mechanisms:**
|
|
@@ -296,15 +388,21 @@ Writes to **`~/.cursor/mcp.json`** → `mcpServers` object.
|
|
|
296
388
|
|
|
297
389
|
Same format as Claude Code. `${VAR:-default}` syntax in URLs is auto-expanded during sync.
|
|
298
390
|
|
|
391
|
+
### Target: Kimi CLI
|
|
392
|
+
|
|
393
|
+
Writes to **`~/.kimi/mcp.json`** by default. Use `--kimi-home <path>` to sync to a custom base directory (for example, project-level `.kimi/`).
|
|
394
|
+
|
|
395
|
+
Same format as Claude Code. `${VAR:-default}` syntax in URLs is auto-expanded during sync.
|
|
396
|
+
|
|
299
397
|
## Transport Type Mapping
|
|
300
398
|
|
|
301
|
-
| Claude Code | Gemini CLI | Codex CLI | OpenCode | Kiro CLI | Cursor |
|
|
302
|
-
|
|
303
|
-
| `command` + `args` (stdio) | `command` + `args` | `command` + `args` | `type: "local"`, `command: [cmd, ...args]` | same as Claude | same as Claude |
|
|
304
|
-
| `type: "http"` + `url` | `httpUrl` | `url` | `type: "remote"`, `url` | same as Claude | same as Claude |
|
|
305
|
-
| `type: "sse"` + `url` | `url` | `url` | `type: "remote"`, `url` | same as Claude | same as Claude |
|
|
306
|
-
| `env` | `env` | `env` | `environment` | `env` | `env` |
|
|
307
|
-
| `oauth` | skipped | skipped | skipped | skipped | skipped |
|
|
399
|
+
| Claude Code | Gemini CLI | Codex CLI | OpenCode | Kiro CLI | Cursor | Kimi CLI |
|
|
400
|
+
|------------|-----------|----------|----------|----------|--------|----------|
|
|
401
|
+
| `command` + `args` (stdio) | `command` + `args` | `command` + `args` | `type: "local"`, `command: [cmd, ...args]` | same as Claude | same as Claude | same as Claude |
|
|
402
|
+
| `type: "http"` + `url` | `httpUrl` | `url` | `type: "remote"`, `url` | same as Claude | same as Claude | same as Claude |
|
|
403
|
+
| `type: "sse"` + `url` | `url` | `url` | `type: "remote"`, `url` | same as Claude | same as Claude | same as Claude |
|
|
404
|
+
| `env` | `env` | `env` | `environment` | `env` | `env` | `env` |
|
|
405
|
+
| `oauth` | skipped | skipped | skipped | skipped | skipped | skipped |
|
|
308
406
|
|
|
309
407
|
## Backup
|
|
310
408
|
|
|
@@ -325,8 +423,10 @@ Every sync automatically backs up all affected config files to `~/.sync-agents-b
|
|
|
325
423
|
├── .kiro/
|
|
326
424
|
│ └── settings/
|
|
327
425
|
│ └── mcp.json # ← ~/.kiro/settings/mcp.json
|
|
328
|
-
|
|
329
|
-
|
|
426
|
+
├── .cursor/
|
|
427
|
+
│ └── mcp.json # ← ~/.cursor/mcp.json
|
|
428
|
+
└── .kimi/
|
|
429
|
+
└── mcp.json # ← ~/.kimi/mcp.json
|
|
330
430
|
```
|
|
331
431
|
|
|
332
432
|
Use `--no-backup` to skip. Target directories that don't exist (CLI not installed) will be skipped with a warning, not created.
|
|
@@ -349,21 +449,36 @@ Use `--no-backup` to skip. Target directories that don't exist (CLI not installe
|
|
|
349
449
|
| Kiro CLI (project) | `.kiro/settings/mcp.json` in project root | JSON |
|
|
350
450
|
| Cursor (global) | `~/.cursor/mcp.json` | JSON |
|
|
351
451
|
| Cursor (project) | `.cursor/mcp.json` in project root | JSON |
|
|
452
|
+
| Kimi CLI (global) | `~/.kimi/mcp.json` | JSON |
|
|
453
|
+
| Kimi CLI (project) | `.kimi/mcp.json` (use `--kimi-home ./.kimi`) | JSON |
|
|
352
454
|
|
|
353
455
|
### Instruction Files
|
|
354
456
|
|
|
355
457
|
| Tool | Global Path | Project Path | Format |
|
|
356
458
|
|------|------------|-------------|--------|
|
|
357
|
-
| Claude Code | `~/.claude/CLAUDE.md` | `./CLAUDE.md` | Markdown |
|
|
459
|
+
| Claude Code | `~/.claude/CLAUDE.md` | `./.claude/CLAUDE.md` (fallback `./CLAUDE.md`) | Markdown |
|
|
358
460
|
| Gemini CLI | `~/.gemini/GEMINI.md` | `./GEMINI.md` | Markdown |
|
|
359
461
|
| Codex CLI | `~/.codex/AGENTS.md` | `./AGENTS.md` | Markdown |
|
|
360
462
|
| OpenCode | `~/.config/opencode/AGENTS.md` | `./AGENTS.md` | Markdown |
|
|
463
|
+
| Kimi CLI | `~/.kimi/AGENTS.md` | `./AGENTS.md` | Markdown |
|
|
361
464
|
| Kiro CLI | `~/.kiro/steering/claude-instructions.md` | `.kiro/steering/claude-instructions.md` | Markdown + frontmatter |
|
|
362
465
|
| Cursor | Not supported (SQLite) | `.cursor/rules/claude-instructions.mdc` | MDC (Markdown + frontmatter) |
|
|
363
466
|
|
|
364
467
|
## Claude Code Plugin
|
|
365
468
|
|
|
366
|
-
This project
|
|
469
|
+
This project is both a Claude Code **plugin** and **marketplace**, providing slash commands and a contextual skill directly inside Claude Code conversations.
|
|
470
|
+
|
|
471
|
+
### Installation
|
|
472
|
+
|
|
473
|
+
```bash
|
|
474
|
+
# From GitHub (remote — clones the repo)
|
|
475
|
+
claude plugin marketplace add Leoyang183/sync-agents-settings
|
|
476
|
+
claude plugin install sync-agents-settings
|
|
477
|
+
|
|
478
|
+
# Or from local path (symlink — reflects local changes instantly)
|
|
479
|
+
claude plugin marketplace add /path/to/sync-agents-settings
|
|
480
|
+
claude plugin install sync-agents-settings
|
|
481
|
+
```
|
|
367
482
|
|
|
368
483
|
### Slash Commands
|
|
369
484
|
|
|
@@ -372,7 +487,11 @@ This project can be used as a Claude Code plugin, providing slash commands and a
|
|
|
372
487
|
| `/sync` | Sync MCP server configs to other agents (with dry-run preview and confirmation) |
|
|
373
488
|
| `/sync-list` | List all MCP servers configured in Claude Code |
|
|
374
489
|
| `/sync-diff` | Compare MCP configs between Claude and other agents |
|
|
490
|
+
| `/sync-doctor` | Detect MCP config drift between Claude and targets |
|
|
491
|
+
| `/sync-validate` | Validate MCP schema and target capability compatibility |
|
|
492
|
+
| `/sync-reconcile` | Validate + detect drift + sync only missing servers |
|
|
375
493
|
| `/sync-instructions` | Sync CLAUDE.md instruction files to other agent formats |
|
|
494
|
+
| `/report-schema` | Print or write report JSON schema markdown |
|
|
376
495
|
|
|
377
496
|
### Sync-Awareness Skill
|
|
378
497
|
|
|
@@ -381,11 +500,8 @@ The plugin includes a skill that automatically detects when you're editing MCP s
|
|
|
381
500
|
### Plugin Development
|
|
382
501
|
|
|
383
502
|
```bash
|
|
384
|
-
# Validate plugin structure
|
|
385
|
-
claude
|
|
386
|
-
|
|
387
|
-
# Test locally (loads plugin for this session only)
|
|
388
|
-
claude --plugin-dir /path/to/sync-agents-settings
|
|
503
|
+
# Validate plugin/marketplace structure
|
|
504
|
+
claude plugin validate /path/to/sync-agents-settings
|
|
389
505
|
```
|
|
390
506
|
|
|
391
507
|
## Limitations
|
|
@@ -404,4 +520,3 @@ claude --plugin-dir /path/to/sync-agents-settings
|
|
|
404
520
|
## License
|
|
405
521
|
|
|
406
522
|
MIT
|
|
407
|
-
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: report-schema
|
|
3
|
+
description: Print or write markdown documentation for JSON report schema
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Generate report schema markdown from code metadata (`COMMAND_REQUIRED_FIELDS`) and print to stdout or write to file.
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
# Print to stdout
|
|
12
|
+
npx sync-agents-settings report-schema
|
|
13
|
+
|
|
14
|
+
# Write to docs file
|
|
15
|
+
npx sync-agents-settings report-schema --write docs/report-schema.md
|
|
16
|
+
|
|
17
|
+
# CI check: fail if docs/report-schema.md is stale or missing
|
|
18
|
+
npx sync-agents-settings report-schema --check
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Notes
|
|
22
|
+
|
|
23
|
+
- Use this command after changing report payload fields or parser validation rules.
|
|
24
|
+
- The generated file should include the "Required Fields (Generated)" section.
|
|
25
|
+
- `--check` exits with code `1` when target schema file is missing or outdated.
|
package/commands/sync-diff.md
CHANGED
|
@@ -8,7 +8,10 @@ Compare which MCP servers exist in Claude Code vs other AI agents.
|
|
|
8
8
|
## Arguments
|
|
9
9
|
|
|
10
10
|
The user may pass target names: `/sync-diff gemini`
|
|
11
|
-
If no targets specified, compare all targets (gemini, codex, opencode, kiro, cursor).
|
|
11
|
+
If no targets specified, compare all targets (gemini, codex, opencode, kiro, cursor, kimi).
|
|
12
|
+
|
|
13
|
+
Optional flags:
|
|
14
|
+
- `--report json` — output machine-readable JSON summary (CI-friendly)
|
|
12
15
|
|
|
13
16
|
## Execution Flow
|
|
14
17
|
|
|
@@ -21,6 +24,7 @@ If no targets specified, compare all targets (gemini, codex, opencode, kiro, cur
|
|
|
21
24
|
- **Only in target** — servers that exist in the target but not in Claude
|
|
22
25
|
|
|
23
26
|
3. If there are servers "Only in Claude", suggest: "Run `/sync` to sync these servers to the target agents."
|
|
27
|
+
- If `--report json` is used, return raw JSON output and avoid text post-processing.
|
|
24
28
|
|
|
25
29
|
## Error Handling
|
|
26
30
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sync-doctor
|
|
3
|
+
description: Detect MCP config drift and parse errors between Claude Code and target AI agents
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Check whether target MCP configs are in sync with Claude Code, without writing any files.
|
|
7
|
+
|
|
8
|
+
## Arguments
|
|
9
|
+
|
|
10
|
+
The user may pass target names: `/sync-doctor gemini codex`
|
|
11
|
+
If no targets specified, check all targets (gemini, codex, opencode, kiro, cursor, kimi).
|
|
12
|
+
|
|
13
|
+
Optional flags:
|
|
14
|
+
- `--skip-oauth` — ignore OAuth-only servers from Claude source
|
|
15
|
+
- `--codex-home <path>` — check project-level Codex config (e.g. `./.codex`)
|
|
16
|
+
- `--kimi-home <path>` — check project-level Kimi config (e.g. `./.kimi`)
|
|
17
|
+
- `--fix` — if drift exists, auto-run reconcile to add missing servers
|
|
18
|
+
- `--dry-run` — with `--fix`, preview only
|
|
19
|
+
- `--no-backup` — with `--fix`, skip backup before writing
|
|
20
|
+
- `--report json` — emit machine-readable JSON report
|
|
21
|
+
|
|
22
|
+
## Execution Flow
|
|
23
|
+
|
|
24
|
+
1. Parse targets and flags from user arguments.
|
|
25
|
+
2. Run:
|
|
26
|
+
`npx sync-agents-settings doctor --target <targets>`
|
|
27
|
+
Add `--skip-oauth` / `--codex-home` / `--kimi-home` when specified.
|
|
28
|
+
3. Present results per target:
|
|
29
|
+
- `No drift` when fully in sync
|
|
30
|
+
- `Missing in <target>` when Claude has servers not present in target
|
|
31
|
+
- `Extra in <target>` when target has servers absent in Claude
|
|
32
|
+
- `Unavailable` if target directory is missing
|
|
33
|
+
- `Parse error` when target config is malformed
|
|
34
|
+
4. If drift exists, suggest running `/sync` to reconcile.
|
|
35
|
+
- Or run `/sync-doctor --fix` to reconcile automatically.
|
|
36
|
+
|
|
37
|
+
## Error Handling
|
|
38
|
+
|
|
39
|
+
- Exit code `1` means drift detected.
|
|
40
|
+
- Exit code `2` means config parse error detected.
|
|
41
|
+
- With `--fix`, failure reasons are specific: parse-related (`target config parse error`) or validation-related (`validation errors detected`) before exiting `2`.
|
|
42
|
+
- If `npx` fails: suggest `npm install -g sync-agents-settings` as fallback.
|
|
43
|
+
- `--report json` cannot be used with `--fix` on doctor (use `reconcile --report json` instead).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sync-instructions
|
|
3
|
-
description: Sync CLAUDE.md instruction files to other AI agents (Gemini, Codex, OpenCode, Kiro, Cursor)
|
|
3
|
+
description: Sync CLAUDE.md instruction files to other AI agents (Gemini, Codex, OpenCode, Kiro, Cursor, Kimi)
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Sync CLAUDE.md instruction files from Claude Code format to other AI agent formats.
|
|
@@ -12,12 +12,14 @@ If no targets specified, sync to all targets.
|
|
|
12
12
|
|
|
13
13
|
The user may also pass flags:
|
|
14
14
|
- `--no-backup` — skip creating backup of target instruction files
|
|
15
|
+
- `--import-mode inline|strip` — how to handle standalone `@import` lines (`inline` = expand, `strip` = remove line)
|
|
16
|
+
- `--report json` — output machine-readable JSON summary (CI-friendly)
|
|
15
17
|
|
|
16
18
|
## Execution Flow
|
|
17
19
|
|
|
18
20
|
1. Ask the user which scope to sync:
|
|
19
21
|
- **Global** (`~/.claude/CLAUDE.md`) — syncs to agent-specific global instruction files
|
|
20
|
-
- **Local** (
|
|
22
|
+
- **Local** (`./.claude/CLAUDE.md` in current directory, fallback `./CLAUDE.md`) — syncs to project-level instruction files
|
|
21
23
|
- **Both** (default) — syncs both global and local
|
|
22
24
|
|
|
23
25
|
2. Parse targets from user arguments. Build the dry-run command:
|
|
@@ -39,8 +41,10 @@ The user may also pass flags:
|
|
|
39
41
|
Add `--no-backup` if the user specified it.
|
|
40
42
|
|
|
41
43
|
6. Present the final results: which files were synced, appended, or skipped.
|
|
44
|
+
- If `--report json` is used, return raw JSON output and avoid text post-processing.
|
|
42
45
|
|
|
43
46
|
## Error Handling
|
|
44
47
|
|
|
45
48
|
- If `npx` fails: suggest `npm install -g sync-agents-settings` as fallback.
|
|
46
49
|
- If CLAUDE.md source file doesn't exist: the CLI will report it. Inform the user which file is missing.
|
|
50
|
+
- With `--report json` and non-dry-run mode, pass both `--on-conflict` and `--no-backup` to avoid interactive prompts and non-JSON logs.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sync-reconcile
|
|
3
|
+
description: Validate + detect drift + sync only missing MCP servers in one safe flow
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run a safe one-shot reconcile pipeline:
|
|
7
|
+
1) validate schema/capability
|
|
8
|
+
2) detect drift
|
|
9
|
+
3) sync only missing servers
|
|
10
|
+
|
|
11
|
+
## Arguments
|
|
12
|
+
|
|
13
|
+
The user may pass target names: `/sync-reconcile gemini codex`
|
|
14
|
+
If no targets are specified, reconcile all targets.
|
|
15
|
+
|
|
16
|
+
Optional flags:
|
|
17
|
+
- `--dry-run` — preview only, no writes
|
|
18
|
+
- `--no-backup` — skip backup before write
|
|
19
|
+
- `--skip-oauth` — ignore OAuth-only servers
|
|
20
|
+
- `--codex-home <path>` — custom Codex config directory
|
|
21
|
+
- `--kimi-home <path>` — custom Kimi config directory
|
|
22
|
+
- `--report json` — emit machine-readable JSON only (for CI)
|
|
23
|
+
|
|
24
|
+
## Execution Flow
|
|
25
|
+
|
|
26
|
+
1. Build command:
|
|
27
|
+
`npx sync-agents-settings reconcile --target <targets>`
|
|
28
|
+
Include user-provided flags.
|
|
29
|
+
2. Run with `--dry-run` first if user didn't explicitly request real write.
|
|
30
|
+
3. Present output:
|
|
31
|
+
- validation errors/warnings
|
|
32
|
+
- drift summary
|
|
33
|
+
- servers added/skipped per target
|
|
34
|
+
4. If dry-run was used and output is acceptable, ask user whether to run without `--dry-run`.
|
|
35
|
+
5. In automation/CI, prefer `--report json` and parse the output programmatically.
|
|
36
|
+
|
|
37
|
+
## Error Handling
|
|
38
|
+
|
|
39
|
+
- Exit code `2`: validation error or target parse error (must fix before sync).
|
|
40
|
+
- Exit code `0`: reconcile finished (or no drift).
|
|
41
|
+
- If `npx` fails: suggest `npm install -g sync-agents-settings` as fallback.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sync-validate
|
|
3
|
+
description: Validate Claude MCP schema and target capability compatibility before syncing
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Validate MCP server definitions from Claude Code against target agent capabilities.
|
|
7
|
+
|
|
8
|
+
## Arguments
|
|
9
|
+
|
|
10
|
+
The user may pass target names: `/sync-validate codex opencode`
|
|
11
|
+
If no targets are specified, validate all targets (gemini, codex, opencode, kiro, cursor, kimi).
|
|
12
|
+
|
|
13
|
+
Optional flags:
|
|
14
|
+
- `--skip-oauth` — ignore OAuth-only servers from validation
|
|
15
|
+
- `--fix` — after validation passes, auto-run reconcile
|
|
16
|
+
- `--dry-run` — with `--fix`, preview only
|
|
17
|
+
- `--no-backup` — with `--fix`, skip backup before writing
|
|
18
|
+
- `--report json` — emit machine-readable JSON report
|
|
19
|
+
|
|
20
|
+
## Execution Flow
|
|
21
|
+
|
|
22
|
+
1. Parse targets and flags from user arguments.
|
|
23
|
+
2. Run:
|
|
24
|
+
`npx sync-agents-settings validate --target <targets>`
|
|
25
|
+
Add `--skip-oauth` if requested.
|
|
26
|
+
3. Present issues grouped by target:
|
|
27
|
+
- `error` issues: invalid schema that cannot be converted safely
|
|
28
|
+
- `warning` issues: lossy conversion risk or manual setup needed
|
|
29
|
+
- `command` / `url` with blank-only values are treated as missing and reported as `error`
|
|
30
|
+
- OAuth-only servers emit `OAUTH_MANUAL_SETUP_REQUIRED` warning only (no duplicate transport-field errors)
|
|
31
|
+
4. If errors exist, tell the user to fix them before running `/sync`.
|
|
32
|
+
5. If only warnings exist, allow user to proceed based on risk tolerance.
|
|
33
|
+
6. If `--fix` is provided and no validation errors exist, run reconcile automatically.
|
|
34
|
+
- If no drift is found, return a noop result ("Nothing to fix") instead of reporting reconcile success.
|
|
35
|
+
|
|
36
|
+
## Error Handling
|
|
37
|
+
|
|
38
|
+
- Exit code `2` means validation errors were found.
|
|
39
|
+
- Exit code `0` means no errors (warnings may still exist).
|
|
40
|
+
- With `--fix`, failure reasons are specific: parse-related (`target config parse error`) or validation-related (`validation errors detected`) before exiting `2`.
|
|
41
|
+
- If `npx` fails: suggest `npm install -g sync-agents-settings` as fallback.
|
|
42
|
+
- `--report json` cannot be used with `--fix` on validate (use `reconcile --report json` instead).
|
package/commands/sync.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sync
|
|
3
|
-
description: Sync MCP server configurations from Claude Code to other AI agents (Gemini, Codex, OpenCode, Kiro, Cursor)
|
|
3
|
+
description: Sync MCP server configurations from Claude Code to other AI agents (Gemini, Codex, OpenCode, Kiro, Cursor, Kimi)
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Sync MCP server settings from Claude Code to other AI coding agents.
|
|
@@ -8,11 +8,14 @@ Sync MCP server settings from Claude Code to other AI coding agents.
|
|
|
8
8
|
## Arguments
|
|
9
9
|
|
|
10
10
|
The user may pass target names after the command: `/sync gemini codex`
|
|
11
|
-
If no targets specified, sync to all targets (gemini, codex, opencode, kiro, cursor).
|
|
11
|
+
If no targets specified, sync to all targets (gemini, codex, opencode, kiro, cursor, kimi).
|
|
12
12
|
|
|
13
13
|
The user may also pass flags:
|
|
14
14
|
- `--skip-oauth` — skip MCP servers that require OAuth authentication
|
|
15
15
|
- `--no-backup` — skip creating backup of target config files
|
|
16
|
+
- `--codex-home <path>` — custom Codex config directory
|
|
17
|
+
- `--kimi-home <path>` — custom Kimi config directory
|
|
18
|
+
- `--report json` — output machine-readable JSON summary (CI-friendly)
|
|
16
19
|
|
|
17
20
|
## Execution Flow
|
|
18
21
|
|
|
@@ -33,6 +36,7 @@ The user may also pass flags:
|
|
|
33
36
|
`npx sync-agents-settings sync --target <targets>`
|
|
34
37
|
|
|
35
38
|
6. Present the final results.
|
|
39
|
+
- If `--report json` is used, return raw JSON and avoid text post-processing.
|
|
36
40
|
|
|
37
41
|
## Error Handling
|
|
38
42
|
|
package/dist/backup.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function createBackup(filePaths: string[]): string;
|
|
2
|
-
export declare function getFilesToBackup(targets: string[], codexConfigPath?: string): string[];
|
|
2
|
+
export declare function getFilesToBackup(targets: string[], codexConfigPath?: string, kimiConfigPath?: string): string[];
|
package/dist/backup.js
CHANGED
|
@@ -23,7 +23,7 @@ export function createBackup(filePaths) {
|
|
|
23
23
|
}
|
|
24
24
|
return backupDir;
|
|
25
25
|
}
|
|
26
|
-
export function getFilesToBackup(targets, codexConfigPath) {
|
|
26
|
+
export function getFilesToBackup(targets, codexConfigPath, kimiConfigPath) {
|
|
27
27
|
const files = [PATHS.claudeJson, PATHS.claudeSettings];
|
|
28
28
|
if (targets.includes("gemini")) {
|
|
29
29
|
files.push(PATHS.geminiSettings);
|
|
@@ -37,6 +37,9 @@ export function getFilesToBackup(targets, codexConfigPath) {
|
|
|
37
37
|
if (targets.includes("kiro")) {
|
|
38
38
|
files.push(PATHS.kiroMcpConfig);
|
|
39
39
|
}
|
|
40
|
+
if (targets.includes("kimi")) {
|
|
41
|
+
files.push(kimiConfigPath ?? PATHS.kimiMcpConfig);
|
|
42
|
+
}
|
|
40
43
|
if (targets.includes("cursor")) {
|
|
41
44
|
files.push(PATHS.cursorMcpConfig);
|
|
42
45
|
}
|
package/dist/backup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backup.js","sourceRoot":"","sources":["../src/backup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,MAAM,UAAU,YAAY,CAAC,SAAmB;IAC9C,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACjE,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,OAAO,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