product-cli is a Rust CLI and MCP server for the Product Framework, letting an agent author and verify a software system's What/How graph as YAML/Turtle files.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Product Cli.
A CLI and MCP server for the Product Framework — specify software as a verifiable What/How graph.
The Product Framework is an open standard for describing a software product as one connected, machine-readable graph: the What (domain model + event model — entities, commands, events, read models, UI steps typed against Abstract Interaction Objects, systems, triggers, Deciders, Projectors), the How (contracts, the screen-composition / reification model, delivery features), and the typed links between them. The graph can drive generation, gate verification, and explain itself — so "describe this system" is a query, not a stale document.
This repo is the reference tooling: a single Rust binary (product) plus an MCP
server that lets an agent author and verify the graph directly. No database, no
service — the graph lives as YAML/Turtle under .product/.
The binary ships with the What→How→Build Claude Code skills baked in.
product init writes them into .claude/skills/ of the new repo (pass
--no-skills to opt out); product skills install (re)installs them, and
product skills install --global puts them in ~/.claude/skills/ for every
project. Start a fresh Claude Code session to pick them up, then /product-session.
product session start (and product author domain) host the What→How→Build
session in an agent CLI — Claude Code or GitHub Copilot CLI. The CLI is
resolved in this order:
--cli claude|copilot flag, else[author].cli in .product/config.toml, else$XDG_CONFIG_HOME/product/config.toml
(or ~/.config/product/config.toml), elseclaude.Scaffold it on a new repo with product init --cli copilot, or set a personal
default for every repo by putting the same [author] block in
~/.config/product/config.toml. With a default configured, product session start needs no --cli flag.
product domain … captures the domain + event model; product decider … (§3.3) and product projector … (§3.4) make behaviour and read
models executable; product primitive … (§3.5) names irreducible algorithms.product how, product feature, product build, product seam,
product preview cover the How contract, delivery features, the screen seam, and
the §11/§12 design-system / content-store preview profiles.product domain export).product mcp --http starts the MCP server (framework tools: product_domain_*,
product_decider_*, product_projector_*, …) and serves a live web view at /
that renders the active What graph across three connected views — Systems
(the product → systems & journeys map, §3.0), Domain (one bounded context as
an ER graph, §3.1), and Flows (a system's event-model as Event-Modeling
swimlanes — triggers / commands / views over per-aggregate event streams, §3.2).
A node detail panel, the What→How→Build phase stepper, dark/light theme and live
SSE refresh round it out.
The workspace also ships ddd (crates ddd-core, ddd-lsp, ddd-mcp,
ddd-cli), a separate tool over a separate store: a repo-local .ddd/ graph
of predicates, closure claims, decisions, analyzer/linter manifests, pattern
instances, seam declarations, and interception event rows
(spec, umbrella PRD, formats: migrations).
ddd what treats the .product/ What graph as a third governed surface
alongside C# and Bicep. It needs no language server: product-core already
owns the What as typed data, so the adapter reads kinds and containers
straight off DomainGraph and runs them through the same policy-table
mechanism (ddd-core/src/surface.rs, shared with the LSP adapters).
Two kinds of row. Boundary kinds are surface whatever they connect to: a system (§3.2.5), a context mapping (§3.1), a journey crossing (§3.0.1), a quality demand (§3.6). Published kinds are surface only when a §3.2.0 Translation carries them — the View a Translation watches, the Command it issues, and the Events that View projects. Everything else is internal to its own system and never demands a declaration.
That published/internal split is the What's analogue of C# visibility, and it
is load-bearing: the first table called every event and command a boundary,
which the measurement in DDD-what-02 killed (0 of 39 crossed anything). See
dec/ddd/what-published-qualifier.
A boundary counts as governed when a seam declaration's contract_location
is what:<element-id>. --strict turns it into a CI gate; the default
reports without failing, so the table can be calibrated against a real graph
first.
ddd serve exposes the ddd_* tool namespace over stdio: LSP-backed
language intelligence for C# (roslyn-language-server --stdio --autoLoadProjects, the official prerelease .NET global tool) and Bicep
(bicep-ls from Azure.Bicep.LangServer) — find_symbol, references,
hover, diagnostics (joined to the manifests by rule id, the same join the
SARIF path uses), signature, rename (computes; application funnels
through the interceptor) — plus the governance tools why, graph_query,
declare_seam, declare_pattern, accept_risk.
The three declare/accept tools take amend: true to revise an entry
already filed. The flag is explicit in both directions — a create never
silently overwrites, an amend never silently creates — and the split is by
field: judgement amends (verdict_knowledge, obligation answers, rationale),
while identity and LSP-derived evidence (contract_location, metadata) are
carried forward untouched, so the interception rows stay machine-authored.
ddd_apply_edit runs every edit through the per-language contract-surface
classifier (policy tables, PRD §9): non-surface edits apply; a surface edit
applies only with a matching same-session declaration; otherwise it is
rejected with a structured demand whose facts (symbol, kind, signature,
visibility, reference count) are pre-filled and whose judgment fields are
blank (dec/ddd/rejection-facts-prefilled). Modes: intercept: enforce | warn | off, per artifact class via intercept_by_class (config format 3);
adapter.csharp.internal_is_surface flips the library-repo posture
(dec/ddd/internal-not-surface). Every classified surface outcome lands as a
row under .ddd/seams/events/ — the correspondence dataset. Hosts are
spawned lazily, health-checked, and respawned on crash; while Roslyn loads
the solution, tools return an explicit {"status": "loading"} rather than
hanging. CI runs against a fixture-grade mock host
(dec/ddd/fixtures-not-sdk); set DDD_LSP_E2E=1 with both tools on PATH to
run the gated real-host suites.
ddd diff compares the manifests under .ddd/manifest/ against two detected
sources per language and reports UNGOVERNED (detected, no manifest entry),
STALE (manifest entry, absent from config and emissions), and
UNCITED_SUPPRESSION (a config or in-source suppression with no
risk-acceptance record):
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/product-cli)<a href="https://allmcps.com/mcp/product-cli"><img src="https://allmcps.com/api/badge/product-cli?style=directory" alt="Product Cli on AllMCPs" /></a>