Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command line

claims-mcp [--catalog PATH] [SUBCOMMAND]

Without a subcommand, claims-mcp runs the MCP server on stdio. MCP clients such as Claude Code normally start it.

OptionEnvDefaultMeaning
--catalogCLAIMS_CATALOGclaims.jsonCatalog file; created on first write
RUST_LOGwarnLog filter; logs go to stderr

The catalog is re-read on every call and written atomically (temporary file, fsync, rename) under an exclusive lock on .<name>.lock. Git checkouts and several server instances sharing one file are safe. Add .<name>.lock and .<name>.tmp to .gitignore.

Subcommands

The subcommands are for people and CI; agents use the MCP tools.

SubcommandPurposeExit code
(none)Run the MCP server on stdio
verify [--json]Check every integrity seal1 if any check fails
tldr [--limit N] [--json]Print the ranked next steps; --json matches the next_steps tool0 whenever the catalog can be read
recheck [--json]Compare every anchor with HEAD; --json matches the recheck tool. See Recheck1 if any anchor is not current
rebase --onto FILE --base FILE [--json]Replay the records this branch added since --base onto --onto (such as main’s ledger) under new ids, rewrite --catalog, and print the old-to-new ids. See Branches that both write the ledger1 if it refuses, with nothing changed
seal --adoptSeal unsealed records once, to migrate a catalog; maintainers only
report init [DIR]Write the PDF report template and a notes file to DIR (default report)
schema [--versioned]Print the catalog JSON Schema; --versioned uses its pinned URL as $id

--catalog is global, so it can go before or after the subcommand. In the MCP server it is the default ledger: a tool call can name another with its catalog parameter.