DocsMcp

MCP Server & Claude Code Plugin

Quelltest ships a local MCP server inside the pip package. Claude Code, Claude Desktop, Cursor, or any MCP client spawns it over stdio and operates Quelltest directly — no terminal, no cloud, no network. Nothing leaves your machine.

This is different from the Claude.ai connector: the connector serves synced readiness reports to Claude.ai; the MCP server lets an agent run Quelltest against the repo it is working in.

Setup in 2 steps

Step 1 — Install the MCP extra

pip install "quelltest[mcp]"

Step 2 — Register the server

Add to your project's .mcp.json (Claude Code reads this automatically):

{
  "mcpServers": {
    "quelltest": { "command": "quelltest-mcp" }
  }
}

That's it. Ask Claude to "find untested edge cases in this project" and it will call the tools directly.

The 5 tools

ToolWhat it does
find_edge_cases(path, sources?)Scan for documented requirements with no test. Read-only. Returns the gap list with file and line locations.
write_verified_tests(path)Generate a pytest test per gap, verify each through all 5 gates, write only proven tests to disk.
get_prs_score()Project Production Readiness Score (0–100) with tier and per-file breakdown.
prove_file(file, function?)Coverage ratio for one file, optionally narrowed to one function.
reproduce_bug(description, file?)Turn a natural-language bug description into a verified failing test.

Every tool returns structured JSON and never raises — errors come back as {"error": "..."} so the agent can react.

Claude Code plugin

The plugin bundles a skill that teaches Claude the daily workflows — when to scan, how to read the three buckets, what to do with FLAGGED items:

/plugin marketplace add quelltest/quelltest-lib
/plugin install quelltest@quelltest

Then use slash commands or just ask in plain English:

/quelltest find src/
/quelltest fix src/payments/
/quelltest score
/quelltest reproduce "payment accepts zero amount"

Workflows the skill runs proactively:

  1. After editing a Python file — scan it for new gaps, offer to fix.
  2. Before a commit or PR — check the PRS, fix the worst files first.
  3. When you report a bug — reproduce it as a verified failing test.
  4. When FLAGGED items block coverage — refactor for testability, re-run.

Privacy

The local MCP server makes zero network calls. It runs over stdio on your machine; source code, test bodies, and results stay in the repo. There is no telemetry. (The Claude.ai connector is separate, opt-in, and transmits sanitized metrics only.)

Other agents

Any MCP client works — Cursor, Claude Desktop, Devin, or your own agent via the MCP SDK:

quelltest-mcp              # stdio server, spawned by the client
python -m quell.mcp_server # equivalent
quell mcp                  # CLI alias

Troubleshooting

"mcp package is required" — install the extra: pip install "quelltest[mcp]".

Tools don't appear in Claude Code — check .mcp.json is at the project root and restart the session; claude mcp list should show quelltest.

Tests aren't written — that's the pipeline working: a test that fails any of the 5 gates (including Gate 5's violation injection) is discarded, never written. Check find_edge_cases output for SCAFFOLDED/FLAGGED reasons.