Skip to content

Write tools

These 15 tools need a Workspace checkout (archidocs mcp --workspace <dir>), not a published Workspace Bundle; over HTTP they also need --allow-writes. The ones that edit the YAML keep its comments and formatting, and return a unified diff.

A write that would add a check error is refused with validation_failed and the issues, each with a link to its rule’s page.

Tool What it does
check Validate the Workspace as it is on disk, as archidocs check does, and return its issues.
upsert_element Adds an Element, or updates the fields of an existing one, in its Project’s YAML; comments and formatting are kept.
upsert_relationship Adds a Relationship from a consumer Element in this Project to its provider, or updates one, under the consumer’s relationships; comments and formatting are kept.
remove_element Removes an Element and the Relationships declared under it.
remove_relationship Removes one Relationship, named by (from, to) plus id if given.
upsert_target Adds a Deployment Target, or updates the fields of an existing one (name, kind, description, owner, tags, links); comments and formatting are kept.
remove_target Removes a Deployment Target.
upsert_deployment Adds a Deployment, or updates the fields (url, endpoints, instances) of the one its (service, environment, target) triple names, in this Project’s YAML; comments and formatting are kept.
remove_deployment Removes the Deployment its (service, environment, target) triple names from this Project’s YAML.
upsert_team Adds a Team to workspace.yaml, or updates the fields (name, description, links) of an existing one; comments and formatting are kept.
upsert_environment Adds an Environment to workspace.yaml, or updates the fields (name, description) of an existing one; comments and formatting are kept.
upsert_view Adds a Saved View to a Project’s YAML, or replaces an existing one’s definition; comments on keys left unchanged are kept.
remove_view Removes a Saved View from its Project’s YAML.
propose_adr Writes a Proposed ADR to <project>/adr/NNNN-slug.md, taking the next free number in the Project, with status: proposed and today’s date.
create_project Writes a new Project’s project.yaml into folder (relative to the Workspace root; <id>/ by default).

Check the Workspace: its input, output and an example.

Add or update an Element: its input, output and an example.

Add or update a Relationship: its input, output and an example.

Remove an Element, destructive: its input, output and an example.

Remove a Relationship, destructive: its input, output and an example.

Add or update a Deployment Target: its input, output and an example.

Remove a Deployment Target, destructive: its input, output and an example.

Add or update a Deployment: its input, output and an example.

Remove a Deployment, destructive: its input, output and an example.

Add or update a Team: its input, output and an example.

Add or update an Environment: its input, output and an example.

Add or update a Saved View: its input, output and an example.

Remove a Saved View, destructive: its input, output and an example.

Propose an ADR: its input, output and an example.

Create a Project: its input, output and an example.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.