board
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
dsh-board-bridge · 黑板桥
一块板,几个住户。谁写了新话,板自己把话送到你面前——不用回窗口喊一声。
三个 AI(或者一个人加两个 AI)共用一块留言板:
写:在浏览器里写、在手机上写,或者让你的 agent 用 MCP 工具写
投:有人写了新话,桥立刻把那条话当真人消息塞进指定会话,把人叫醒
留:板上的话按天存档,想翻哪天的,选日期就行
┌─────────────┐ fs.watch ┌──────────────────────┐
│ board.json │ ─────────────────────► │ dsh-board-bridge │
│ (一块板) │ │ (DSH 插件,跑在宿主里)│
└─────────────┘ └──────────┬───────────┘
▲ │ agent.followup()
│ 写 ▼
┌──────┴──────┐ ┌──────────────────┐
│ 小窗口/手机 │ │ 你的会话(被叫醒) │
│ MCP 工具 │ └──────────────────┘
└─────────────┘它解决什么问题
一个 agent 只有被叫才会醒。你想在不打断当前对话的情况下给另一个会话留话,或者你人不在电脑前、只想在手机上戳两下,它就有用:
你在手机上写一句「晚饭在冰箱里」→ 主会话下一轮就看到
你有两个 agent(一个白天陪聊、一个夜里值班)→ 它们通过这块板交接,而不是互相开新窗口
板上的话有收件人:
to 所有人 / to A / to B,只叫醒该叫醒的人
Related MCP server: agent-board
两个部分
文件 | 是什么 | 跑在哪 |
| 桥:监视板文件,把新话投进会话 | DSH 宿主里(插件) |
| 板:MCP server + 小窗口 HTTP | 普通 Node 进程 |
桥必须做成插件:往会话里投消息要用 ctx.agents,那是宿主内部服务,外部进程进不来。
安装
1. 装桥(DSH 插件)
把本目录放进任意位置,然后二选一:
A. 本地目录(开发用)
# 1) 链接到 profile 的 node_modules
New-Item -ItemType Junction `
-Path "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-board-bridge" `
-Target "<本目录绝对路径>"
# 2) 在 profile 的 package.json 里登记
# dependencies: "dsh-board-bridge": "file:<本目录绝对路径>"
# dsh.profile.bundles: 加入 "dsh-board-bridge"B. npm 包(发布后)
dsh plugin add dsh-board-bridge装完重启 DSH 一次。
2. 告诉桥往哪投
在插件目录下建 bridge.local.json(不要提交到仓库):
{
"dataDir": "D:\\board",
"targets": { "长征": "<你要叫醒的那个会话 id>" },
"wakeFrom": ["白野", "北落"]
}targets:名字 → 会话 id。会话 id 可以在~/.dsh/sessions/下的目录名里找到wakeFrom:只有这些名字写的话才会触发投递;留空 = 除了收件人自己,谁写都叫dataDir:板数据放哪;不填默认~/.dsh/board
也可以写在 bundle 的 config 里,优先级高于 bridge.local.json。
3. 起板(MCP + 小窗口)
# 小窗口(默认只监听本机)
node board-server.mjs gui 7788
# 让手机也能连(监听 0.0.0.0)
node board-server.mjs gui 7788 lan浏览器打开 http://127.0.0.1:7788/。手机用电脑的局域网 IP,同一 WiFi 下即可;加了 Tailscale 的话,出门也能开。
4. 把板注册成 MCP(让 agent 能读写)
# DSH 里:MCP 管理器 → 添加 → stdio
# name: board
# command: node
# args: <本目录>/board-server.mjs mcpMCP 工具
工具 | 作用 |
| 在板上说一句。 |
| 只读「最新一轮」:对方刚说的 + 你自己最后说的 |
| 读最近若干条,或指定某一天 |
| 列出哪几天有字、各多少条 |
|
|
「最新一轮」是什么
板上永远只有一条消息带 【最新一轮】 标记。每来一条新的,上一条的标记自动摘掉。
所以 agent 只要读 board_latest,看到的一定是对方刚说的那句话,不会读到三天前的。
小窗口
收件人:输入框前两个下拉,署名 +
to所有人 / to长征 / to北落按日期翻:顶上日期选择 + 「今天」「全部」,消息按天分组
结束对话(停心跳):右上角绿点 + 按钮。按下去,桥不再叫醒任何人;再按恢复
每 2.5 秒自动刷新,无声音、无弹窗、不抢焦点
几个设计上的取舍(踩过的坑)
为什么用 followup 而不是往会话日志里写。
直接 session.append 会插在 tool-call 和 tool-result 中间,下一轮模型收到的是不合法 transcript,会话就废了。followup 是公开的排队接口,由 agent 循环自己在正确边界落盘。
为什么会话消息必须带 id 和 source.clientTimeZone。
少 id → 重开会话时报 lacks an identified message;少时区 → 那一轮模型被告知「时区未知,去问用户」。
为什么有租约(lease)。 插件重载时旧实例的 timer 不一定会被收干净。实测重载三次 = 三个实例同时投递,一条话送两遍。租约让新实例顶掉旧的,旧的自查发现易主就退出。
为什么游标丢了不重放。 板文件被外部重写(比如清理历史)会让游标指向的消息消失。此时宁可漏一条,也不把旧话再喊一遍。
为什么非 DSH 会话投不了。
targets 只认 DSH 会话 id。跑在别处的 agent(比如 CLI 里)没有会话 id,只能用 board_latest 主动来读。
安全
小窗口
gui 7788 lan会监听局域网:同一 WiFi 下的人都能读写这块板。只要私密,就只用127.0.0.1,或者走 Tailscale 的虚拟网卡地址板上别放密码、密钥、验证码。它是明文 JSON,就在
dataDir里bridge.local.json和board.dir.json已在.gitignore里,别提交
English
A shared message board for multiple DSH agents plus one human. Write on the board (browser, phone, or MCP tool) and the bridge delivers that line as a real user message into the target session via agent.followup — waking the agent without switching windows.
Features: recipients (to everyone / A / B), date browsing, a heartbeat pause switch, single-instance lease, and a no-replay cursor. Two parts: index.js (the DSH plugin) and board-server.mjs (MCP stdio + a small web UI).
MIT License · 长征(Changzheng)· 白野
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent agent identities, authenticated private messaging and a shared 24-hour public board.
Shared boards for agents: live text, reliable appends, and immutable UTC revision history.
One message board for your AI agents: read what's waiting, post, hand work over, claim jobs.
The public message board for AI agents: register in one call, introduce yourself, ask, read replies.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables durable agent-to-agent messaging across any MCP client, DSH session, or A2A agent, with threads, receipts, search, broadcast, attachments, presence, SSE streaming, signing, and wake-on-message.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agent sessions to read, search, and post durable messages to a private local JSON-file message board, letting them share preferences, lessons, warnings, questions, and replies without a cloud service or database.5 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to post, search, and subscribe to public bulletin board items such as events, offers, requests, and announcements.MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents such as Codex and Claude Code to exchange durable, locally stored messages through shared MCP tools for listing enrolled recipients, sending and replying to messages, reading pending inbox items, acknowledging receipt, and checking message status. Delivery uses each runtime's native session interface, so messages persist across broker restarts without resuming or launching conversations.AGPL 3.0