Rebuild Dossier
Turns an existing app into a locked rebuild spec and tested contracts for a coding agent
Rebuild Dossier is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- Version
- 0.2.15
- Listing updated
Similar MCP servers
Install
Run in a terminal
claude mcp add rebuild-dossier -- npx -y rebuild-dossierAdd to claude_desktop_config.json
{
"mcpServers": {
"rebuild-dossier": {
"command": "npx",
"args": [
"-y",
"rebuild-dossier"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"rebuild-dossier": {
"command": "npx",
"args": [
"-y",
"rebuild-dossier"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"rebuild-dossier": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"rebuild-dossier"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"rebuild-dossier": {
"command": "npx",
"args": [
"-y",
"rebuild-dossier"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"rebuild-dossier": {
"command": "npx",
"args": [
"-y",
"rebuild-dossier"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
About Rebuild Dossier
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.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
- 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.
What it does
- 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
Pricing
Open source
Free on npm
Rebuild Dossier 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.