Read the estate over MCP
Optional: hand this page to your coding agentThe steps work by hand too.Show the whole prompt
Read https://intentius.io/terragucci/guides/agent-read-over-mcp/.
Tell me the command line and the environment variables to add terragucci mcp to my MCP client for this repo's reports bucket; do not add it yourself, and do not create or print credentials.
Never apply, approve (a pull request review or `terragucci approve`), override a policy denial (`terragucci override`), use `--mode apply`, or merge; never touch `.chant/allowed_signers` or `chant/lifecycle`.terragucci mcp is a read-only Model Context Protocol server on stdio. It serves only what terragucci already wrote to the reports bucket and the repo, and runs no model of its own. Started with --propose, it can also push a branch and open a pull request for the pipeline to plan: Have an agent propose a change over MCP.
Result
Section titled “Result”An agent that answers “when did envs/prod/app last apply, and what did it change?” from the bucket:
{
"project": "github.com/acme/infra",
"root": "envs/prod/app",
"commit": "ef7f8e50010c12dca8e20ecf90009638a8497f0d",
"wave": 1,
"approval": "approved",
"applied": true,
"report": "github.com/acme/infra/2026/10/ef7f8e50010c12dca8e20ecf90009638a8497f0d/tf-apply-wave-1",
"result": { "path": "envs/prod/app", "status": "planned", "changes": [{ "address": "terraform_data.app", "action": "create" }] }
}Prerequisites
Section titled “Prerequisites”| You need | Why |
|---|---|
reports.bucket set, and a pipeline that has run |
the server reads the reports the stages copied there |
terragucci estate and terragucci audit run on a schedule, for the estate, dora and audit tools |
the server serves the files they write, and computes nothing |
| Read access to the bucket, in the environment the client starts the server from | the server takes credentials from its own environment, never from the agent |
-
Give the server an identity that can read the bucket and nothing more, in the variables Reports lists.
Store Identity S3 AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY, or a roleGCS GOOGLE_APPLICATION_CREDENTIALSAzure Blob AZURE_STORAGE_KEY, or an Entra ID identity -
Add the server to your MCP client. From the repo’s root, where it reads
terragucci.yml, the command line is:Terminal window npx -y @intentius/terragucci mcpOutside the repo, name the bucket instead:
Terminal window npx -y @intentius/terragucci mcp --bucket s3://acme-plan-reports --bucket-prefix terragucciA client starts a stdio server with only a few variables of its own, so name the bucket’s credentials in the server’s
env. A client that expands variables in its config, such as Claude Code’s.mcp.json, keeps the values in your shell:{"mcpServers": {"terragucci": {"command": "npx","args": ["-y", "@intentius/terragucci", "mcp"],"env": {"AWS_ACCESS_KEY_ID": "${AWS_ACCESS_KEY_ID}","AWS_SECRET_ACCESS_KEY": "${AWS_SECRET_ACCESS_KEY}","AWS_REGION": "us-east-1"}}}} -
Ask. The agent lists the tools and calls them:
Ask Tool when did a root last apply, and what changed last_applywhich runs ran on a commit, and their reports index, thenreportwhere each wave of an applied commit stands run_viewwhich state version to restore state_versionswho approved what audithow often you deploy, and how fast you restore dorawhich wave waits, and the command to approve it waiting
Refusals
Section titled “Refusals”| A call | The answer |
|---|---|
approve, apply, override, or any tool it does not list |
an error naming the unknown tool: approvals belong to a person at a shell, and an approval made over MCP is refused |
an argument the tool does not list, such as token |
an error; credentials come from the server’s environment |
a report path outside the bucket’s prefix |
an error |
The waiting tool prints each waiting wave’s terragucci approve command for a person to run; the server cannot run it.
The server is chant’s own read-only server with terragucci’s tools added to it, with or without --propose. The tools are named terragucci:last_apply, terragucci:index and so on, and chant’s read tools for the ledger and the workspace are served beside them. CLI commands lists each tool’s arguments.
MCP or --json
Section titled “MCP or --json”| You want to | Use |
|---|---|
| read what terragucci wrote: reports, the estate, state versions, the audit trail, DORA figures | terragucci mcp |
| set terragucci up, check a config, write the pipeline, plan, run a response in dry run | the CLI with --json (JSON output) |
| get a change planned by the pipeline: push a branch, open a pull request, read its plan | terragucci mcp --propose (propose a change) |
| approve, apply, override or merge | neither: a person does it |
Terragrunt’s experimental terragrunt mcp serves Terragrunt operations to an agent, and with --dangerously-allow-apply it serves tools that apply and destroy. terragucci mcp runs no Terragrunt and no binary: it reads the reports, the audit trail and the DORA figures the estate already holds. To keep an agent’s own shell from applying a root the pipeline owns, write terragucci guard.
- Have an agent propose a change over MCP adds the tools that open a pull request.
- Set up with a coding agent gives the agent’s rules.
- See every project writes the estate page the
estatetool reads.
terragucciHelp setting it up: Intentius
These docs count page views and clicks with PostHog. They set no cookies, store nothing in your browser, and send nothing when your browser asks not to be tracked.