Skip to content

MCP tools

The coordinator serves these tools at POST /mcp, stateless, to session tokens only. zt start gives each agent the MCP server zt mcp, which forwards calls there with the session’s token. See Generic MCP client to connect another agent.

Every client gets these instructions when it initializes:

Zentri coordinates sessions that share a repo. Hooks claim each file before you edit it. A denial means another session holds the file, so do not write it another way, such as from a shell. Read and ack the notices at the end of tool results with zentri_check_inbox. Use zentri_claim_file without hooks, or to claim files up front. Ask a person with zentri_ask instead of guessing, and record design choices with zentri_propose_decision. If your agent has the zentri-prd and zentri-adr skills, follow them.

Each tool lists the authorization actions it may take and the session token scopes that allow them. A session token carries every session scope: claims:own, decisions:propose, diff:read, notes:post, notices:own, plan:own, prd:update, questions:create, sessions:read. A schema rejects any property it does not list, and a length counts characters.

Ask a person when the task leaves a gap, instead of guessing. kind product is what to build, technical is how. The result is pending, or answered from an earlier answer. To check later, send only question_id.

Actions: questions.create, questions.read. Scopes: questions:create.

Annotations: destructiveHint: false, idempotentHint: false, openWorldHint: false, readOnlyHint: false.

Parameter Type Required Description Limits
blocking boolean no You cannot go on without the answer.
context string no length at most 2048
fresh boolean no Skip reusing an earlier answer.
kind string no one of product, technical
options array of string no items at most 6; each item length 1 to 200
question_id string no format uuid
text string no length 1 to 1024

Read this session’s unacknowledged notices in full, oldest first, and acknowledge them.

Actions: notices.ack, notices.list. Scopes: notices:own.

Annotations: destructiveHint: false, idempotentHint: false, openWorldHint: false, readOnlyHint: false.

Parameter Type Required Description Limits
limit integer no Default 20. value 1 to 20

Claim files before you edit them. Hooks already claim each file before an edit, so call this only if your agent has no hooks or to claim files up front. Each path is granted or denied on its own. A denial names the session that holds the file. Do not write a denied file another way.

Actions: claims.create. Scopes: claims:own.

Annotations: destructiveHint: false, idempotentHint: true, openWorldHint: false, readOnlyHint: false.

Parameter Type Required Description Limits
paths array of string yes Repo-relative paths to claim. items 1 to 50; each item length at least 1

Show this session, its intent and plan, the files it holds, the other active sessions, and the rules. Call it when you start work.

Actions: claims.list, intents.read, sessions.list, sessions.read. Scopes: sessions:read.

Annotations: idempotentHint: false, openWorldHint: false, readOnlyHint: true.

No parameters.

Read another session’s latest diff: changed files, public symbols, and a patch slice. path picks one file.

Actions: session_diff.read. Scopes: diff:read.

Annotations: idempotentHint: false, openWorldHint: false, readOnlyHint: true.

Parameter Type Required Description Limits
offset integer no Patch byte offset, from the last result. value at least 0
path string no length at least 1
session_id string yes format uuid

Keep this session alive and set the one line other sessions see about what it is doing. Omit activity to keep the current line. An empty string clears it.

Actions: sessions.heartbeat. Scopes: none beyond the session token.

Annotations: destructiveHint: false, idempotentHint: true, openWorldHint: false, readOnlyHint: false.

Parameter Type Required Description Limits
activity string no length at most 120

List the other live sessions in this project: who runs each one and what it is doing.

Actions: sessions.list. Scopes: sessions:read.

Annotations: idempotentHint: false, openWorldHint: false, readOnlyHint: true.

No parameters.

Send a short note to one session by session_id, or to the live sessions that hold any of paths. Ask a holder about a file you need this way.

Actions: notes.post. Scopes: notes:post.

Annotations: destructiveHint: false, idempotentHint: false, openWorldHint: false, readOnlyHint: false.

Parameter Type Required Description Limits
paths array of string no Reach the sessions holding these paths. items 1 to 50; each item length at least 1
session_id string no format uuid
text string yes At most 1 KiB. length 1 to 1024

Record a design decision as an ADR. Low risk is accepted at once. High risk, or one that touches security, auth, secrets, migrations, deletes, payments, or a public API, waits for a lead.

Actions: decisions.propose. Scopes: decisions:propose.

Annotations: destructiveHint: false, idempotentHint: false, openWorldHint: false, readOnlyHint: false.

Parameter Type Required Description Limits
alternatives string no length at most 4096
consequences string yes length 1 to 4096
context string yes length 1 to 4096
decision string yes length 1 to 4096
risk string no one of low, high
supersedes string no format uuid
title string yes length 1 to 200

Release files this session holds, so other sessions may edit them.

Actions: claims.release. Scopes: claims:own.

Annotations: destructiveHint: false, idempotentHint: true, openWorldHint: false, readOnlyHint: false.

Parameter Type Required Description Limits
paths array of string yes Repo-relative paths to release. items 1 to 500; each item length at least 1

Search this project’s decision records before you make a design choice. Lists accepted and proposed ones by default.

Actions: decisions.list. Scopes: none beyond the session token.

Annotations: idempotentHint: false, openWorldHint: false, readOnlyHint: true.

Parameter Type Required Description Limits
limit integer no Default 10. value 1 to 20
query string no length at most 1024
status array of string no each item one of proposed, accepted, rejected, superseded

Say what this session will do before you start, and again when that changes. files may name directories ending in /. The result lists overlaps with other sessions’ claims, plans, and symbols.

Actions: plans.submit. Scopes: plan:own.

Annotations: destructiveHint: false, idempotentHint: false, openWorldHint: false, readOnlyHint: false.

Parameter Type Required Description Limits
files array of string no items at most 200; each item length at least 1
steps array of string no items at most 30; each item length 1 to 500
summary string yes length 1 to 2048
symbols array of object no Public symbols you will add or change. items at most 100
symbols[].kind string yes one of func, type, component, route, table, migration
symbols[].name string yes length 1 to 200

Store a new revision of your intent’s PRD in Markdown. base_revision is the revision you edited, 0 for the first. A stale base is refused.

Actions: prd.update. Scopes: prd:update.

Annotations: destructiveHint: false, idempotentHint: false, openWorldHint: false, readOnlyHint: false.

Parameter Type Required Description Limits
base_revision integer yes value at least 0
body string yes length 1 to 32768
title string yes length 1 to 200