Rebuild Dossier logo

Rebuild Dossier

Reverse-engineers an existing app into a reviewed rebuild spec, contracts, tests, and agent handoff files.

Install Rebuild Dossier

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "rebuild-dossier": {
      "command": "npx",
      "args": [
        "-y",
        "rebuild-dossier@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio rebuild-dossier -- npx -y rebuild-dossier@latest

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 6 tools correctly ().

Overview

Rebuild Dossier MCP server analyzes an existing application, crawls its reachable pages, and turns observed behavior and source structure into a rebuild dossier. It combines static repository analysis, Playwright capture, known-bug overrides, and a human-resolved ambiguity queue before generating files for a separate coding-agent rebuild. Reach for it when behavioral fidelity matters more than merely making visible tests pass. The generated output is placed in a sibling directory and does not rebuild or modify the original application.

Use cases

  • Reverse-engineer an application before handing it to a coding agent
  • Capture reachable routes and compare behavior with repository evidence
  • Surface ambiguous requirements for explicit human decisions
  • Generate mutation-checked contracts and tests for a rebuild
  • Record known bugs that should override inferred behavior

Key features

  • Static repository analysis without an LLM call
  • Playwright route crawling with progress notifications
  • Human-resolved ambiguity queue
  • Known-bug precedence during reconciliation
  • Mutation-checked generated tests
  • Optional Groq vision-assisted page classification

Tools6

What Rebuild Dossier lets your agent do. Expand a tool for its parameters.

Verified live~1.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 89d

What it can do

From the 6 tools this server returned when we ran it; 6 declare their own safety hints.

Can delete or modify data · 3Makes changes · 6Handles credentials · 1Makes network requests · 2
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceSigned build
Package age90 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · rebuild-dossier@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads378Package downloads in the last 30 days.
Last commit25d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed6Callable tools this server registers over MCP.

How Rebuild Dossier works

What Rebuild Dossier does

Rebuild Dossier turns an existing application into a structured handoff for a coding agent. Its output includes a CLAUDE.md brief, Claude configuration, contract documents, visible and held-out tests, and a kickoff prompt. The generated material records interface behavior and unresolved decisions so a fresh agent can implement against an agreed specification instead of inferring requirements from scattered evidence.

The server is deliberately limited to preparing the rebuild. It does not implement the application itself, and it writes the result to a clean <repo>-rebuild/ sibling directory rather than the source repository.

How it works

The workflow starts with static inspection of the target repository. Source files are parsed without executing the app, and the analysis covers package metadata, build configuration, route files, existing tests, and structural patterns that may indicate a behavioral ambiguity.

A browser phase can then use Playwright to visit reachable routes. The crawl reports periodic progress notifications, which helps clients distinguish a long-running crawl from an unresponsive operation. Authentication-gated pages can be reached by supplying an authentication storage-state path when capturing the site.

Evidence is reconciled into cases that require a decision. Known bugs can be recorded as authoritative overrides, while other questions remain in the case queue until resolved. Automatic resolution requires both agreeing signals and evidence that someone intentionally chose the behavior; silent agreement alone becomes a question. Once all cases are closed, generation can proceed. Before finalizing the test suite, the workflow performs a mutation check by deliberately breaking the original code and checking whether the generated tests detect the changes.

Setup and configuration

Install the npm package with npx rebuild-dossier@latest --help or install it globally with npm install -g rebuild-dossier. Running from source requires cloning the repository, installing dependencies, and starting it with npm start. Node.js 20.12 or newer is required.

For Claude Code, register the server with:

Terminal
claude mcp add rebuild-dossier -- npx -y rebuild-dossier@latest

The initial ingest_repo call needs no browser, Chromium, or language-model configuration. Site crawling requires Chromium, which can be installed with npx playwright install chromium.

For optional vision-assisted classification of pages in a Next.js application with page routes, set GROQ_API_KEY and REBUILD_DOSSIER_ENABLE_VISION_CLASSIFICATION=1 before calling generate_spec. This sends captured screenshots and source code to Groq to help distinguish static from dynamic content. The feature is disabled unless enabled and configured.

Tools and capabilities

  • ingest_repo extracts repository structure, routes, configuration, tests, and structural ambiguity signals through static analysis.
  • crawl_site uses a headless Playwright browser to capture reachable routes and emit progress notifications.
  • flag_known_bug stores a bug description and gives matching cases precedence over automatic resolution.
  • get_case_queue lists unresolved ambiguity cases; clients with MCP elicitation can use that interaction mode.
  • resolve_case records a human decision for an individual open case and remains available without elicitation support.
  • generate_spec creates the rebuild dossier only after the ambiguity queue is empty. Generated guard hooks lock specification files and prevent work on contracts that lack tests.

Limitations and notes

The original application is not rebuilt by this server. A coding agent must consume the generated files and perform that implementation separately. Browser crawling also depends on Chromium being installed locally.

Generated enforcement covers common direct tools and write-shaped shell commands, but shell parsing is heuristic. A write performed through a script that the agent created earlier can bypass those parsing rules. Vision classification is optional, requires Groq credentials, and is intended for the specified Next.js page-route scenario rather than being a default part of every run.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Rebuild Dossier

Rebuild Dossier is an MCP server that connects to an existing application repository and its reachable web routes. Its main tools ingest source structure, crawl pages with Playwright, flag known bugs, manage ambiguity decisions, and generate a rebuild specification with contracts, tests, Claude configuration, and a kickoff prompt.

Install it with `npx rebuild-dossier@latest` or globally with `npm install -g rebuild-dossier`. It requires Node.js 20.12 or newer. From source, clone the repository, run `npm install`, and start it with `npm start`, then register the command as an MCP server.

Resolve every case returned by `get_case_queue` before calling `generate_spec`. Start with `ingest_repo`, optionally crawl the application, record known bugs, resolve open cases, and then generate the output. The server writes the dossier to a clean `<repo>-rebuild/` sibling directory.

Yes, Rebuild Dossier can be registered with Claude Code using `claude mcp add rebuild-dossier -- npx -y rebuild-dossier@latest`. Its generated kickoff prompt is intended for a fresh Claude Code session with only the generated rebuild directory in scope.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRebuild Dossier AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/rebuild-dossier?style=directory)](https://allmcps.com/mcp/rebuild-dossier)
HTML Embed
<a href="https://allmcps.com/mcp/rebuild-dossier"><img src="https://allmcps.com/api/badge/rebuild-dossier?style=directory" alt="Rebuild Dossier on AllMCPs" /></a>