MCP server for AgentDraft — expose the scheduling source of truth to MCP-aware AI clients (Claude Desktop, Cursor, Cline, etc.)
Project description
agentdraft-mcp — MCP server for AgentDraft
An MCP server that exposes AgentDraft — the scheduling source of truth for AI agents — as a set of tools any MCP-aware AI client can call.
Use this if your agent runtime is Claude Desktop, Claude Code, Cursor,
Cline, an OpenAI Agents SDK app, or any other MCP host. The server is
a thin wrapper around the agentdraft
Python SDK — same auth, same errors, same semantics as the REST API
and the language SDKs.
Install
pip install agentdraft-mcp
Requires Python 3.10+ and a valid avs_live_… agent key from the
AgentDraft dashboard.
Configure your MCP client
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) or the equivalent on Windows/Linux:
{
"mcpServers": {
"agentdraft": {
"command": "agentdraft-mcp",
"env": {
"AGENTDRAFT_API_KEY": "avs_live_..."
}
}
}
}
Cursor / Cline / generic stdio host
{
"mcpServers": {
"agentdraft": {
"command": "python",
"args": ["-m", "agentdraft_mcp"],
"env": {
"AGENTDRAFT_API_KEY": "avs_live_..."
}
}
}
}
For local development against a dev backend, also set
AGENTDRAFT_BASE_URL=http://localhost:8080.
Tools
| Tool | Purpose |
|---|---|
whoami |
Confirm the API key and return the agent's identity, priority, scopes |
get_availability |
List slots open to the calling agent in [start, end) |
create_hold |
Reserve a slot tentatively (30 s TTL) |
release_hold |
Release a hold so other agents can claim it |
commit_booking |
Finalize a booking — atomic compare-and-swap |
cancel_booking |
Cancel a committed booking the calling agent owns |
All times are ISO 8601 strings (2026-06-01T14:00:00Z). All write
tools accept an idempotency_key for safe retries.
How conflicts surface
When two agents race for the same slot, exactly one wins. Losing agents receive a structured outranked payload — not a string error:
{
"error": "outranked",
"winning_booking_id": "bkg_…",
"winning_agent_id": "agt_…",
"winning_agent_priority": 1,
"your_priority": 3,
"message": "Your booking was outranked. Read winning_agent_id and propose an alternate slot rather than retrying."
}
Your agent should branch on this and propose an alternate, not retry the same slot.
How this differs from the AgentDraft SDKs
| Python/TS SDK | MCP server | |
|---|---|---|
| Caller | App code you wrote | An AI client (Claude Desktop, etc.) |
| Transport | HTTPS direct to api.agentdraft.io | stdio between the MCP host and this process |
| Auth | Client(api_key=…) |
AGENTDRAFT_API_KEY env var |
| Semantics | Same | Same |
| Errors | Typed Python exceptions | Structured JSON in the tool result |
Use the SDK when you are writing the agent. Use this MCP server when someone else's agent runtime (Claude Desktop, Cursor, Cline, generic MCP host) needs to call AgentDraft on a user's behalf without custom code.
Links
- Protocol spec: https://agentdraft.io/spec
- API docs: https://agentdraft.io/docs
- Python SDK:
agentdraft - TypeScript SDK:
@agentdraft/sdk - Source: https://github.com/GipsyChef/agentdraft
- Issues: https://github.com/GipsyChef/agentdraft/issues
Security
Found a vulnerability? See SECURITY.md. Do not open a public issue for a security report.
Contributing
See CONTRIBUTING.md. This package lives inside the
GipsyChef/agentdraft
monorepo under sdks/mcp/.
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentdraft_mcp-0.1.0.tar.gz.
File metadata
- Download URL: agentdraft_mcp-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc7d46d026e7f646eebecbde83e07917690174e58b6404132b47b6e88bf00927
|
|
| MD5 |
d1f1242058e8188aeadcba8751b65e49
|
|
| BLAKE2b-256 |
390d3b4f0d27b7a629a9146e89cddb7639dea0a1e0d9e6a6477f61714b3e7d64
|
File details
Details for the file agentdraft_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentdraft_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3eb9f58e620fdf677d44dbdbb6fc863fe036950e6ac7e1c16411602e7036417
|
|
| MD5 |
fb07a71d1dba3780d1629f19ee96bb33
|
|
| BLAKE2b-256 |
46bed53192ed0bb4f2ff49bb48cc5865a86c4c6cf8081a9902d6e73132582488
|