sync-reconcile
Validate + detect drift + sync only missing MCP servers in one safe flow
Run a safe one-shot reconcile pipeline:
- validate schema/capability
- detect drift
- sync only missing servers
Arguments
The user may pass target names: /sync-reconcile gemini codex
If no targets are specified, reconcile all targets.
Optional flags:
--server <names...>or-s <names...>— reconcile only specified MCP servers by name--dry-run— preview only, no writes--no-backup— skip backup before write--skip-oauth— ignore OAuth-only servers--codex-home <path>— custom Codex config directory--kimi-home <path>— custom Kimi config directory--vibe-home <path>— custom Vibe config directory--qwen-home <path>— custom Qwen Code config directory--amp-home <path>— custom Amp config directory--cline-home <path>— custom Cline CLI config directory--windsurf-home <path>— custom Windsurf config directory--report json— emit machine-readable JSON only (for CI)
Execution Flow
- Build command:
npx sync-agents-settings reconcile --target <targets>Include user-provided flags. - Run with
--dry-runfirst if user didn't explicitly request real write. - Present output:
- validation errors/warnings
- drift summary
- servers added/skipped per target
- If dry-run was used and output is acceptable, ask user whether to run without
--dry-run. - In automation/CI, prefer
--report jsonand parse the output programmatically.
Error Handling
- Exit code
2: validation error or target parse error (must fix before sync). - Exit code
0: reconcile finished (or no drift). - If
npxfails: suggestnpm install -g sync-agents-settingsas fallback.