WAKE Protocol

io.github.Omodaka9375由 GitHub 帳號 Omodaka9375 發布v2.2.2更新於 Oct 24, 2026

A post-mortem succession protocol for AI agents. Black Box, handoff, time-locks.

概覽

AI 產生的概覽

給 AI 代理使用的本機「身後交接」協定:保存擁有者的遺囑、知識與臨終留言,在長期無活動後依層級釋出給驗證者與受益人。

可以做什麼
  • 建立與修改遺囑、送出心跳、查詢協定狀態
  • 推進協定流程:強制進入 VIGIL、確認死亡、執行封存、精煉或刪除
  • 新增、列出與刪除知識條目,支援時間鎖與去識別化過濾
  • 依權杖角色讀取臨終留言、分層級的黑盒子知識與稽核紀錄
  • 為受益人產生並取得交接包
  • 匯出、匯入、備份與還原加密狀態;產生法律匯出、清除資料並核發刪除憑證
適用情境
適合希望讓 AI 代理保管指示、敏感知識或告別留言,並在設定期間的無活動或確認死亡後,依層級只釋出給指定人員,同時保留稽核紀錄的情境。
執行需求
透過 npx 或全域 npm 安裝以 stdio 在本機執行(需要 Node.js),也可作為 localhost 上的 HTTP 端點並提供網頁儀表板。使用本機 SQLite 資料庫與 data/ 下的伺服器金鑰檔案。未宣告 API 金鑰或環境變數;可用 WAKE_PORT 變更連接埠。權杖在 configure_will 時產生。
安裝前請注意
它會保存敏感的個人與知識資料,加密金鑰存放在 data/ 目錄,需妥善保護該目錄及其備份。權杖僅在初始化時產生一次;持有 master 權杖者可修改遺囑或觸發 VIGIL。多個工具會寫入、還原或永久刪除資料(包括 purge_owner_data),webhook 會把事件傳送到外部位址。README 指出 SQLite 在無伺服器託管上無法持久保存。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 WAKE Protocol,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

WAKE MCP Server

[npm] [License]

Will-Aware Knowledge Execution - A post-mortem protocol for AI agents.

23 tools · SQLite + AES-256-GCM encryption · Token auth

Quick Start

bash
# From sourcepnpm install && pnpm run buildpnpm start              # stdio + dashboard on :3000pnpm run start:http     # dashboard only (no stdio)pnpm test               # 69 tests
# npx (no install needed)npx wake-mcp-servernpx wake-mcp-server --http
# Global installnpm i -g wake-mcp-serverwake-mcp-serverwake-mcp-server --http
# Dockerdocker build -t wake-mcp-server .docker run -p 3000:3000 -v wake-data:/app/data wake-mcp-server

Connect Your Agent

Warp / Claude Desktop / Cursor — same config, different file locations:

ClientConfig file
WarpSettings → MCP
Claude Desktopclaude_desktop_config.json (under mcpServers)
Cursor.cursor/mcp.json (under mcpServers)

Using npx (recommended):

json
{  "wake-protocol": {    "command": "npx",    "args": ["wake-mcp-server"]  }}

Or with a local build:

json
{  "wake-protocol": {    "command": "node",    "args": ["<path>/wake-mcp-server/build/index.js"]  }}

Any MCP client over HTTP:

http://localhost:<port>/mcp

Default port is 3000. If taken, auto-increments. Set WAKE_PORT to override. Check the console output for the actual URL.

Agent Skill

SKILL.md — platform-agnostic instructions that teach any agent how to use WAKE:

  • Owner — auto-heartbeat, conversational will setup, proactive knowledge contribution
  • Verifier — death confirmation handling
  • Beneficiary — tier-scoped access, final messages, handoff packages
  • Executor — EULOGY management, legal export, terminal state, data purge

Point your agent at SKILL.md or include it in your system prompt.

Protocol

ACTIVE → VIGIL → EULOGY → REST
  • ACTIVE — Owner alive. Agent calls heartbeat each interaction.
  • VIGIL — Inactivity threshold exceeded. Awaiting verifier confirmation.
  • EULOGY — Succession executing. Tiered access, Black Box, final messages.
  • REST — Terminal state (archive/distill/delete). Protocol complete.

Authentication

Tokens generated once during configure_will. Three types:

  • Master — owner operations (heartbeat, configure, vigil)
  • Verifier — death confirmation only
  • Beneficiary — per-person, scoped by tier (executor/beneficiary/memorial)

