sync-validate

A command that checks whether Claude Code MCP server settings are valid and can be converted for other coding agents. It reports errors, warnings, and cases requiring manual OAuth setup.

In plain words
What is it for?
Use /sync-validate for selected targets, optional OAuth handling, previews, automatic reconciliation, or JSON reports.
Why use it?
It shows compatibility problems before you try to copy settings, helping avoid broken or incomplete configurations.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/leoyang183/sync-agents-settings/sync-validate
Clone the repo
git clone --depth 1 https://github.com/Leoyang183/sync-agents-settings
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 484 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00014 $0.00484
Opus 5 $0.00007 $0.00242
Sonnet 5 $0.00003 $0.00097
Haiku 4.5 $0.00001 $0.00048

Measured 2d ago against content hash a88c64c44cbd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sync-validate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/sync-validate.md · 43 lines

What it actually says

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

  1. Parse targets and flags from user arguments.
  2. Run: npx sync-agents-settings validate --target <targets> Add --skip-oauth if requested.
  3. Present issues grouped by target:
    • error issues: invalid schema that cannot be converted safely
    • warning issues: lossy conversion risk or manual setup needed
    • command / url with blank-only values are treated as missing and reported as error
    • OAuth-only servers emit OAUTH_MANUAL_SETUP_REQUIRED warning only (no duplicate transport-field errors)
  4. If errors exist, tell the user to fix them before running /sync.
  5. If only warnings exist, allow user to proceed based on risk tolerance.
  6. If --fix is 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 2 means validation errors were found.
  • Exit code 0 means 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 exiting 2.
  • If npx fails: suggest npm install -g sync-agents-settings as fallback.
  • --report json cannot be used with --fix on validate (use reconcile --report json instead).
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 43 lines · 14 tokens per session scan A a88c64c44cbd

Subscribe to this mod's changes

sync-validate is a command published in the GitHub repository Leoyang183/sync-agents-settings (8 stars, last pushed 5mo ago), licensed MIT. It adds 14 tokens to every session and 484 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.