MCP publish and delivery tools¶
This page lists the tools pacto mcp --publish and pacto mcp --delivery
serve. The MCP reference covers the other modes, how they
combine and the tool-call log.
The publish server¶
--publish adds pacto_publish_plan (what publishing would write and which
checks refuse it, without writing) and pacto_publish (publishes the version
the same way pacto publish does, with this process's registry credentials,
always to a new tag) beside the authoring tools and pacto_capabilities,
which reports the publish mode with writes true. It runs over stdio
only. Both tools take path and revision; for a contract with no publish
section they also take image, registry, sign_key and
no_transparency_log, the flags of the same name on pacto publish.
The delivery server¶
--delivery serves the delivery tools over the cluster your kubeconfig
points at: pacto_delivery_status, pacto_delivery_operation_types, pacto_delivery_candidates,
pacto_delivery_operation_plan, pacto_delivery_get, pacto_delivery_explain,
pacto_delivery_history, pacto_delivery_blame, pacto_delivery_undo_plan,
pacto_delivery_record_get, pacto_delivery_record_verify and
pacto_delivery_lifecycle for everyone, plus
pacto_delivery_operation_propose and pacto_delivery_cancel only when the
cluster says the caller is an agent. Delivery mode has no approve tool on any
server: agents read approval records with pacto_delivery_record_get and
pacto_delivery_record_verify, and a person approves with
pacto delivery approve or the dashboard. Over stdio the two record tools
also take ref, a record reference (<repository>:<tag> or
<repository>@<digest>) read with your own registry credentials and no
kubeconfig, in place of namespace, stage and record; the HTTP server
has no ref. Over HTTP the server needs
token exchange.
The delivery read tools¶
Seven read tools answer what the dashboard's delivery views show, with the
route's own parameters and answer: pacto_delivery_caller,
pacto_delivery_inbox, pacto_delivery_environments,
pacto_delivery_autonomy, pacto_delivery_published,
pacto_delivery_refusals and pacto_delivery_trust. pacto_delivery_trust
answers which publishers each service accepts: the installation's rule or
signed policy, the signers a person pinned, the signers waiting for a person
and the newest verdicts, each naming its source
(which publishers Pacto accepts). They run the dashboard's route code in the server
with the caller's identity, so the API server decides what each caller reads.
With --fleet they also follow the caller's fleet view, and the fleet
--namespace limits them to one namespace, as on the dashboard. A list answer
carries asOf and completeness. It covers the namespaces the caller may list
Stages in; namespaces outside the caller's permissions are left out without
being named. unreadable names a namespace that refused the list, and without
--fleet the inbox names owners there, since no owner is known and every
Stage is shown as the caller's.
Candidates, plans and history¶
pacto_delivery_candidates lists the versions a Stage may take, with their
digests. The to input of plan and propose takes a version (3.0.0), a tag or
a digest; a version or a tag must name exactly one of those candidates, or the
tool refuses it and says why. A plan's next says what proposing it leads
to, as plan, propose and approve
describes, and pacto_delivery_get repeats it while an operation is held.
Propose with the plan's intent digest and the same reason and on_behalf_of: the digest binds them,
and PlanStale names the one that differs when it can tell.
on_behalf_ofon plan and propose: the person an agent acts for, as the Kubernetes username the cluster authenticates them as, asserted and never verified. An agent must name one when it proposes, never itself, a service account, a system user or the promoter, and that person may not approve the change (agents). Planning needs none.correlation_idon plan and propose: a ticket or incident id of at most 128 printable ASCII characters, kept with the change and its record. The automatic rollback, freeze and step-down the promoter raises after the change inherit it. It does not change the intent digest.cause_verdicton plan and propose: a verdict you cite as the cause. The intent digest binds it, so a changed cause makes the plan stale.
pacto_delivery_history takes since and until (an RFC 3339 time or a
duration such as 2h), cause, correlation_id and, without a stage,
service and domain. Each line carries impact, the pacto.impact
verdict its record signed, and the answer's revisions map each artifact
digest to its revision key. at (same time forms, without since, until,
cause or correlation_id) answers which revision each Stage ran at that
time instead, with each Stage known, partial or unknown.
pacto_delivery_blame adds the digest's revision. Every revision key on
these tools is derived from the contract's digest and name, not checked
against a fleet.
Status, progress and lifecycle
covers the status, lifecycle and record tools.