Skip to content

Bootstrap a Project from code

An existing system has its architecture in its code: Dockerfiles, Kubernetes manifests, Terraform, HTTP clients, connection strings and topic names. A coding agent connected over MCP can read it and declare a whole Project in one pass, with you approving what it found before it writes anything.

  • The agent can read the code, and has the Archidocs MCP server over a writable Workspace checkout. See Connect an agent over MCP.
  • The Team that will own the Project and the Environments it runs in exist in workspace.yaml, or you are ready to add them.

Start the agent in the code repo and name the Project:

Bootstrap the Archidocs Project "orders" for the Orders Team from this repo.

The skill sends it to the bootstrap topic, which it follows from here.

The agent reads the code and shows a table of what it found, each row with its evidence (file and line) and its confidence:

  • Services and datastores, from Dockerfiles, compose files, manifests and CI deploy steps;
  • Components, the parts of a Service people talk about by name;
  • outbound Relationships, from HTTP and gRPC clients, connection strings and broker topics;
  • Deployment Targets and Deployments, with their URLs per Environment.

It asks only what code can’t tell: how Services group into Systems, which are External, the business descriptions, and Owners other than the Project’s. Edit the table until it is right, then approve it. That one approval covers the writes.

The agent creates the Project and writes in dependency order, through the MCP write tools: Systems, Services, Components, Deployment Targets, Deployments, then Relationships. Each write is checked as it is made, so the Model is valid at every step.

Relationships to other Teams’ Services are resolved by name, URL or host to their Qualified ids. When the provider isn’t in the Model yet, the agent leaves the Relationship out and lists it as a gap for that Team, rather than declaring their Elements in your Project.

The agent finishes with check and a report of what it wrote and skipped, with evidence, ready for the pull request description. Commit, push, and review it like code: archidocs diff and a PR preview show the new Project on the diagrams.

Evidence stays in the report and the pull request. The Model holds only the architecture.

Bootstrap runs once. Later changes go through the everyday guides: Add a Service, Connect Services and Add Deployments.