Skip to content

MCP tools

As of edict main b932c60a.

Your agent talks to Edict through its MCP server. Two tools ask for a change. The rest only read Edict’s own records. To set up a client, see Add Edict to your agent harness.

  • Endpoint: https://platform.edictlabs.ai/api/v1/mcp
  • Transport: Streamable HTTP. Requests are JSON-RPC over POST. There is no SSE stream: GET is not allowed. DELETE ends the session.
  • Protocol versions: 2026-07-28, 2025-11-25 and 2025-06-18. initialize returns an Mcp-Session-Id.
  • Auth: OAuth 2.1 with dynamic client registration (RFC 7591) and PKCE (S256). Clients are public clients. The scope is edictlabs:manage. The first time a client connects, you sign in to Edict in your browser and approve the connection. The consent page asks for a recent sign-in.
  • Discovery: /.well-known/oauth-protected-resource/api/v1/mcp and /.well-known/oauth-authorization-server.
Tool Kind What it does Key inputs
request_change Change Sends one change to Edict instead of running aws, kubectl or terraform. Edict checks it, gets approval where your rules require it, runs it in your account and returns a receipt. intent (required: kind and targets), agent_explanation, idempotency_key, repository, commit
request_undo Change Asks Edict to undo an action that already ran. It opens a new request, approved like any other. Nothing is undone automatically. receipt_id
status Read The current state of a request you made: pending and on whom, approved, executed with its receipt, or why it was denied, refused or failed. envelope_id
explain Read Everything Edict worked out about a request: resources, production or not, the plan, the tier and why, and who may approve. envelope_id
list_pending Read Requests still waiting. filter: requested_by_me (default), pending_for_me or all
list_environments Read Your organization’s environments, newest first, as summaries. limit, offset
get_environment Read One environment in detail. environment_id
get_run_status Read An environment’s provisioning plan and current run status. environment_id
list_resources Read The cloud resources in an environment. environment_id
get_resource_detail Read One resource’s current state and configuration. environment_id, resource_id
get_drift_summary Read An environment’s drift summary. environment_id
explain_drift Read What drifted in an environment, in plain words, with suggested fixes. environment_id
get_environment_health Read An environment’s record, resources, drift and costs in one result. environment_id
diagnose_failure Read What you need to explain a failed run: the plan, each step’s status, and the newest error with its step log. environment_id
get_run_history Read An environment’s run history, step by step. environment_id
list_pending_approvals Read Environments waiting for a person’s approval, each with a link to approve in Edict. It cannot approve. none
get_trust_score Read Your organization’s trust score, from 0 to 100. org_id (me for yours)
get_cost_estimate Read A monthly cost estimate for an environment spec, without provisioning it. spec
list_audit_log Read Recent audit log entries, newest first. environment_id (optional), limit
list_cloud_accounts Read Your connected AWS accounts, with their verification status and regions. none
list_discovered_resources Read Resources found in your connected AWS accounts, with how each is classified. account_id (optional)

No tool approves anything. Approving is done by a person in Edict, with a passkey.

intent.kind says what the request is:

  • spec_change: a change to an Edict environment, adding resources included. Operations are create, update, reprovision, destroy and destroy_resource. update takes a plain description, a JSON patch or a full spec.
  • action: one call on one resource, named by ARN in targets. Either the curated verb ecs.rollback, or a structured operation. Edict runs only operations it has a description of, and refuses any other with the request that works instead.

targets is always an array, [] when the kind names none.

request_change, request_undo and status return the request’s status as structured content, plus the same as JSON text. The fields you will use most:

  • state: proposed, verified, awaiting_approval, approved, executing, executed, failed, denied, refused, expired or cancelled.
  • approval_url: the link a person opens in Edict to approve or deny.
  • receipt_id: the receipt, once the change ran.
  • next_step: what the agent should do now.

Also: envelope_id, disposition (created, attached or replayed), summary, tier (discovery, nonprod.write, prod.reversible or destructive), approvals, waiting_on, expires_at, read_record_id, undo, undo_of, exceptions, refusal, pause, failure and notice.

If a request is pending, call status with its envelope_id later. Do not send it again.

A refused request comes back as an error. The refusal carries code, kind, detail, retryable, and two fields an agent can act on:

  • rule: a stable id for the rule that refused it, for example action.operation_undescribed.
  • remedy: what to send instead.

A client on protocol 2026-07-28 that declares io.modelcontextprotocol/tasks on a request gets a task back. The task id is the envelope_id.

  • A request waiting for approval shows as working, with the approval link in the status message.
  • Refused, denied, expired and failed requests show as completed, with an error result.
  • tasks/update accepts nothing.

Older clients get an immediate result and call status to follow up.

  • Resources: edict://envelopes/{id}, edict://receipts/{id} and edict://read-records/{id}, as JSON. Cite a receipt in pull requests and incident notes.
  • Card: ui://edict/envelope-card, a live view of one request for clients that show MCP app cards.
  • Prompts: status, receipts, pending and preflight.

These are refused today:

  • Build requests from agents. A request of kind build is refused, and the refusal points to the spec_change update form instead.
  • Grants. Pre-approving later requests is refused for every verb.
  • revert_drift. Always refused.
  • Free-text commands. A raw aws command in action.command is refused as not parsed. Send action.operation, which always works.