specmd-mcp
OfficialThis MCP server provides tools for creating, validating, inspecting, tracing, and black-box analyzing SPEC.md projects, plus a capabilities report and a stub for proposed patches.
create: scaffold a minimal core or core+optional SPEC.md file
validate: run structural conformance and trace-pair validation (with strict, profile, trace, and cognitive options)
inspect: generate a read-only quality/measurement report
blackbox: produce a deterministic black-box contract inventory and optionally export a JSON report
trace_create: generate TRACE.md from the resolved specification set
trace_update: reconcile an existing TRACE.md with the current specification set
validate_pair: perform trace-pair alignment only, without structural findings
propose_patch: stub that always errors because patch generation is not implemented
capabilities: report tool versions, supported standards, commands, and available integrations
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., "@specmd-mcp validate my SPEC.md and show me any conformance failures"
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.
specmd
A CLI for authoring, validating, inspecting, rendering, and tracing SPEC.md documents, implemented per the Specification Set rooted at SPEC.md.
Status: intentionally partial implementation
Implemented:
specmd init— create a minimal Core or Core+Optional SPEC.md.specmd validate— structural conformance + Trace Pair validation, plus the Version Alignment Process (SPEC.md §4.14, PORT-006/007/008): an unresolvable declared standards version always fails asindeterminatewith a proposed-spec-change remediation, never a silent substitution.specmd inspect— read-only quality/measurement report.specmd render— HTML rendering (PDF is not implemented; requesting it returns exit status4). Deliberately does not apply the Version Alignment Process — it makes no conformance claim and always displays the true declared version, whatever it is.specmd trace create/specmd trace update— generate and reconcileTRACE.md; also apply the Version Alignment Process.specmd blackbox— read-only Black-Box Contract inventory. Structural checks (interface-section inventory, named interface-element inventory, actor<->operation cross-reference) are fully deterministic.--cognitive off|auto|required(defaultauto, per the CLI ICD) is negotiated the same wayvalidate/inspectdo. The two genuinely semantic checks (interface I/O facilitation drafting, requirements <->interface cross-mapping) run via Host-Agent Mode (COG-001, SPECMD_CLI_ICD.md section 7.2) — no Direct-Provider Mode exists in this build (no credentials, no outbound network call anywhere on the path), so instead a call with no--cognitive-inputreturns a boundedcognitive_package; the calling agent reasons over it and resupplies the command with--cognitive-input(a file path, or-for stdin) or thecognitive_inputMCP argument. Every requirement-ID citation in that input is checked against IDs this tool already extracted deterministically — an unrecognized citation is dropped and reported (never silently trusted), and the rest of the entry is kept.--exportwrites a JSON report.specmd test— verification-coverage report (covered/uncovered requirement IDs, unreferenced acceptance criteria).--exportwrites a JSON test plan; fields that would require semantic extraction (preconditions/actions/expected outcomes) arenull, never invented.--run-integrationis accepted but returns exit4— no implementation-test integration is configured in this build.specmd adapt <target>— generates a thin adapter (codex,claude-code,cursor,github-copilot). Generation only;--installreturns exit4.specmd standards list|show|verify— reports only the bundled/local evidence this build actually has (Core/Optional0.4.2and0.4.3;0.4.3is the latest);fetchand any network/repository access are not implemented (SPEC.md Open Issue 1, the canonical standards registry, is unresolved). A document declaring any other version is reportedindeterminatewith a proposed-spec-change remediation, never silently validated against a different version.specmd capabilities— reports tool/CLI-ICD/JSON-schema versions, supported standards, every command's availability, and why anything is unavailable.specmd help [topic]— real per-command help (syntax-light: see gap below),--search,--allto include unavailable capabilities. Reads the same static registry (command_metadata.py)capabilitiesdoes.specmd-mcp— an MCP (Model Context Protocol) stdio server exposingcreate/validate/inspect/blackbox/trace_create/trace_update/validate_pair/propose_patch/capabilitiesas MCP tools (MCP-001..005). Hand-rolled protocol, not the official SDK: themcpPyPI package requires Python ≥3.10, and this build targets 3.9, sosrc/specmd/mcp_server.pyimplements the stdio JSON-RPC 2.0 wire protocol directly (pure stdlib, no new dependency). Every tool wraps the same command module the CLI uses and returns the identical JSON envelope.propose_patchis an honest stub — no patch-generation capability exists in this build, so it always returns an error rather than fabricate a diff. Run it asspecmd-mcp(installed entry point) orpython -m specmd.mcp_server.Deterministic-Only Mode by default (
--cognitive off|auto|requiredis negotiated truthfully);blackboxadditionally supports Host-Agent Mode (no Direct-Provider Mode or Reviewer Agent is implemented).
Known gaps, disclosed rather than silently claimed:
specmd --help/-his still argparse's native (low-fidelity) output; it is not made equivalent in information content tospecmd help(the ICD text calls for that equivalence). Usespecmd helpfor the real thing.specmd help's per-command detail doesn't print a full command-syntax grammar line or example invocations (HELP-001/HELP-005) — it lists options/defaults/safety markers instead.blackbox's deterministic checks are ID-, section-presence-, named- interface-element-, and actor-mention-level, not a full trigger/input/output/error/state-effect extraction. The actor-mention check only recognizes one convention (- **Name**: .../- **Name** — ...) and, being text matching rather than semantic understanding, cannot tell a person/system actor from a same-convention data entity — its findings say so explicitly and are reported atinformationseverity rather than asserted as a confident gap. The two checks that need real semantic understanding (interface I/O facilitation drafting, requirements<->interface cross-mapping) run only when the calling agent supplies--cognitive-input(Host-Agent Mode); without it, a call returns acognitive_packageand reports the checks as not yet performed rather than fabricating a result. Citation-verification is mechanical (ID must exist in what was already extracted deterministically) — it cannot verify that the reasoning content itself is correct, only that it isn't inventing IDs. Thecognitive_packagealso excludes Normative Module content (root spec only), which it discloses in-band rather than silently omitting.
Not implemented at all (left TBD/unclaimed in TRACE.md, not
silently assumed): standards fetch and any network access, the Cucumber
connector family, Direct-Provider Mode (PROV-001..009: no credentials, no
outbound network call anywhere in this build), and Reviewer Agents.
Host-Agent Mode is implemented for blackbox only.
Related MCP server: ThinkRail
Core/Optional profile: reconciled against the authoritative standard
The Specification Set this tool implements declares conformance to SPEC.md
Core 0.4.3 and Optional 0.4.3 (its own SPEC.md frontmatter), and the
tool validates documents declaring either 0.4.2 or 0.4.3 — both are
first-class supported versions, not merely tolerated. The structural rules
this build validates against were originally reconstructed from a single
exemplar (this tool's own SPEC.md), because the package this project was
built from did not include the authoritative standard text.
That gap has since been closed. The authoritative standard is published at
SPECmd-app/SPEC.md's
docs/standard/0.4.3.md
and
0.4.3-optional.md
(0.4.2's
core
and
optional
texts remain supported), and
src/specmd/core_profile.py has been
reconciled against that text directly — 0.4.3 was verified by direct diff
against 0.4.2 as a pure editorial PATCH with no behavioral difference. Four
real discrepancies were found and fixed in the original reconciliation
against 0.4.2:
"Specification Contract" is a SHOULD, not a MUST (Core §1) — its absence is now a warning, not a conformance error.
A missing required top-level section is now a warning, not an error — Core §2 lists the eight sections as what "a conforming SPEC.md uses," immediately followed by "Empty subsections MAY be omitted." Read as permitting a genuinely-empty section to be omitted too (a deliberate product decision, since the standard's wording doesn't fully settle it), a document missing one can still be
conforming.Module declarations can use a bare backtick-quoted path, not only a Markdown link — Optional §10's own example uses
- `spec/identity.md`with no link syntax at all.module_resolver.pynow recognizes both forms.optional_featuresis an open, extensible set, not a closed enum — Optional §44 explicitly frames its feature list as a "Suggested... Example." An unlisted feature name is now reported as informational, not a warning.
One figure remains unconfirmed: the 250 lines / 2,500 tokens Core
compactness target appears nowhere in the authoritative Core or Optional
text, or on the standard's own site — it came from this tool's own governing
spec prose. It's kept (still plausibly accurate) but explicitly flagged as
unconfirmed (CORE_COMPACTNESS_PROVENANCE in core_profile.py), separately
from the rest of the now-reconciled profile.
Every validate/inspect/trace create result still cites
core_profile.PROFILE_PROVENANCE explicitly, so this claim is checkable
rather than taken on faith.
License
Development
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/pip install pytest
.venv/bin/pytest.venv/bin/specmd --output-format json validate SPEC.md --trace auto# MCP server: reads/writes newline-delimited JSON-RPC 2.0 on stdio.
.venv/bin/specmd-mcpAvailable Tools
9 toolsblackboxC
Deterministic, outside-in Black-Box Contract inventory. May write a report if 'export' is given.
Inputs: trace, export, root_spec.
capabilitiesARead-only
Report tool version, supported standards, commands, and available integrations.
Inputs: no named parameters.
createC
Create the smallest useful starting SPEC.md (core or core+optional profile).
Inputs: force, output, profile, features.
inspectDRead-only
Read-only quality/measurement report.
Inputs: trace, profile, cognitive, root_spec.
propose_patchARead-only
Request a Proposed Patch. Not implemented in this build (always returns an error).
Inputs: no named parameters.
trace_createC
Generate TRACE.md from the resolved Specification Set.
Inputs: force, output, root_spec, enable_optional.
trace_updateC
Reconcile an existing TRACE.md with the current Specification Set.
Inputs: force, trace, root_spec.
validateCRead-only
Structural conformance check plus Trace Pair validation.
Inputs: trace, strict, profile, cognitive, +1 more.
validate_pairBRead-only
Trace Pair alignment only (narrower than 'validate' — no structural findings).
Inputs: trace, root_spec.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target distinct operations (create, inspect, blackbox, trace_create, trace_update, capabilities). However, 'validate_pair' is explicitly a narrower subset of 'validate', and 'inspect' vs 'blackbox' both produce reports, causing minor confusion. Descriptions clarify the boundaries, but two overlaps remain.
The server mixes single verbs ('create', 'validate', 'inspect') with compound snake_case names ('trace_create', 'validate_pair') and nouns ('blackbox', 'capabilities'). While all lowercase and underscore-separated, the pattern is inconsistent. It is still readable but lacks a predictable verb_noun structure.
Nine tools is well within the ideal 3–15 range for a spec and trace management server. Each tool appears to earn its place, aside from one nonfunctional tool. The count is appropriate and not bloated.
The surface covers creation, validation, inspection, and trace lifecycle, but lacks update/delete operations for the core SPEC.md file. Additionally, 'propose_patch' is not implemented, leaving a planned patch workflow incomplete. These are notable gaps for a complete spec management lifecycle.
Maintenance
Related MCP Connectors
MCP Spec Compliance MCP — audits any MCP server.json against the official Model Context Protocol
Search, inspect and invoke every public tool on Invokera through one MCP connection.
Remote MCP for JSON repair, hashing, formatting, IDs, dates, units, and other small tools.
MCP server for StyleKit styles, tokens, recipes, lint and repair over stdio or HTTP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides a shared MCP SDK wrapper for building MCP servers with stdio transport, tool registration, JSON-safe responses, and environment helpers.39 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables CLI coding agents to read, query, create, update, delete and validate a project's spec graph through seven spec_* tools, so specs act as the ground truth for every piece of work. The tools are exposed over an MCP stdio server that resolves the workspace root from the host session.Apache 2.0

SpectraProbe MCP serverofficial
AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible clients and agents to drive SpectraProbe's static analysis engine over stdio, exposing twelve tools for probing targets, inspecting metadata, strings, dependencies, symbols, imports, resources and JavaScript, searching evidence, creating reports, listing providers and checking analysis status.2MIT- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to perform sandboxed file reads, writes, and listing, inspect credential-masked environment variables, check git status, and execute commands with strict timeouts over a clean stdio JSON-RPC channel.MIT