Skip to main content
MCP server CX Codex

Rebuild Dossier — Claude Code MCP server: rebuild specs

Rebuild Dossier inspects an existing app and creates a specification with contracts and tests for a coding agent to follow. Use it when a rebuild needs explicit behavioral checks instead of guesses.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add rebuild-dossier -- npx -y rebuild-dossier
Open on GitHub

What Rebuild Dossier does

Rebuild Dossier examines an application's routes, package metadata, build configuration, and existing tests through static analysis. It then gathers uncertain cases for a developer to resolve before producing the rebuild materials. Site inspection uses Playwright, while the initial repository scan runs without an LLM call.

Once every open case has been resolved, the server creates a sibling <repo>-rebuild/ directory containing CLAUDE.md, .claude/rules/, hook settings, contract documents, and test suites. It also runs mutation checks by deliberately changing the original code and checking whether the generated tests catch those changes. The server does not recreate the application itself; a separate coding-agent session consumes the generated materials.

Node 20.12+ is required. The crawl_site tool also needs Chromium installed with npx playwright install chromium. Generated guard hooks block edits to spec/ and contracts that lack test coverage. Shell-command parsing remains heuristic, so writes delegated to a script previously created by the agent can bypass that detection.

What it helps with

  • Derive a rebuild specification from an existing codebase
  • Collect unresolved questions about application behavior
  • Generate contracts and tests for a separate rebuild run
  • Check whether generated tests catch deliberate code mutations
  • Prevent edits to locked specifications and untested contracts

Example prompts for the agent

  • Inspect /path/to/some-app and collect the unresolved behavior questions before rebuilding it.
  • Show me the open case queue for /path/to/some-app so I can decide how each case should work.
  • Generate the rebuild specification for /path/to/some-app after all cases have been resolved.

How to install Rebuild Dossier

Platform CLI

claude mcp add rebuild-dossier -- npx -y rebuild-dossier

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Rebuild Dossier

How do I install Rebuild Dossier in Claude Code?

Run claude mcp add rebuild-dossier -- npx -y rebuild-dossier. To use crawl_site, install Chromium separately with npx playwright install chromium.

What does Rebuild Dossier do?

It inspects an existing application, collects decisions about ambiguous behavior, and creates a specification, contracts, and tests for another coding-agent session. It does not rebuild the application itself.

Why does Rebuild Dossier use mutation testing?

It deliberately alters the original code to see whether generated tests detect the resulting faults. Tests that fail to catch a mutation are downgraded.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor