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 分