cb4-mcp

v0.5.0
cb4-mcp Checked 17 hours ago Published 7 days ago

See 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

ParameterTypeDescription
topicstring

overview

Project summary: roots, counts, summary coverage, open change sets, head (outline; format=json)

ParameterTypeDescription
detailstring
formatstring

expand

An entity and its descendants within a char budget; detail falls off with depth; focus_terms keeps matches

ParameterTypeDescription
entity *string
budgetinteger
depthinteger
detailstring
focus_termsarray
formatstring
max_nodesinteger
relationshipsstring

element

One element in full: properties, direct and nested relationships, views, change sets; qualify=true adds verification

ParameterTypeDescription
entity *string
environmentstring
qualifyboolean

locate

Ground around an entity within a char budget: it in full, related entities, each container to the root with peers

ParameterTypeDescription
entity *string
budgetinteger
formatstring
max_peersinteger
max_relationshipsinteger

story

Chronological change sets involving an entity or subtree, with roles and sources (paged)

ParameterTypeDescription
entity *string
beforestring
cursorstring
detailstring
environmentstring
limitinteger
membershipstring
revisionstring
subtreeboolean

changes

List change sets, filterable by disposition, promoted, entity, or source ref (sources and evidence)

ParameterTypeDescription
dispositionstring
entitystring
limitinteger
promotedboolean
sourcestring
source_matchstring

change

One change set with commits and derived verification; include_evidence adds the records

ParameterTypeDescription
change_id *string
environmentstring
include_evidenceboolean
revisionstring

validate

Check a change set against the baseline and ledger without writing

ParameterTypeDescription
change_setobject
change_set_pathstring

propose

Validate and record a change set as proposed (or draft); never touches the model

ParameterTypeDescription
actorstring
change_setobject
change_set_pathstring
draftboolean
expected_headstring

set_disposition

Governance transition for a change set (draft/proposed/accepted/rejected/superseded)

ParameterTypeDescription
change_id *string
to *string
actorstring
expected_headstring
superseded_bystring

promote

Apply an accepted change set to the baseline (the only write into model/); with_dependencies and accept walk a chain

ParameterTypeDescription
change_id *string
acceptboolean
actorstring
expected_headstring
with_dependenciesboolean

record_evidence

Append an evidence record to a change set; verification is derived, then the model is reconciled

ParameterTypeDescription
change_id *string
evidence *object
actorstring
expected_headstring

reconcile

Apply verified deferred operations and refresh status tags in the committed model (idempotent)

ParameterTypeDescription
actorstring
expected_headstring

project

Candidate projection of change sets on the baseline (nothing written); render dsl, html or png

ParameterTypeDescription
changes *array
baseline_revisionstring
highlightboolean
out_dirstring
renderstring
viewsarray

qualify

Committed baseline annotated per entity with derived verification (by environment, revision)

ParameterTypeDescription
detailstring
environmentstring
out_dirstring
renderstring
revisionstring
viewsarray

render

Render the committed baseline for people: html (interactive site, default), png, or dsl

ParameterTypeDescription
formatstring
out_dirstring
revisionstring
viewsarray

releases

Deployment timeline per environment, and the released baseline (model at the latest passing deployment)

ParameterTypeDescription
atstring
detailstring
environmentstring

bootstrap

Adopt a system: init an empty model repo, or adopt an existing LikeC4 model as inferred baseline (help adopt)

ParameterTypeDescription
mode *string
actorstring
kindsarray
namestring
relationship_kindsarray
tagsarray