Writbase

io.github.Writbase由 GitHub 账号 Writbase 发布v0.1.3更新于 Oct 24, 2026

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

已验证Streamable HTTP可网页运行效率与工作流开发者工具安全与监控

概览

AI 生成的概览

WritBase 是面向 AI 智能体集群的 MCP 原生任务登记系统,让助手在限定权限内创建、搜索和更新任务并保留溯源记录。

可以做什么
查看智能体身份、权限和系统元数据,并按筛选条件、分页和全文搜索列出任务,支持优先级过滤和游标翻页。在允许范围内创建任务,并通过基于版本号的乐观并发控制更新任务。面向管理者智能体:创建、轮换和停用智能体密钥,并按子集规则授予或撤销权限。管理项目和部门,并查询只追加的审计日志以获取溯源信息。注册任务事件 webhook,并按能力和技能发现其他智能体。
适用场景
当多个 AI 智能体或人类主管需要共享一个持久任务登记系统,而不是把状态散落在文件和聊天记录中时适用,尤其适合需要按智能体限定权限、智能体间委派和审计追踪的场景。
运行要求
需要一个 Supabase 项目上的远程 MCP 端点地址(WRITBASE_URL),以及通过 Authorization Bearer 请求头发送的智能体密钥(WRITBASE_AGENT_KEY)。自行部署实例需要 Node 18+、Supabase CLI 和一个 Supabase 项目;npm 包可通过 npx 在本地运行。
安装前请注意
智能体密钥是仅显示一次的凭据,拥有被授予的全部权限,应妥善保管并尽量缩小授权范围。管理者工具可创建、轮换和停用密钥,更改权限,归档项目和部门,以及注册 webhook,会改变访问权限和数据。任务和审计记录会写入你的 Supabase Postgres 数据库。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Writbase,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

WritBase

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.

[License] [CI] [MCP Compatible]


[WritBase MCP demo — agent creates a task and delegates to another agent]

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:

bash
npx writbase init        # Interactive setup — configures Supabase credentialsnpx writbase migrate     # Apply database schemanpx 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-jwt

See the CLI README for all commands.

Option B: Manual Setup

Clone and deploy manually
bash
git clone https://github.com/Writbase/writbase.gitcd writbase && npm install
# Create a free project at supabase.com/dashboard, then:npx supabase link --project-ref <your-project-ref>npx supabase db pushnpx supabase functions deploy mcp-server --no-verify-jwt

Optional dashboard: cp .env.example .env.local → edit with your Supabase URL + anon key → npm run dev

See 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:

  1. Create a project — e.g., my-app. Optionally add departments (backend, frontend, devops)
  2. Create an agent key — name it, pick the worker role, save the key (wb_<key_id>_<secret> — shown once)
  3. 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 Code
bash
claude mcp add writbase \  --transport http \  --url https://<project-ref>.supabase.co/functions/v1/mcp-server/mcp \  --header "Authorization: Bearer wb_<key_id>_<secret>"
Cursor

Add to .cursor/mcp.json:

json
{  "mcpServers": {    "writbase": {      "type": "streamableHttp",      "url": "https://<project-ref>.supabase.co/functions/v1/mcp-server/mcp",      "headers": { "Authorization": "Bearer wb_<key_id>_<secret>" }    }  }}
VS Code / Copilot

Add to .vscode/mcp.json:

json
{  "servers": {    "writbase": {      "type": "http",      "url": "https://<project-ref>.supabase.co/functions/v1/mcp-server/mcp",      "headers": { "Authorization": "Bearer wb_<key_id>_<secret>" }    }  }}
Windsurf / Claude Desktop / Other

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

AgentRoleScoped toUse case
ci-botworkermy-app/devops — can_createCI creates tasks on build failure
triage-agentworkermy-app (all depts) — can_commentReviews tasks, adds notes
ops-managermanager(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)

ToolDescription
infoAgent identity, permissions, and system metadata
get_tasksList tasks with filtering, pagination, and full-text search
add_taskCreate a task in permitted scope
update_taskUpdate a task with optimistic concurrency control

Manager Tools (manager agents only)

ToolDescription
manage_agent_keysCreate, update, deactivate, rotate agent keys
manage_agent_permissionsGrant/revoke permissions with subset enforcement
get_provenanceQuery the append-only audit log
manage_projectsCreate, rename, archive projects
manage_departmentsCreate, rename, archive departments
subscribeRegister webhooks for task event notifications
discover_agentsFind 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
Setupnpx writbase init → npx writbase migrate → doneDocker Compose (5 containers)
CostFree tier: 500MB DB, 50K MAUsYour infrastructure
DashboardDeploy to Vercel (free)Self-host Next.js
UpdatesAutomatic platform updatesManual
ControlSupabase-managedFull

See docs/deployment.md for detailed setup instructions.

Documentation

Contributing

See CONTRIBUTING.md for development setup, testing, and PR guidelines.

Security

See SECURITY.md for vulnerability reporting.

License

Apache 2.0 — see LICENSE.

来源:README.md,提交 598bef6

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v0.1.3最新Sep 16, 2026

评分

已满足适用检查项的 60%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分