respec-mcp
Summary: respec-mcp is a stdio MCP server that gives AI assistants five tools for human-led editorial checking and ReSpec rendering of W3C/CG documents inside a configured repo root.
List profiles (
respec_list_profiles) — enumerate repo-local profiles fromrespec-mcp.config.jsonandrespec-mcp/profiles/*.jsonwith their allowed statuses.Scaffold a document (
respec_scaffold) — create a new ReSpec source file from a profile's status-specific template (writes to disk).Preflight source (
respec_preflight) — cheap source-only policy checks (required sections, required links, forbidden phrases, allowed statuses) with no rendering.Validate a document (
respec_validate) — full ReSpec render via Puppeteer returning render diagnostics and post-render compliance results, without writing output.Build a document (
respec_build) — full render that writes static HTML to the build root and returns compliance results.Read bundled resources —
respec-mcp://authoring-guide,respec-mcp://profile/{profile_id},respec-mcp://skills, andrespec-mcp://skill/{skill_id}for W3C authoring and document-skill guidance.Pass common inputs —
profile,source,status,output, and filteredoverrideson the four document tools.Rely on sandboxing — all paths are contained to the configured
--repo-root, no client-suppliedrepo_root, and prototype-polluting keys are dropped; only the read-only tools are safe to auto-approve.No async tasks — every tool declares task support as forbidden, so all calls run synchronously.
Provides GitHub Actions integration for review-visible ReSpec editorial checks, including escaped diagnostic annotations, job summaries, and JSON evidence artifacts for W3C-related documents.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@respec-mcp list profiles in the repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
respec-mcp
Human-led editorial checks for W3C-related documents, available through GitHub Actions, a command-line checker and MCP. Maintainers define document rules in their repository; authors and AI assistants use the same preflight and ReSpec validation before review. Reviewers can inspect the result, diagnostics and policy revision directly on GitHub without installing an MCP client.
The project acts as a gate for configured editorial rules: required sections and links, permitted document statuses, flagged phrases and ReSpec diagnostics. A green result establishes those checks only. It does not establish W3C endorsement, group consensus, publication authorization or the correctness of the document's claims.
Fourteen document skills cover explainers, specifications, CG reports, charters, reviews, implementation evidence, publication, meeting records, workshops and presentations. They identify the appropriate W3C tooling beyond ReSpec. Shared guidance lets authors explain ideas in their own language and receive help drafting English while preserving technical meaning and uncertainty.
Status: incubating. See the inline W3C discussion that led to this package being extracted from ReSpec core.
Why a separate package
ReSpec is consumed as a library by many projects. Bundling an MCP server and its ~30 transitive dependencies (Express, Hono, jose, pkce-challenge, ...) into every ReSpec install punishes every consumer for a feature only a few use. Keeping the MCP as its own package lets ReSpec stay lean and lets this server iterate on profile/policy design and security hardening independently.
Related MCP server: Specifai MCP Server
What it does
GitHub Actions: review-visible checks, escaped diagnostic annotations, a job summary and a JSON evidence artifact. Add it to a repository.
One-shot CLI:
respec-checkruns the same checks locally and returns a meaningful exit code. CLI usage.MCP: the existing authoring workflow remains available, with human editorial control.
Five tools over stdio:
Tool | What it does |
| Lists repo-local profiles and their allowed statuses. |
| Creates a new source document from a profile template. |
| Fast source-only policy check (sections, links, forbidden phrases). No render. |
| Full ReSpec render via Puppeteer with diagnostics. No write. |
| Full render and writes static HTML to the build root. |
MCP resources:
respec-mcp://authoring-guide— guidance for LLMs producing W3C/CG reports.respec-mcp://profile/{profile_id}— resolved profile JSON.respec-mcp://skills— document-skill catalog and tool routing.respec-mcp://skill/{skill_id}— one document skill with shared editorial and multilingual guidance.
Install
The new Action and checker are available from this repository. Until version 0.2.0 is published to npm, use a checkout for the new CLI (npm ci, then node bin/respec-check.js --help); the registry's older release does not include these additions.
npm install -g respec-mcpOr run without installing:
npx -y respec-mcp --repo-root /path/to/spec-repoQuick start
In your spec repo, add
respec-mcp.config.json:{ "default_profile": "example-cg", "profile_directory": "respec-mcp/profiles", "source_root": "reports/source", "build_root": "reports/build" }Add a profile at
respec-mcp/profiles/example-cg.json:{ "profile_id": "example-cg", "allowed_statuses": ["CG-DRAFT", "CG-FINAL"], "default_status": "CG-DRAFT", "default_source": "reports/source/index.html", "status_templates": { "CG-DRAFT": "respec-mcp/templates/cg-draft.html" }, "required_sections": ["Abstract", "Introduction"], "required_links": ["https://www.w3.org/community/example/"], "forbidden_phrases": ["W3C Recommendation"] }Point an MCP client at it:
{ "mcpServers": { "respec-mcp": { "command": "npx", "args": ["-y", "respec-mcp", "--repo-root", "/path/to/spec-repo"], "transport": "stdio" } } }
Two worked examples ship in the repo. The CG fixture uses PM-KR’s real group identifier so ReSpec can resolve group metadata; its placeholder text is a demonstration, not a group publication. Replace the metadata and content when adopting it:
examples/example-cg/— Community Group report.examples/example-explainer/— W3C explainer skeleton following TR/explainer-explainer/.
Wiring into MCP clients
All snippets below use npx -y respec-mcp (works once the package is on
npm). For local development before publishing, swap
"command": "npx", "args": ["-y", "respec-mcp", ...] for
"command": "node", "args": ["/absolute/path/to/respec-mcp/bin/respec-mcp.js", ...].
Replace /path/to/spec-repo with the absolute path to your W3C / CG spec
repo (the one containing respec-mcp.config.json).
Claude Code (~/.claude/settings.json)
Add a respec-mcp entry under mcpServers:
{
"mcpServers": {
"respec-mcp": {
"command": "npx",
"args": ["-y", "respec-mcp", "--repo-root", "/path/to/spec-repo"]
}
}
}Reload with /mcp or restart Claude Code.
Codex CLI (~/.codex/config.toml)
[mcp_servers.respec-mcp]
command = "npx"
args = ["-y", "respec-mcp", "--repo-root", "/path/to/spec-repo"]
enabled = trueCline (VS Code extension saoudrizwan.claude-dev)
Edit
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
(or use Cline's MCP Servers → Configure UI):
{
"mcpServers": {
"respec-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "respec-mcp", "--repo-root", "/path/to/spec-repo"],
"disabled": false,
"autoApprove": [
"respec_list_profiles",
"respec_preflight",
"respec_validate"
],
"timeout": 300
}
}
}Only the read-only tools are auto-approved. respec_scaffold and
respec_build write to disk and will prompt.
Roo Code (VS Code extension rooveterinaryinc.roo-cline)
Edit
~/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json.
Same shape as Cline, except Roo spells the transport type with a hyphen
in its HTTP variant — for stdio the type key is still "stdio":
{
"mcpServers": {
"respec-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "respec-mcp", "--repo-root", "/path/to/spec-repo"],
"disabled": false,
"autoApprove": [
"respec_list_profiles",
"respec_preflight",
"respec_validate"
],
"timeout": 300
}
}
}Verifying the handshake
From a terminal, send an initialize + tools/list over stdio:
printf '%s\n%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"probe","version":"0"}}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
| npx -y respec-mcp --repo-root /path/to/spec-repoYou should see serverInfo.name: "respec-mcp" and the five tools listed.
Security
Tool inputs in MCP are LLM-controlled and can be influenced by prompt injection from document content. This server defends against that:
Path containment. Every path input is resolved through a
resolveWithinRootcheck and rejected if it escapes the configured--repo-root.URL restriction.
sourceaccepts only relative paths orfile://URLs inside the repo root. External source URLs are rejected. For local rendering, a temporary loopback server serves the bounded source and installed ReSpec assets; document scripts can still make network requests.No client-side
repo_rootoverride. The CLI flag is the boundary; the tool schema does not acceptrepo_root.Prototype pollution hardening.
overrides,template_defaults, andrespec_defaultsare merged with key filters that drop__proto__,constructor, andprototype.
See docs/SECURITY.md for the full model.
Docs
docs/USAGE.md — CLI flags, tool recommendations, client config.
docs/GITHUB_ACTIONS.md — reviewer-visible checks and their scope.
docs/W3C_SKILLS.md — document families and their appropriate tools.
docs/EDITORIAL_PRINCIPLES.md — human authority, evidence limits and native-language collaboration.
docs/PROFILES.md — profile and config schema.
docs/SECURITY.md — trust boundaries and guarantees.
docs/AUTHORING_GUIDE.md — LLM authoring guide for W3C / Community Group reports.
Docker
docker build -t respec-mcp:local .
docker run --rm -i -v /path/to/spec-repo:/workspace respec-mcp:localThe image runs as a non-root user and bakes --disable-sandbox into the
ENTRYPOINT so Chromium starts cleanly.
Development
npm install
npm run test:unit # fast, no Puppeteer
npm test # unit + integration (needs Chromium)Provenance
This package was extracted from speced/respec#5168. Thanks to @marcoscaceres for the review that reshaped this into a standalone package, and to the PM-KR Community Group for the real-world report authoring workflow that motivated the design.
License
MIT. Integrates with ReSpec (W3C Software and Document License).
Available Tools
5 toolsrespec_buildBuild ReSpec DocumentC
Renders a ReSpec source file to static HTML using the resolved repo-local profile, writes the output, and returns compliance results.
Inputs: profile, status, overrides, source, +1 more.
respec_list_profilesList ReSpec MCP ProfilesA
Lists repo-local ReSpec MCP profiles discovered from respec-mcp.config.json and respec-mcp/profiles/*.json.
Inputs: no named parameters.
respec_preflightPreflight ReSpec Source (source-only, no render)A
Fast policy checks against the source file without rendering: required sections, required links, forbidden phrases, allowed statuses. Use this before edits to catch policy violations cheaply.
Inputs: profile, status, overrides, source, +1 more.
respec_scaffoldScaffold ReSpec SourceC
Creates a ReSpec source document from a repo-local profile and status-specific template. Paths must stay within the configured repo root.
Inputs: profile, status, overrides, source, +1 more.
respec_validateValidate ReSpec Document (full render, no write)C
Runs ReSpec rendering via Puppeteer and returns render diagnostics plus post-render compliance results. Does not write output.
Inputs: profile, status, overrides, source, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: build renders output, list_profiles discovers profiles, preflight checks policies, scaffold creates source, validate runs diagnostics. No overlap.
All tools follow the consistent pattern 'respec_verb' with snake_case naming (e.g., respec_build, respec_list_profiles).
5 tools is well-scoped for the ReSpec domain, covering creation, checking, building, and validation without unnecessary extras.
The tool surface covers the full lifecycle: source creation (scaffold), policy checks (preflight), rendering (build, validate), and configuration discovery (list_profiles).
Maintenance
Related MCP Connectors
Independent MCP server for the TC39 specs (ECMA-262 + ECMA-402): clauses, search, diffs, history.
MCP server for StyleKit styles, tokens, recipes, lint and repair over stdio or HTTP.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP Server for accessing W3C/WHATWG/IETF web specifications. Provides AI assistants with access to official web standards data including specifications, WebIDL definitions, CSS properties, and HTML elements.1116 npm4MIT

Specifai MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for Specifai project integration and automation with any MCP-compatible AI tool. This server currently exposes tools to read all documents generated by the Specifai project.12 npm13MIT- AlicenseCqualityBmaintenanceAn MCP server implementing Spec-Driven Development workflows for AI-agent CLIs and IDEs like Claude Code and Cursor, enabling spec-first development with automated workflow guidance and quality checks.17112 npm54MIT
- AlicenseAqualityDmaintenanceA comment-based spec-driven development MCP server that facilitates workflows from requirements creation to implementation via AI, using @spec-impl markers.52MIT