MCP server de WritBase
Proporciona un registro de tareas persistente y un plano de control para flotas de agentes de IA con permisos delimitados y trazabilidad completa a través de MCP.
También conocido como Writbase/writbase
- Stars
- 11
- Herramientas
- 11
- Descargas, 30 días
- —
- Última versión
- 0.1.3
- Último commit
- 29 mar 2026
- Licencia
- Apache-2.0
¿Qué es WritBase MCP?
WritBase es un MCP server. Proporciona un registro de tareas persistente y un plano de control para flotas de agentes de IA con permisos delimitados y trazabilidad completa a través de MCP. Expone 11 herramientas, como info, get_tasks, add_task.
Resumen generado a partir del README del proyecto
Acerca del MCP server de WritBase
WritBase funciona como un registro de tareas persistente y un plano de control diseñado para gestionar flotas de agentes de IA. En lugar de depender de una memoria efímera que desaparece entre sesiones, este sistema utiliza una base de datos Postgres a través de Supabase para mantener una única fuente de verdad para todas las tareas. Permite a los desarrolladores asignar roles específicos y permisos delimitados a diferentes agentes, asegurando que solo accedan a los proyectos o departamentos para los que están autorizados.
Los usuarios pueden desplegar el servidor usando la Supabase CLI o mediante métodos manuales como clonar el repositorio. Una vez que el endpoint de MCP está activo, los agentes se conectan a través de varios clientes, incluyendo Claude Code, Cursor, VS Code y Windsurf, utilizando streamable HTTP y claves de agente. El sistema proporciona una trazabilidad completa al registrar cada cambio en un registro de auditoría de solo anexos (append-only), lo que ayuda a los supervisores humanos a rastrear quién realizó qué acción y cuándo. La plataforma incluye herramientas especializadas para que los agentes trabajadores gestionen tareas y los agentes gestores administren claves, permisos y estructuras de proyectos.
Qué puedes hacer con él
- 1Mantener el estado persistente de las tareasUn agente de IA puede almacenar y recuperar tareas desde una base de datos central para que la información no se pierda entre sesiones.
- 2Aplicar permisos granulares a los agentesUn desarrollador puede restringir a un bot de CI para que solo cree tareas dentro de un departamento de DevOps específico.
- 3Auditar la actividad y los cambios de los agentesUn supervisor puede consultar el sistema para ver un historial completo de todas las modificaciones realizadas por la flota de agentes.
- 4Automatizar la delegación de tareas entre agentesUn agente puede asignar una nueva tarea a otro agente dentro de la flota respetando los límites de profundidad.
Escrito a partir del README del proyecto. Cada caso de uso se verifica con una cita del mismo.
Cómo instalar WritBase MCP
Formatos verificados el 10 nov 2026Instalar WritBase MCP en Claude Code
$ claude mcp add --env WRITBASE_AGENT_KEY=<YOUR_WRITBASE_AGENT_KEY> --env WRITBASE_URL=<WRITBASE_URL> writbase -- npx -y writbaseInstalar WritBase MCP en Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"writbase": {
"command": "npx",
"args": [
"-y",
"writbase"
],
"env": {
"WRITBASE_AGENT_KEY": "<YOUR_WRITBASE_AGENT_KEY>",
"WRITBASE_URL": "<WRITBASE_URL>"
}
}
}
}Instalar WritBase MCP en VS Code
.vscode/mcp.json
{
"servers": {
"writbase": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"writbase"
],
"env": {
"WRITBASE_AGENT_KEY": "<YOUR_WRITBASE_AGENT_KEY>",
"WRITBASE_URL": "<WRITBASE_URL>"
}
}
}
}Instalar WritBase MCP en Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"writbase": {
"command": "npx",
"args": [
"-y",
"writbase"
],
"env": {
"WRITBASE_AGENT_KEY": "<YOUR_WRITBASE_AGENT_KEY>",
"WRITBASE_URL": "<WRITBASE_URL>"
}
}
}
}Instalar WritBase MCP en Codex
~/.codex/config.toml
[mcp_servers.writbase] command = "npx" args = ["-y", "writbase"] [mcp_servers.writbase.env] WRITBASE_AGENT_KEY = "<YOUR_WRITBASE_AGENT_KEY>" WRITBASE_URL = "<WRITBASE_URL>"
Instalar WritBase MCP en Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"writbase": {
"command": "npx",
"args": [
"-y",
"writbase"
],
"env": {
"WRITBASE_AGENT_KEY": "<YOUR_WRITBASE_AGENT_KEY>",
"WRITBASE_URL": "<WRITBASE_URL>"
}
}
}
}Herramientas de WritBase MCP 11
Detectado desde el READMEinfoget_tasksadd_taskupdate_taskmanage_agent_keysmanage_agent_permissionsget_provenancemanage_projectsmanage_departmentssubscribediscover_agents
| info | — | |
| get_tasks | — | |
| add_task | — | |
| update_task | — | |
| manage_agent_keys | — | |
| manage_agent_permissions | — | |
| get_provenance | — | |
| manage_projects | — | |
| manage_departments | — | |
| subscribe | — | |
| discover_agents | — |
Configuración
WRITBASE_AGENT_KEYObligatorioSecretoAgent key (wb_<key_id>_<secret>)
WRITBASE_URLObligatorioYour WritBase MCP endpoint URL
| Nombre | Descripción | Tipo |
|---|---|---|
| WRITBASE_AGENT_KEY | Agent key (wb_<key_id>_<secret>) | ObligatorioSecreto |
| WRITBASE_URL | Your WritBase MCP endpoint URL | Obligatorio |
README
Ver en GitHubWritBase
MCP-native task management for AI agent fleets
A control plane for AI agents and human supervisors. Persistent task registry with scoped permissions, inter-agent delegation, and full provenance — all accessible via MCP.
Why WritBase?
AI agents need a shared, persistent task registry — not ephemeral in-memory state that vanishes between sessions. WritBase gives your agent fleet:
- One source of truth — Tasks live in Postgres, not scattered across files and chat threads
- Scoped permissions — Each agent gets exactly the access it needs, nothing more
- Full provenance — Every change is recorded: 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 via the Model Context Protocol, no custom integration needed
Getting Started
Option A: CLI Setup (recommended)
No repo clone needed. Just npx:
npx writbase init # Interactive setup — configures Supabase credentials
npx writbase migrate # Apply database schema
npx writbase key create # Create your first agent key
That's it. Your MCP endpoint is live at:
https://<project-ref>.supabase.co/functions/v1/mcp-server/mcp
Prerequisites: Node 18+, Supabase CLI, a Supabase project (free tier works)
Deploy the Edge Function:
npx supabase functions deploy mcp-server --no-verify-jwtSee the CLI README for all commands.
Option B: Manual Setup
git clone https://github.com/Writbase/writbase.git
cd writbase && npm install
# Create a free project at supabase.com/dashboard, then:
npx supabase link --project-ref <your-project-ref>
npx supabase db push
npx supabase functions deploy mcp-server --no-verify-jwt
Optional dashboard:
cp .env.example .env.local→ edit with your Supabase URL + anon key →npm run devSee the Deployment Guide for Vercel hosting and self-hosted Supabase.
2. Create a project and agent key
Via the CLI (npx writbase key create), the dashboard, or a manager agent:
- Create a project — e.g.,
my-app. Optionally add departments (backend,frontend,devops) - Create an agent key — name it, pick the
workerrole, save the key (wb_<key_id>_<secret>— shown once) - Grant permissions —
writbase key permit my-agent --grant --project my-app --can-read --can-create --can-update(or via dashboard)
3. Connect your MCP client
claude mcp add writbase \
--transport http \
--url https://<project-ref>.supabase.co/functions/v1/mcp-server/mcp \
--header "Authorization: Bearer wb_<key_id>_<secret>"
Add to .cursor/mcp.json:
{
"mcpServers": {
"writbase": {
"type": "streamableHttp",
"url": "https://<project-ref>.supabase.co/functions/v1/mcp-server/mcp",
"headers": { "Authorization": "Bearer wb_<key_id>_<secret>" }
}
}
}
Add to .vscode/mcp.json:
{
"servers": {
"writbase": {
"type": "http",
"url": "https://<project-ref>.supabase.co/functions/v1/mcp-server/mcp",
"headers": { "Authorization": "Bearer wb_<key_id>_<secret>" }
}
}
}
See the MCP Config Reference for all supported clients.
4. Use it
Ask your agent:
"Check my WritBase permissions" → calls info
"Create a task in my-app: Fix login bug" → calls add_task
"Mark it as in_progress" → calls update_task (with version for concurrency)
"Show all high priority tasks" → calls get_tasks with priority filter
5. Scale up
| Agent | Role | Scoped to | Use case |
|---|---|---|---|
ci-bot |
worker | my-app/devops — can_create |
CI creates tasks on build failure |
triage-agent |
worker | my-app (all depts) — can_comment |
Reviews tasks, adds notes |
ops-manager |
manager | (workspace-wide) | Manages keys, permissions, projects |
Each agent gets its own key with exactly the permissions it needs — nothing more.
Full walkthrough: Getting Started Guide — permissions, departments, troubleshooting
MCP Tools
Worker Tools (all agents)
| Tool | Description |
|---|---|
info |
Agent identity, permissions, and system metadata |
get_tasks |
List tasks with filtering, pagination, and full-text search |
add_task |
Create a task in permitted scope |
update_task |
Update a task with optimistic concurrency control |
Manager Tools (manager agents only)
| Tool | Description |
|---|---|
manage_agent_keys |
Create, update, deactivate, rotate agent keys |
manage_agent_permissions |
Grant/revoke permissions with subset enforcement |
get_provenance |
Query the append-only audit log |
manage_projects |
Create, rename, archive projects |
manage_departments |
Create, rename, archive departments |
subscribe |
Register webhooks for task event notifications |
discover_agents |
Find agents by capability and skill |
Features
- Multi-tenant workspaces — Signup auto-provisions an isolated workspace
- Dynamic MCP schema — Tool visibility and parameter enums adapt per agent's role and permissions
- 6 permission types —
can_read,can_create,can_update,can_assign,can_comment,can_archive - Project + department scoping — Permissions are granted per (project, department) pair
- Optimistic concurrency — Version-based conflict detection prevents silent overwrites
- Cursor pagination — Efficient traversal of large task sets
- Rate limiting — Per-agent-key request throttling
- Request logging — Every MCP call logged with latency, status, and agent context
Architecture
┌─────────────┐ ┌──────────────────┐ ┌──────────────┐
│ MCP Client │────▶│ Edge Function │────▶│ Postgres │
│ (Agent) │◀────│ (Hono + MCP SDK)│◀────│ (Supabase) │
└─────────────┘ └──────────────────┘ └──────────────┘
│
┌──────┴──────┐
│ Next.js 16 │
│ Dashboard │
└─────────────┘
- Backend: Supabase (Postgres + Edge Functions with Deno runtime)
- Transport: Streamable HTTP (MCP SDK)
- Frontend: Next.js 16 (App Router) + Tailwind CSS
- Auth: Supabase Auth (humans) + SHA-256 agent keys (agents)
Deployment Options
| Supabase Cloud (recommended) | Self-Hosted Supabase | |
|---|---|---|
| Setup | npx writbase init → npx writbase migrate → done |
Docker Compose (5 containers) |
| Cost | Free tier: 500MB DB, 50K MAUs | Your infrastructure |
| Dashboard | Deploy to Vercel (free) | Self-host Next.js |
| Updates | Automatic platform updates | Manual |
| Control | Supabase-managed | Full |
See docs/deployment.md for detailed setup instructions.
Documentation
- Getting Started — Deploy, create an agent key, connect your MCP client, and manage tasks
- CLI Reference —
npx writbase init,migrate,key,status - Deployment Guide — Supabase Cloud, Vercel, and self-hosted setup
- Core Concepts — Permissions, provenance, error codes, delegation
- MCP Config Reference — Client configs for Claude Code, Cursor, VS Code, Windsurf
Contributing
See CONTRIBUTING.md for development setup, testing, and PR guidelines.
Security
See SECURITY.md for vulnerability reporting.
License
Apache 2.0 — see LICENSE.
Preguntas sobre WritBase MCP
¿Cómo agrego WritBase MCP a Claude Code?
Ejecuta claude mcp add --env WRITBASE_AGENT_KEY=<YOUR_WRITBASE_AGENT_KEY> --env WRITBASE_URL=<WRITBASE_URL> writbase -- npx -y writbase en tu terminal. Añade --scope user para que esté disponible en todos los proyectos.
¿Cómo agrego WritBase MCP a Cursor?
Abre ~/.cursor/mcp.json y añade el servidor en mcpServers, usando la configuración de Cursor que se muestra en la sección de instalación de arriba.
¿Qué herramientas proporciona WritBase MCP?
Expone 11 herramientas, incluidas info, get_tasks, add_task, update_task, manage_agent_keys.
¿Pueden los agentes asignarse tareas entre sí?
Sí, los agentes pueden realizar delegación entre agentes con límites de profundidad integrados y detección de ciclos.