# writbase [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/Writbase/writbase  
**GitHub Stars:** 12  
**npm Downloads (last month):** 171  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/writbase

## Description
MCP-native task management for AI agent fleets with scoped permissions and provenance.

## Tools
Capabilities this server exposes over MCP:

- **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
- **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

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "writbase": {
    "command": "npx",
    "args": ["-y","writbase"]
  }
}
```

## Documentation

## What the writbase MCP server does

The writbase MCP server provides a shared task control plane for AI agents and human supervisors. Tasks are stored persistently in Supabase Postgres rather than in session-only agent state. Workspaces can organize tasks by project and department, while agent permissions can be scoped to those areas.

The system supports separate agent identities and keys, permission grants, task assignment, and provenance tracking. It is suited to fleets in which different agents perform roles such as CI task creation, triage, or workspace administration. The available tool surface changes according to the connected agent's role and permissions.

## How it works

An MCP client connects to a deployed Edge Function over streamable HTTP. The Edge Function uses the MCP SDK and Hono to handle requests, while Supabase supplies Postgres storage and the surrounding authentication and deployment platform. Agent requests use bearer credentials in the form of a Writbase agent key.

Worker agents can inspect their identity and permissions, search and paginate through tasks, create tasks within their permitted scope, and update tasks. Updates use version-based optimistic concurrency control, so a stale version can be detected instead of silently overwriting a newer change. Manager agents receive additional administrative tools, subject to their permissions.

The writbase MCP server records MCP request details and task changes, including provenance data. It also supports webhook registration for task event notifications. Rate limiting is applied per agent key.

## Setup and configuration

The recommended setup uses the Writbase CLI with Node 18 or newer, the Supabase CLI, and a Supabase project. Run `npx writbase init` to configure Supabase credentials, then `npx writbase migrate` to apply the database schema. Deploy the MCP Edge Function with `npx supabase functions deploy mcp-server --no-verify-jwt`.

Create an initial agent key with `npx writbase key create`, create a project, and grant the key only the permissions and project or department scope it needs. The resulting MCP endpoint follows this pattern:

```text
https://<project-ref>.supabase.co/functions/v1/mcp-server/mcp
```

Clients connect with the endpoint and an `Authorization: Bearer` header containing the agent key. The repository documents configurations for Claude Code, Cursor, VS Code, Windsurf, and Claude Desktop. Manual deployment and self-hosted Supabase are also documented; the optional dashboard can be hosted with Next.js and Vercel.

## Tools and capabilities

Worker tools include:

- `info` for agent identity, permissions, and system metadata
- `get_tasks` for filtering, pagination, and full-text task search
- `add_task` for creating tasks in an allowed scope
- `update_task` for version-controlled task changes

Manager tools include `manage_agent_keys`, `manage_agent_permissions`, `get_provenance`, `manage_projects`, `manage_departments`, `subscribe`, and `discover_agents`. These cover key rotation and deactivation, permission changes, audit-log queries, project and department administration, webhook registration, and capability-based agent discovery.

The writbase MCP server defines six permission types: read, create, update, assign, comment, and archive. Permission grants use project and department pairs, and manager permissions are subject to subset enforcement.

## Limitations and notes

The material describes Supabase as the backend and requires a Supabase project for the recommended deployment. Agent keys are shown once when created, so they must be saved by the operator. Tool access is not uniform across agents: manager-only operations are unavailable to ordinary worker agents, and each key is limited by its granted scope.

The documented MCP endpoint uses streamable HTTP rather than a local stdio process. Deployments can use Supabase Cloud or self-hosted Supabase, but self-hosting requires operating the documented infrastructure and applying updates manually.

_Full upstream README: https://allmcps.com/mcp/writbase/readme_