Tokens stored as SHA-256 hashes. State encrypted with AES-256-GCM (server key).

Tools

Will Management

ToolAuthPhaseDescription
configure_willnoneanyCreate will, generate all tokens
update_willmasterACTIVEModify will fields
heartbeatmasterACTIVESignal owner is alive
get_statusoptionalanyProtocol status (detailed with token)

Protocol Progression

ToolAuthPhaseDescription
trigger_vigilmasterACTIVEManually force VIGIL
verify_deathverifierVIGILConfirm death event
execute_terminal_stateexecutorEULOGYExecute archive/distill/delete

Data Access

ToolAuthPhaseDescription
get_access_tierany tokenanyCheck token holder's tier
get_final_messageany tokenEULOGY/RESTRetrieve final message (time-lock aware)
get_black_boxany tokenEULOGY/RESTCompiled knowledge, tier-scoped
get_audit_logexecutoranyFull audit trail

Knowledge

ToolAuthPhaseDescription
contribute_knowledgemasterACTIVEAdd knowledge entry (category, summary, details)
list_knowledgemasterACTIVEList entries, optional category filter
delete_knowledgemasterACTIVERemove an entry

Inter-Agent Handoff

ToolAuthPhaseDescription
initiate_handoffexecutorEULOGY/RESTGenerate handoff package for a beneficiary
get_handoff_packageany tokenEULOGY/RESTSelf-serve handoff (wake-handoff-v1 JSON)

Backup & Recovery

ToolAuthPhaseDescription
export_willexecutoranyExport encrypted state blob
import_willnoneanyImport from exported blob
list_backupsexecutoranyList auto-backup snapshots
restore_backupexecutoranyRestore from backup

Legal & Compliance

ToolAuthPhaseDescription
export_legal_willexecutoranyRUFADAA-compatible legal document
purge_owner_dataexecutorRESTPermanently delete all data (right to be forgotten)
get_deletion_certificatenoneanyRetrieve deletion certificate after purge

Key Features

  • Multi-user — ownerId param on every tool, independent state per owner
  • Auto-backup — previous state saved on every write, last 5 kept
  • Background monitor — checks heartbeat staleness every 5 min, auto-triggers VIGIL
  • Dead man's switch — auto-escalates VIGIL → EULOGY if verifier doesn't respond
  • Webhooks — fire on vigil.triggered, eulogy.started, eulogy.message, rest.executed, timelock.released
  • Time-locks — releaseAfter on messages and knowledge entries, sealed until date
  • Redaction filtering — entries matching redaction categories hidden from all tiers
  • Tier-scoped Black Box — executor sees all, beneficiary sees finances/contacts/documents, memorial sees curated entries only
  • No-resurrection directive — enforceable flag propagated to handoffs and certificates
  • Jurisdiction mapping — legal export maps to applicable laws (RUFADAA, GDPR, ELVIS Act, etc.)
  • Deletion certificate — SHA-256 attested record, sole survivor of data purge

Dashboard

Web UI at http://localhost:3000. Role-based views:

  • Login — paste any token, auto-detects role
  • Owner — status, knowledge CRUD, heartbeat, VIGIL trigger, legal export
  • Verifier — status, death confirmation
  • Executor — Black Box, messages, audit, terminal state, handoff, purge
  • Beneficiary/Memorial — tier-scoped Black Box, messages

Set WAKE_PORT=8080 to change the port.

Data

SQLite database at data/wake.db. Server encryption key at data/.server-key. Deletion certificates at data/deletion-certificate-*.json.

Delete the data/ directory to reset everything.

Deploy

One-click:

[Deploy on Railway]

[Deploy on Fly.io]

CLI:

bash
# Railwayrailway init && railway up
# Fly.iofly launch       # creates app + volumefly deploy
# Dockerdocker build -t wake-mcp-server .docker run -p 3000:3000 -v wake-data:/app/data wake-mcp-server

Docker Compose:

yaml
services:  wake:    build: .    ports: ["3000:3000"]    volumes: ["wake-data:/app/data"]volumes:  wake-data:

Config files included: railway.toml, fly.toml, vercel.json, Dockerfile.

Note: Vercel is serverless — SQLite won't persist. Use Railway or Fly for production.

來源:wake-mcp-server/README.md,提交 c11b167

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.2.2最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。