Hold your code to what your Markdown says: the rules on a path, asked before an agent writes it.
MCPpedia last refreshed this data
io.github.spec-family/spec-guard is an MCP server that hold your code to what your Markdown says: the rules on a path, asked before an agent writes it. Its tool list has not been published yet over stdio and sse, requires no API key, and scores 59/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"io-github-spec-family-spec-guard": {
"args": [
"-y",
"@spec-family/spec-guard"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Hold your code to what your Markdown says: the rules on a path, asked before an agent writes it.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y '@spec-family/spec-guard' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @spec-family/spec-guard against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in writing
Publish HTML, Markdown, PDF, or images as instant shareable links with expiry and passwords.
Any file → clean Markdown for AI agents: PDF, Office, EPUB, HTML, images, audio/video. Local MCP.
Scrape, crawl, and map websites to Markdown or JSON via local CLI.
一键同步文章到多个内容平台,支持今日头条、WordPress、知乎、简书、掘金、CSDN、typecho各大平台,一次发布,多平台同步发布。解放个人生产力
MCP Security Weekly
Get CVE alerts and security updates for io.github.spec-family/spec-guard and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Hold your code to what your Markdown says about it.
Specs, ADRs, READMEs, agent instructions: the claims they make about your codebase become assertions that run in CI, in milliseconds, with no runtime dependencies.
The retired payment gateway is gone from the service layer.
<!-- @assert-absence target="src/services" symbol="LegacyPaymentGateway" -->
If someone reintroduces LegacyPaymentGateway, CI fails and points at the line
of the ADR that promised it was gone.
The words the spec-* tools share are defined in concepts, and the tutorial runs spec-guard beside its siblings through one round of work on a small repository.
Architecture Decision Records, RFCs and technical briefs are full of hard claims about a repository:
LegacyPaymentGateway no longer exists anywhere in the service layer."UserSessionManager."process.env outside src/config."Every one of those claims is true on the day it is written and unverified from the day after. Prose does not fail a build. Six months later the document is still confidently asserting something the code stopped doing in March.
That has always been an annoyance. It became a defect multiplier the moment coding agents started reading these documents as ground truth. An agent that reads "module X does not exist yet" will happily build a second X. A reviewer who trusts "this symbol occurs zero times" skips the grep. Stale documentation is now executable in the worst sense: it executes inside someone's head, or inside a model's context window, and produces work that has to be thrown away.
spec-guard makes the claims executable in the good sense. It reads directives written as ordinary HTML comments - invisible in every Markdown renderer - and checks them against the real tree with ripgrep. A stale claim becomes a failing build with a line number, not a landmine.
npm install --save-dev @spec-family/spec-guard
npx --no-install @spec-family/spec-guard "docs/**/*.md"
npx is given the package's full name, here and in every command below:
Names says why the command's name alone is not written.
Add a directive to any Markdown file, here docs/adr/0007-sessions.md,
directly under the sentence it makes executable:
## Decision
Session state has exactly one owner.
<!-- @assert-count target="src/" symbol="UserSessionManager" expected="1" -->
Run it:
npx --no-install @spec-family/spec-guard "docs/**/*.md" --verbose
spec-guard 1 spec · 1 assertion · javascript
✔ docs/adr/0007-sessions.md:5 @assert-count "UserSessionManager" (1 match) in src
1 passed · 11ms
✔ every spec assertion holds
And when it drifts:
spec-guard 1 spec · 1 assertion · javascript
✖ docs/adr/0007-sessions.md:5 @assert-count
"UserSessionManager" must appear exactly 1 time in src
expected exactly 1 match, found 3
src/auth/UserSessionManager.ts:12:14 export class UserSessionManager {
src/legacy/sessions.ts:3:10 import { UserSessionManager } from '../auth';
src/workers/refresh.ts:8:30 const manager = new auth.UserSessionManager(store);
0 passed · 1 failed · 12ms
Exit code 1. The ADR is now a test. A Windows console other than Windows
Terminal or VS Code's writes +, x, ! and o for the marks
(ASCII and the marks).
The package is @spec-family/spec-guard, and the command it installs is
spec-guard. The name without the scope is not this project: on npm,
spec-guard belonged to nobody on 2026-10-07, and whoever registers it decides
what it runs.
npx fetches and runs the package of whatever name it is given when the
project has none installed - a fresh clone, a worktree bef