# Rebuild Dossier

> Rebuild Dossier is an open-source MCP server for developer tools. Turns an existing app into a locked rebuild spec and tested contracts for a coding agent. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/parker-fawcett/rebuild-dossier
- **MCP Registry name:** com.parkerfawcett/rebuild-dossier
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-15

## About

Rebuild Dossier does not rebuild an app. It produces the spec, contracts and tests that a coding agent uses to do the rebuild separately. The README motivates this with a control experiment: a trivial stub that always returned HTTP 200 passed 20 visible and 12 held-out test files but matched none of 77 behavioural checks, which the author says is a constructed control on one application, not a claim about how often agents fail.

The workflow starts with ingest_repo, which is static analysis only with no LLM call and no execution of your code. An ambiguity queue then surfaces open questions through get_case_queue and resolve_case, with flag_known_bug always overriding auto-resolution. A key rule says an ambiguity is auto-resolved only when signals agree and someone has actually stated a decision, such as a comment or a TODO admitting a bug. generate_spec writes CLAUDE.md, rules, hooks, contracts, visible and held-out tests and a kickoff prompt into a sibling folder, after mutation-checking the tests.

Generated hooks block writes under spec/. crawl_site needs Chromium installed separately. It requires Node 20.12 or later.

## Features

- **Static repo ingest:** ingest_repo reads routes, config and tests without running code or calling an LLM.
- **Ambiguity queue:** Open questions are surfaced for explicit decisions rather than auto-resolved.
- **Known bug flags:** flag_known_bug records bugs in free text that always override auto-resolution.
- **Site crawling:** crawl_site crawls reachable routes with headless Playwright.
- **Mutation-tested spec:** generate_spec checks that each generated test catches a deliberate break.
- **Enforced guard rails:** Generated hooks block writes to the locked spec folder.

## Good for

- Prepare a clean spec before migrating an app to a new stack
- Find undocumented behaviour in a legacy repo
- Give a coding agent contracts and tests instead of guesses
- Record known bugs so they are not rebuilt as features

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "rebuild-dossier": {
      "command": "npx",
      "args": [
        "-y",
        "rebuild-dossier"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "rebuild-dossier": {
      "command": "npx",
      "args": [
        "-y",
        "rebuild-dossier"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "rebuild-dossier": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "rebuild-dossier"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "rebuild-dossier": {
      "command": "npx",
      "args": [
        "-y",
        "rebuild-dossier"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "rebuild-dossier": {
      "command": "npx",
      "args": [
        "-y",
        "rebuild-dossier"
      ]
    }
  }
}
```

## Tools

- `ingest_repo`: Static analysis of routes, package.json, build config and tests.
- `crawl_site`: Headless Playwright crawl of reachable routes.
- `flag_known_bug`: Stores a free-text known bug that overrides auto-resolve.
- `get_case_queue`: Returns the ambiguity queue.
- `resolve_case`: Resolves a queued case with a decision.
- `generate_spec`: Writes the locked spec, rules, hooks and tests once the queue is empty.

## FAQ

### Does Rebuild Dossier rebuild the app?

No. It produces the spec, contracts and tests for a coding agent to use separately.

### What does Rebuild Dossier need?

Node 20.12 or later; crawl_site also needs Chromium.

### Where is the output written?

To a clean sibling folder named after the repo with a rebuild suffix, never into the original repo.

### How do I install Rebuild Dossier?

Run npx rebuild-dossier@latest or add it to Claude Code with claude mcp add.

### Is Rebuild Dossier free?

Yes. Rebuild Dossier is open source, so you can use and self-host it for free.

### How do I add Rebuild Dossier to Claude Code?

Run this command in your terminal: claude mcp add rebuild-dossier -- npx -y rebuild-dossier

### What are the best alternatives to Rebuild Dossier?

The closest alternatives to Rebuild Dossier are Repo Test Architect, SDD Vault, Echoproof, Bloch and Ai Architect MCP Spec.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Repo Test Architect](https://ai-powered.com/mcp/repo-test-architect): Repo Test Architect is an open-source MCP server for developer tools.
- [SDD Vault](https://ai-powered.com/mcp/sdd-vault): SDD Vault is a freemium MCP server for security.
- [Echoproof](https://ai-powered.com/mcp/echoproof): Echoproof is an open-source MCP server for developer tools.
- [Bloch](https://ai-powered.com/mcp/bloch): Bloch is an open-source MCP server for developer tools.
- [Ai Architect MCP Spec](https://ai-powered.com/mcp/ai-architect-mcp-spec): Ai Architect MCP Spec is an open-source MCP server for developer tools.
- [briefd](https://ai-powered.com/mcp/briefd): briefd is an open-source MCP server for knowledge and memory.
- [Repowise](https://ai-powered.com/mcp/repowise): Repowise is a freemium MCP server for developer tools.
- [Argus — Testing for Coding Agents](https://ai-powered.com/mcp/argus-testing-for-coding-agents): Argus — Testing for Coding Agents is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/rebuild-dossier
