Borrowing it
Nothing to install: this file belongs to g-digital-by-Garrigues/MCP_Market_Distribution. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/g-digital-by-Garrigues/MCP_Market_Distribution/main/.claude/commands/setup/preflight-mcp.mdgit clone --depth 1 https://github.com/g-digital-by-Garrigues/MCP_Market_DistributionWrote 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.
[](https://agentmods.dev/commands/g-digital-by-garrigues/mcp_market_distribution/preflight-mcp)<a href="https://agentmods.dev/commands/g-digital-by-garrigues/mcp_market_distribution/preflight-mcp"><img src="https://agentmods.dev/badge/commands/g-digital-by-garrigues/mcp_market_distribution/preflight-mcp/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.
<a href="https://agentmods.dev/commands/g-digital-by-garrigues/mcp_market_distribution/preflight-mcp"><img src="https://agentmods.dev/badge/commands/g-digital-by-garrigues/mcp_market_distribution/preflight-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.00585 |
| Opus 5.5 | $0.00012 | $0.00234 |
| Sonnet 5.5 | $0.00006 | $0.00117 |
| Haiku 4.5 | $0.00003 | $0.00059 |
Grade A, and why
preflight-mcp 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/preflight-mcp — Pre-commit validator
You are running the same Layer-1 validation the CI Track A gate runs (Story 1.3 today; Stories 2.2 layer-1 helpers plug in next), so engineers know whether pending-to-publish/<mcp-name>/ is publication-ready BEFORE pushing a v* tag.
Inputs
$1(required): MCP name, e.g.ead-factory. Must be a kebab-case key inmcp-pipeline.yaml#mcpsAND the folder name underpending-to-publish/.
What the skill runs
pnpm tsx src/setup/run-preflight.ts <mcp-name>
The helper:
- Loads
mcp-pipeline.yamland validates it against the zod schema (Story 1.2). If the config itself is malformed, the helper exits with the field paths + reasons. - Resolves
mcps[<mcp-name>]. If the entry is missing, the helper lists available keys for the engineer. - Runs the Story 1.3 source-folder validator against
pending-to-publish/<mcp-name>/using the entry'sreverse_dns_nameas the expectedmcpNamevalue. - Emits a JSON report with the source-folder check list (each item
presentormissing, with remediation text on misses) and a single booleanready.
Exit semantics (same as the CI gate it mirrors)
- Exit
0— every required element is present,ready: true. The engineer can safely push av*tag. - Exit
1— at least one element is missing OR the config has errors. The structured error follows the FR34 shape; surface the per-item remediation text to the engineer in chat. - Exit
2— usage error (missing argument).
How to surface results
When ready: true, say so in one line. When ready: false:
- Print the
mcp-nameand the list of missing items, one per line, each with its remediation text. - Print the canonical fix-and-retry hint: "Apply the remediations above, then re-run
/preflight-mcp <mcp-name>."
Notes
- Layer 1 in the CI gate runs the same
validateSourceFolderplus future Stories 2.2 helpers. Keep this skill aligned by extendingrun-preflight.tswhenever a new Layer-1 helper lands. - The skill is a soft dependency on nothing; it only needs the repo on disk and
pnpmin PATH.
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.
- 2mo ago First seen · 41 lines · 30 tokens per session scan A 3bae04ccb94c
preflight-mcp is a command published in the GitHub repository g-digital-by-Garrigues/MCP_Market_Distribution (0 stars, last pushed 25d ago), licensed MIT. It adds 30 tokens to every session and 585 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.
preflight-mcp compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| preflight-mcpg-digital-by-Garrigues/MCP_Market_Distribution | Command | 0 | 25d ago | MIT | A | 30 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | yesterday | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | yesterday | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | yesterday | MIT | A | 14 | Claude Code |