A2A 1.0 · Ed25519 receipts · SOC 2 in progress
Build November 10, 2026Status
For agents · MCP

The AgentDraft MCP server.

Nine tools for any MCP host — race-free scheduling and a real human approval gate. Your agent gets availability, holds, commits, cancellations, and sign-off requests over the Model Context Protocol.

Updated


01What it is

The Model Context Protocol lets an AI client call external tools through a uniform interface. The AgentDraft MCP server exposes the scheduling coordination layer as nine of those tools. It is a thin wrapper over the agentdraft Python SDK — same auth, same typed errors, same race semantics as the REST API and the language SDKs.

Version 0.2.0 adds the part every production agent eventually needs: a way to stop. An agent can open an approval request, keep working, and resume only when a person decides. The gate is the same approval primitive the dashboard and REST API use, not a second implementation.


02Install & configure

Pick your host and runtime; the console writes the exact file. Requires Python 3.10+ and an avs_live_… agent key — the free Developer tier issues one instantly, no card required.

Gate console · interactive

Wire a human gate into your agent.

Pick the client, the runtime, and the action that must wait for a person. The config is assembled in this browser — nothing is sent anywhere.

01 Client host

Settings → Developer → Edit Config

02 Runtime

uvx agentdraft-mcp — No global install; resolves the published package.

03 What must a human approve?

Held in memory for this tab only. Never stored, never sent.

claude_desktop_config.json
{
  "mcpServers": {
    "agentdraft": {
      "command": "uvx",
      "args": [
        "agentdraft-mcp"
      ],
      "env": {
        "AGENTDRAFT_API_KEY": "avs_live_your_key_here"
      }
    }
  }
}
  1. 01Install — uvx agentdraft-mcp
  2. 02Paste the config into claude_desktop_config.json, then restart the host.
  3. 03Gate it — call request_approval and fail closed on anything but approved.
3 approval tools · stdio transport · no tracking

03The nine tools

Scheduling

06since 0.1.0
whoami

Confirm the key; return the agent's identity, priority, scopes, and the owner's timezone.

get_availability

List slots open to the calling agent in a window, filtered through focus blocks, buffers, and sibling holds.

create_hold

Reserve a slot tentatively (30s TTL). A higher-priority agent gets an outranked payload instead of a silent overwrite.

release_hold

Release a hold early so another agent can claim the slot before the TTL expires.

commit_booking

Finalize a booking — the atomic slot-level compare-and-swap. Exactly one agent wins; losers get a typed 409.

cancel_booking

Cancel a committed booking and free the slot for other agents.

Human approval

03new in 0.2.0
request_approvalnew

Open a human gate with an action type, a one-line summary, and a structured evidence payload. Returns immediately.

get_approvalnew

Read the current state of a request — pending, approved, denied, or expired — including the reviewer's note.

wait_for_approvalnew

Wait for a decision without hanging the host. Clamped at 120 seconds; a timeout returns status pending, never a false approval.


04Why route through MCP instead of the calendar directly

Most MCP scheduling servers hand an agent a thin wrapper over a single calendar's API. That gives every agent its own private view and no arbitration — so two agents that both read a free slot can both write it, and a human ends up double-booked.

AgentDraft's server routes every commit_booking through the conflict engine first. Each booking is written as one row per fixed time bucket inside a single DynamoDB TransactWriteItems; the ConditionExpression lets a higher-priority agent evict a lower-priority hold or a still-bumpable commit. Exactly one writer wins each slot in any race window, and every loser receives a typed outranked response with the winner's priority — the check is the write.


05

Frequently asked

What is the AgentDraft MCP server?

agentdraft-mcp is a Model Context Protocol server that exposes AgentDraft's scheduling and approval API as nine tools — whoami, get_availability, create_hold, release_hold, commit_booking, cancel_booking, request_approval, get_approval, and wait_for_approval — to any MCP host such as Claude Desktop, Claude Code, Cursor, or Cline.

How do I install it?

Run uvx agentdraft-mcp or pip install agentdraft-mcp, then paste the generated config into your host's MCP settings with an AGENTDRAFT_API_KEY holding your avs_live_ agent key. The console above writes the exact file for each client.

Does wait_for_approval block the model?

It waits inside one tool call, which is the point — but never indefinitely. The timeout is clamped to 120 seconds, and a lapse returns status: "pending" rather than pretending a decision happened. Agents should treat denied, expired, and pending exactly alike: do not proceed.

Why use this instead of calling the calendar directly?

A direct calendar call gives each agent its own view and no arbitration, so two agents can both book the same slot. The AgentDraft MCP server routes every booking through the conflict engine first: exactly one agent wins each slot via a storage-level conditional write, and every loser gets a typed outranked response with the winner's priority.

Which MCP clients are supported?

Any MCP host that speaks stdio — Claude Desktop, Claude Code, Cursor, Cline, and OpenAI Agents SDK apps among them. The server requires Python 3.10+ and a valid AgentDraft agent key.


06Further reading