sync-validate

sync-validate is a command for Claude Code from Leoyang183/sync-agents-settings. It costs 14 tokens per session (484 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex; built for cline.

Part of the sync-agents-settings plugin — 1 skill, 8 commands shipped together

Good fit Use /sync-validate for selected targets, optional OAuth handling, previews, automatic reconciliation, or JSON reports.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/leoyang183/sync-agents-settings/sync-validate
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.

Clone the repo
git clone --depth 1 https://github.com/Leoyang183/sync-agents-settings

Made for: Claude Code.

Or install sync-agents-settings, the plugin that ships this one along with the rest of its 1 skill, 8 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-validate

README.md
[![agentmods](https://agentmods.dev/badge/commands/leoyang183/sync-agents-settings/sync-validate/github.svg)](https://agentmods.dev/commands/leoyang183/sync-agents-settings/sync-validate)
Your own site
<a href="https://agentmods.dev/commands/leoyang183/sync-agents-settings/sync-validate"><img src="https://agentmods.dev/badge/commands/leoyang183/sync-agents-settings/sync-validate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync-validate

Your own site · 80×15
<a href="https://agentmods.dev/commands/leoyang183/sync-agents-settings/sync-validate"><img src="https://agentmods.dev/badge/commands/leoyang183/sync-agents-settings/sync-validate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00014 $0.00484
Opus 5.5 $0.00006 $0.00194
Sonnet 5.5 $0.00003 $0.00097
Haiku 4.5 $0.00001 $0.00048

Measured 1mo ago against content hash a88c64c44cbd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (7 stars, last pushed 6mo ago), licensed MIT. It adds 14 tokens to every session and 484 once invoked, about $0.0001 per session on Opus 5.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.