How to drive Evolith Core across its three surfaces — CLI (evolith …), MCP
(evolith-* tools), and REST (/api/v1/…).
Written for a person learning to use Evolith Core: each command/tool/endpoint explained in prose, with its options, examples from simple to advanced, and common combinations.
- Usando la CLI — the 25 CLI commands and subcommands.
- Usando MCP — the 50
evolith-*tools, for agents. - Usando la API REST — the 27 endpoints, for integrators / the Tracker.
A machine-derived cross-reference — the same operation on all three surfaces, with its real captured response — organized by SDLC phase. Kept drift-proof by a CI check (see below). Use it to look up an operation's exact request/response across surfaces; use the readable guides above to learn.
| Layer | File pattern | Nature | Answers |
|---|---|---|---|
| Reference catalog | how-to-<phase>.md |
Generated | "What is operation X, on each surface — its options, a worked request, and the real response?" |
| Phase playbook | playbook-<phase>.md |
Curated | "How do I work this phase — what do I run, in what order, and what do I expect?" |
The playbook is the narrative journey; it links into the catalog for the exact command/options/examples. The catalog is the dictionary.
The catalog is derived from the certified source of truth, never hand-written:
reference/core/control-center/audits/surface-parity-matrix.json— which operations exist and on which surfaces.src/tests/exploration/bindings.ts— the exact CLI/MCP/REST request the conformance tester executes for each operation.src/tests/exploration/.out/howto-capture.json— each MCP tool's liveinputSchemaand the real ADR-0073 response envelope every surface returned (emitted by the exploration test run).- The
@Option(CLI) and@ApiProperty(REST) decorators — the flag/field tables.
A conformance test (exploration.spec.ts → "the generated interface how-to docs
are up to date") regenerates the docs and fails CI if the committed files
diverge from the source of truth. So a documented invocation is, by
construction, one that actually runs and returns what it says.
- CLI — the reference surface; every command emits an ADR-0073 envelope with
--format jsonand exits non-zero on a failing verdict. - MCP — full parity with the CLI for agent-invokable actions (filesystem/
scaffolding included); mutative tools require
{ apply, approvalToken }. - REST — the middleware the Evolith Tracker consumes; exposes the Core's stateless evaluation commands + data behind a global envelope.
npm run test:exploration # boots the 3 surfaces, captures schemas + responses
npx ts-node --transpile-only \
--project src/tests/exploration/tsconfig.json \
src/tests/exploration/gen-howto.ts all- Discovery · playbook: pending
- Design · playbook: pending
- Construction · playbook
- QA · playbook: pending
- Release · playbook: pending