WritBase is an MCP-native task management tool for AI agent swarms, positioned as a control plane for AI agents and human supervisors. It provides a persistent task registry and supports scoped permissions, inter-agent delegation, and complete provenance, all accessed through MCP (Model Context Protocol).
Purpose WritBase solves the problem of AI agents lacking shared, persistent task state. It lets tasks be stored centrally in Postgres instead of being scattered across files and chat logs, providing a single source of truth for agent swarms.
Key capabilities
- Single source of truth: Tasks are stored in Postgres, not in temporary in-memory state.
- Scoped permissions: Each agent receives only the minimum access it needs.
- Complete provenance: Every change records who, what, when, and why.
- Inter-agent delegation: Agents can assign tasks to each other, with depth limits and cycle detection.
- MCP-native: Agents connect through the Model Context Protocol, with no custom integration required.
- Multi-tenant workspaces: Isolated workspaces are automatically created at registration.
- Dynamic MCP schema: Tool visibility and parameter enums adapt based on the agent's role and permissions.
- 6 permission types: can_read, can_create, can_update, can_assign, can_comment, can_archive.
- Project and department scopes: Permissions are granted by (project, department) pair.
- Optimistic concurrency: Version-based conflict detection prevents silent overwrites.
- Cursor pagination: Efficiently traverse large task sets.
- Rate limiting: Request throttling by agent key.
- Request logging: Every MCP call records latency, status, and agent context.
How to use Two setup methods are provided:
Method A: CLI setup (recommended) No need to clone the repository; use npx directly. Prerequisites: Node 18+, Supabase CLI, a Supabase project (the free tier works). Deploy the Edge Function: npx supabase functions deploy mcp-server --no-verify-jwt. The MCP endpoint is then ready to use.
Method B: Manual setup Optional dashboard: cp .env.example .env.local -> edit Supabase URL + anon key -> npm run dev.
Create a project and agent key: This can be done through the CLI (npx writbase key create), the dashboard, or a manager agent. The steps include: create a project (for example, my-app, optionally adding the departments backend, frontend, devops); create an agent key (name it, select the worker role, save the key wb_<key_id>_<secret>, shown only once); grant permissions (writbase key permit my-agent --grant --project my-app --can-read --can-create --can-update, or through the dashboard).
Connect an MCP client: Add it to .cursor/mcp.json or .vscode/mcp.json. Supports clients such as Claude Code, Cursor, VS Code, and Windsurf.
Tech stack
- Backend: Supabase (Postgres + Edge Functions, Deno runtime)
- Transport: Streamable HTTP (MCP SDK)
- Frontend: Next.js 16 (App Router) + Tailwind CSS
- Authentication: Supabase Auth (humans) + SHA-256 agent keys (agents)
Use cases Suitable for scenarios that require multiple AI agents to work together, share task state, and need permission control and operation auditing, such as multi-agent development teams and automated workflow orchestration.
Limitations The material does not provide specific performance metrics, pricing information, or comparisons with other tools. Use requires a Supabase project, and deployment and configuration have a certain technical barrier.