sync-validate
Validate Claude MCP schema and target capability compatibility before syncing
Validate MCP server definitions from Claude Code against target agent capabilities.
Arguments
The user may pass target names: /sync-validate codex opencode
If no targets are specified, validate all targets (gemini, codex, opencode, kiro, cursor, kimi, vibe, qwen, amp, cline, windsurf).
Optional flags:
--skip-oauth— ignore OAuth-only servers from validation--fix— after validation passes, auto-run reconcile--dry-run— with--fix, preview only--no-backup— with--fix, skip backup before writing--report json— emit machine-readable JSON report
Execution Flow
- Parse targets and flags from user arguments.
- Run:
npx sync-agents-settings validate --target <targets>Add--skip-oauthif requested. - Present issues grouped by target:
errorissues: invalid schema that cannot be converted safelywarningissues: lossy conversion risk or manual setup neededcommand/urlwith blank-only values are treated as missing and reported aserror- OAuth-only servers emit
OAUTH_MANUAL_SETUP_REQUIREDwarning only (no duplicate transport-field errors)
- If errors exist, tell the user to fix them before running
/sync. - If only warnings exist, allow user to proceed based on risk tolerance.
- If
--fixis provided and no validation errors exist, run reconcile automatically.- If no drift is found, return a noop result ("Nothing to fix") instead of reporting reconcile success.
Error Handling
- Exit code
2means validation errors were found. - Exit code
0means no errors (warnings may still exist). - With
--fix, failure reasons are specific: parse-related (target config parse error) or validation-related (validation errors detected) before exiting2. - If
npxfails: suggestnpm install -g sync-agents-settingsas fallback. --report jsoncannot be used with--fixon validate (usereconcile --report jsoninstead).