cb4-mcp
v0.5.0See changes to your architecture before and as you build them: an MCP server and CLI that lets coding agents model a system as C4 (LikeC4), propose and review…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
help
Documentation by topic; no topic lists topics
| Parameter | Type | Description |
|---|---|---|
topic | string |
overview
Project summary: roots, counts, summary coverage, open change sets, head (outline; format=json)
| Parameter | Type | Description |
|---|---|---|
detail | string | |
format | string |
search
Find elements by id, title, kind, technology, summary, description, tag or metadata, ranked; under= scopes
| Parameter | Type | Description |
|---|---|---|
query * | string | |
budget | integer | |
detail | string | |
format | string | |
kinds | array | |
limit | integer | |
metadata | object | |
tags | array | |
under | string |
expand
An entity and its descendants within a char budget; detail falls off with depth; focus_terms keeps matches
| Parameter | Type | Description |
|---|---|---|
entity * | string | |
budget | integer | |
depth | integer | |
detail | string | |
focus_terms | array | |
format | string | |
max_nodes | integer | |
relationships | string |
element
One element in full: properties, direct and nested relationships, views, change sets; qualify=true adds verification
| Parameter | Type | Description |
|---|---|---|
entity * | string | |
environment | string | |
qualify | boolean |
locate
Ground around an entity within a char budget: it in full, related entities, each container to the root with peers
| Parameter | Type | Description |
|---|---|---|
entity * | string | |
budget | integer | |
format | string | |
max_peers | integer | |
max_relationships | integer |
story
Chronological change sets involving an entity or subtree, with roles and sources (paged)
| Parameter | Type | Description |
|---|---|---|
entity * | string | |
before | string | |
cursor | string | |
detail | string | |
environment | string | |
limit | integer | |
membership | string | |
revision | string | |
subtree | boolean |
changes
List change sets, filterable by disposition, promoted, entity, or source ref (sources and evidence)
| Parameter | Type | Description |
|---|---|---|
disposition | string | |
entity | string | |
limit | integer | |
promoted | boolean | |
source | string | |
source_match | string |
change
One change set with commits and derived verification; include_evidence adds the records
| Parameter | Type | Description |
|---|---|---|
change_id * | string | |
environment | string | |
include_evidence | boolean | |
revision | string |
validate
Check a change set against the baseline and ledger without writing
| Parameter | Type | Description |
|---|---|---|
change_set | object | |
change_set_path | string |
propose
Validate and record a change set as proposed (or draft); never touches the model
| Parameter | Type | Description |
|---|---|---|
actor | string | |
change_set | object | |
change_set_path | string | |
draft | boolean | |
expected_head | string |
set_disposition
Governance transition for a change set (draft/proposed/accepted/rejected/superseded)
| Parameter | Type | Description |
|---|---|---|
change_id * | string | |
to * | string | |
actor | string | |
expected_head | string | |
superseded_by | string |
promote
Apply an accepted change set to the baseline (the only write into model/); with_dependencies and accept walk a chain
| Parameter | Type | Description |
|---|---|---|
change_id * | string | |
accept | boolean | |
actor | string | |
expected_head | string | |
with_dependencies | boolean |
record_evidence
Append an evidence record to a change set; verification is derived, then the model is reconciled
| Parameter | Type | Description |
|---|---|---|
change_id * | string | |
evidence * | object | |
actor | string | |
expected_head | string |
reconcile
Apply verified deferred operations and refresh status tags in the committed model (idempotent)
| Parameter | Type | Description |
|---|---|---|
actor | string | |
expected_head | string |
project
Candidate projection of change sets on the baseline (nothing written); render dsl, html or png
| Parameter | Type | Description |
|---|---|---|
changes * | array | |
baseline_revision | string | |
highlight | boolean | |
out_dir | string | |
render | string | |
views | array |
qualify
Committed baseline annotated per entity with derived verification (by environment, revision)
| Parameter | Type | Description |
|---|---|---|
detail | string | |
environment | string | |
out_dir | string | |
render | string | |
revision | string | |
views | array |
render
Render the committed baseline for people: html (interactive site, default), png, or dsl
| Parameter | Type | Description |
|---|---|---|
format | string | |
out_dir | string | |
revision | string | |
views | array |
releases
Deployment timeline per environment, and the released baseline (model at the latest passing deployment)
| Parameter | Type | Description |
|---|---|---|
at | string | |
detail | string | |
environment | string |
bootstrap
Adopt a system: init an empty model repo, or adopt an existing LikeC4 model as inferred baseline (help adopt)
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
actor | string | |
kinds | array | |
name | string | |
relationship_kinds | array | |
tags | array |