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.
Need to configure the whole workspace instead of scheduling? Management MCP
Updated
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.
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.
Scheduling
06since 0.1.0whoamiConfirm the key; return the agent's identity, priority, scopes, and the owner's timezone.
get_availabilityList slots open to the calling agent in a window, filtered through focus blocks, buffers, and sibling holds.
create_holdReserve a slot tentatively (30s TTL). A higher-priority agent gets an outranked payload instead of a silent overwrite.
release_holdRelease a hold early so another agent can claim the slot before the TTL expires.
commit_bookingFinalize a booking — the atomic slot-level compare-and-swap. Exactly one agent wins; losers get a typed 409.
cancel_bookingCancel a committed booking and free the slot for other agents.
Human approval
03new in 0.2.0request_approvalnewOpen a human gate with an action type, a one-line summary, and a structured evidence payload. Returns immediately.
get_approvalnewRead the current state of a request — pending, approved, denied, or expired — including the reviewer's note.
wait_for_approvalnewWait for a decision without hanging the host. Clamped at 120 seconds; a timeout returns status pending, never a false approval.
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.
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.
- How to build an AI agent human approval workflow — the gate behind request_approval, from JSON evidence to fail-closed retries.
- Calendar API for AI agents — the HTTP surface the MCP server wraps.
- LangChain & LangGraph tools — the same coordination layer for code-first agent frameworks.