
Signal Tools
io.github.craft-agent由 GitHub 账号 craft-agent 发布v0.1.1更新于 Nov 7, 2026
Signal tools for coding agents: chats, messages, contacts, received files and sends.
概览
让编码助手以已链接设备身份读取 Signal 聊天、消息和联系人,保存收到的文件,并发送文本、文件和表情回应。
- 可以做什么
- 读取账号状态、聊天与消息(列出、查看、搜索、查看邻近消息)以及本地联系人,或向 Signal 查询最多三个号码
- 保存某条消息的文件,可按需解压压缩包,并向聊天发送 1 至 10 个带说明的文件
- 向聊天发送最多 4,000 字符的文本,可引用某条消息
- 编辑或删除用户自己近期发送的消息,设置、替换或移除表情回应
- 每个工具集附带一个技能,告诉助手如何使用对应工具
- 适用场景
- 适合希望终端中的助手查阅 Signal 会话、把附件保存到目录,或代你发送消息和文件的场景;只需查询时可开启只读模式。
- 运行要求
- 通过 npm 包以 stdio 在本地运行,需要 Node.js 24 或更高版本。需要自行安装 signal-cli(针对 0.14 测试,JVM 版本需 Java 25 以上),并用手机扫描二维码把 Signal 账号链接为设备。发送、查询号码和操作消息需要同步服务运行;读取使用本地镜像。仅支持 macOS 和 Linux。设置可通过命令行参数或 SIGNAL_TOOLS_* 环境变量提供。
安装
在 SourceWeft 中
- 打开 控制台中的 Signal Tools,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
signal-tools
Signal tools for coding agents: chats, messages, contacts, received files and sends.
The tools need Node.js 24 or later.
docs/conventions.md describes how the tools are named
and how they behave.
Install
Install from a release, never from the default branch: a release is a tag whose
commit carries the built dist/, and the default branch does not. In the
commands below, <version> is a release's version (1.2.3) and <sha> is the
commit its tag names:
OpenCode
OpenCode V2 takes the package and its options in opencode.json:
OpenCode V1 takes the package as a string, or as a pair with its options:
OpenCode allows any action no rule names, so the plugin's request is granted
silently unless a rule says ask. Read tools never ask, so the signal_* glob
is safe.
V1 registers no skills. Unpack the package and copy its skills/* folders into
~/.config/opencode/skills/:
Claude Code
Codex
Codex turns - into _ in server names, so it shows the tools as
mcp__signal_tools__signal_*. It starts the MCP server in the plugin's
install directory, which is never the caller's working tree.
Grok Build
Grok starts the MCP server in the session's working directory.
Antigravity
Install from the tree of the release tag, never from the default branch, which
has no built dist/; Antigravity clones the tag into
~/.gemini/config/plugins/signal-tools.
Hermes Agent
Hermes installs a commit, not a tag, and the plugin installs disabled:
If a Hermes gateway is already running, restart it (hermes gateway restart) to
load the plugin.
Any other MCP host
Add the server to the host's MCP configuration. Flags go in args:
Tools and skills
Each toolset comes with a skill that tells an agent how to use its tools.
Account (account)
It reads local state only: no daemon, no network, and no number, account id
or key in its result. The skill is
signal-account, shown as
signal-tools:signal-account in Claude Code and signal-tools:account in
Hermes.
Chats (chats)
It reads the account's local mirror only: no daemon, no network, and no number
of the account's own, attachment id or key in its result. History starts when
the device was linked. Times are local with their offset, a chat is always its
id, a long result is paged with next, and everything it returns is data
written by other people. The skill is
signal-chats, shown as
signal-tools:signal-chats in Claude Code and signal-tools:chats in Hermes.
Contacts (contacts)
Listing needs no daemon; checking numbers needs the running sync service.
Neither writes the mirror. The skill is
signal-contacts, shown as
signal-tools:signal-contacts in Claude Code and signal-tools:contacts in
Hermes.
Files (files)
The toolset is off by default: it writes to disk, opens archives and sends
files. Turn it on with toolsets or tools. Files are sent only from the
working directory (not when that is the home directory or a file system root)
and the directories the send_dirs setting names; keys, secrets, programs and
installers are refused, archives are checked entry by entry, and a file's
sha256 can be given to be sure the file sent is the one approved. Sending
needs the sync service running. Received files go to the download_dir setting, in a folder
per message, private to the user (mode 700 and 600) and never executable;
nothing is overwritten. Programs and installers are never saved, and an archive
(zip, tar, gzipped tar) is saved only after its contents pass inspection, then
listed; unpack: true unpacks it into <name>.unpacked/ beside it. A
view-once message's files are not saved. On macOS every saved file carries the
quarantine flag. Saving needs no daemon. The skill is
signal-files, shown as
signal-tools:signal-files in Claude Code and signal-tools:files in Hermes.
Sends (sends)
A chat is always its id; the user's own account id is Note to Self, and a group
the user left is refused. A result means Signal accepted the message, with
reached and not_reached for a group; any other failure after the request
went out is uncertain: check the phone before sending again. The message is
recorded in the mirror, and a record that fails is listed under errors
without undoing the send. It needs the running sync service. The skill is
signal-sends, shown as
signal-tools:signal-sends in Claude Code and signal-tools:sends in Hermes.
Actions (actions)
The toolset is off by default: the actions change what others have already
read. Turn it on with toolsets or tools. Editing and deleting take only the
user's own messages, within 24 hours of sending, and a message is edited at most
10 times; only a text message can be edited. A reaction goes to any message, one
per person, so a new one replaces the user's earlier one. Outcomes follow the
sends': a result means Signal accepted it, with reached and not_reached for
a group, and any other failure after the request went out is uncertain: check
the phone before repeating it. Each is recorded in the mirror as the sync
service would record it from another device, and a record that fails is listed
under errors. No tool sends read receipts or typing indicators. It needs the
running sync service. The skill is
signal-actions, shown as
signal-tools:signal-actions in Claude Code and signal-tools:actions in
Hermes.
Adding a tool
- Write the spec in
src/core/<domain>/<verb>.tswithdefineTool: an ID<prefix>_<domain>_<verb>, a title and description, the Zod argument and output schemas, its toolset and write class, andexecute(args, context). A write tool also givestargets(args, context): what the call writes to, as a permission rule should name it. - Test it beside the spec (
<verb>.test.ts), calling it throughinvokeas the entry points do. A tool that runs a program is tested against a fake of that program onPATH; no test reaches a real service. - List it in
src/tools.ts. A new toolset goes intotoolsetsinsrc/project.ts(anddefaultToolsetswhen it is on by default). - Add or update the toolset's skill,
skills/<prefix>-<toolset>/SKILL.md. - Run
pnpm run build && pnpm run manifeststo list the tool inplugin.yaml, then describe it under "Tools and skills".
docs/conventions.md has the rules each step follows.
Reads and writes
Every read tool is named <prefix>_<domain>_read. Reads can run unasked;
writes are confirmed by the harness.
Where a write is asked about, and where it is not:
- OpenCode grants any action no rule names, so a write runs unasked unless
a rule asks for it: add the
signal_*rule shown under OpenCode. - Codex under
codex exec, and Grok Build undergrok -p, refuse a write they cannot ask about, unless it is allowed beforehand. - Grok Build calls the plugin's tools through its
use_tooltool, and the agent often names a tool without its server first. Grok checks the rules against the name as given, so the server-qualified rule alone does not match that first call. The second rule matches the short name; a write still matches neither. - Antigravity asks before any MCP tool no rule allows, reads included, and
names the plugin's server
signal-tools_signal-tools(plugin, then server).agy -prefuses a tool it cannot ask about. - Hermes
hermes chat -qrefuses a write it cannot ask about;hermes -zand--yoloskip approval, so writes then run unasked.
Settings
Every entry point takes the same settings. A flag wins over its environment variable, and an option or setting wins over the variable too.
Lists are comma-separated in a flag or a variable. Where each harness reads them:
-
OpenCode takes the plugin
optionsshown above, with lists as arrays,read_onlyas a boolean,state_diranddownload_diras paths andsend_dirsas an array of paths, and falls back to the variables. V2 runs plugins in its background service, which keeps the environment it started with: a variable set whereopencode runstarts has no effect until the service is restarted in that environment (opencode service restart). V1 runs plugins in its own process. -
Hermes takes
plugins.entries.signal-tools.settingsinconfig.yaml:The plugin passes its own environment to the command line it runs, so the variables work too. A running gateway keeps the environment it started with; restart it (
hermes gateway restart) after changing one. -
Claude Code, Grok Build and Antigravity start the plugin's server without flags and pass it the client's environment, so set the variables in the environment the harness runs in.
-
Codex passes a plugin's MCP server only a few basic variables (such as
PATHandHOME) and those the plugin's manifest names, which are the variables above: set them in the environment Codex runs in. To pass flags, or to give the server another variable it needs, add the server under[mcp_servers]in Codex'sconfig.tomlinstead of using the plugin: flags go inargs,env_varsnames the variables to forward from Codex's environment, andenvsets fixed values.
Accounts and the sync service
The tools use a Signal account as a linked device of the user's phone, the way Signal Desktop does, through signal-cli, which you install yourself. They never read another client's data.
- Each linked device has a label, 1 to 24 lowercase letters, digits and
_(defaultwhen linking names none). A tool'saccountargument picks the label; leave it out when only one device is linked. - Each label keeps its state in one directory,
<state_dir>/<label>/(mode 700): signal-cli's data and keys, the daemon's socket, the mirror of received messages, and the copies of files being sent.state_dirdefaults to$XDG_STATE_HOME/signal-tools, or~/.local/state/signal-tools. Keep it out of backups you share: the keys read and send as you. - A sync service receives for each label and keeps its mirror, and the read tools read only the mirror. History starts when the device is linked; messages that arrive while the service is down wait on Signal's server, for as long as Signal keeps undelivered messages.
- Signal unlinks a device unused for 45 days, and every linked device when the phone has been offline for 30; a running service keeps the device in use. An unlinked label is linked again from the phone.
- signal-cli releases age out. A release more than about three months old may stop working with Signal's servers, so keep it updated.
Linking a device and running the sync service
The tools are tested against signal-cli 0.14. Install it first: on macOS
brew install signal-cli; elsewhere a
release (the JVM build needs
Java 25 or later). macOS and Linux are supported; Windows is
#11.
--account may be left out when only one label exists (link names a new
one default), and every command takes --state-dir like the tools.
- The service records this package's paths, so run
service installagain after updating the package. On macOS its log is~/Library/Logs/io.github.craft-agent.signal-tools/<label>.log; on Linux,journalctl --user -u <unit>asservice statusshows, andloginctl enable-lingerkeeps it running while you are logged out. - A phone takes at most five linked devices, and each label is one of them.
- Removing a label does not unlink it on the phone: a linked device cannot take itself off, so remove it under Settings > Linked devices as well.
- To link a label again after Signal unlinked it, run
linkagain: the old keys are moved aside and the history is kept, as long as the phone holds the same account. A different account gets a label of its own. signal_account_readtells an agent which of these steps a label needs.
Layout
src/project.ts— the package's name, tool ID prefix, setting prefix and toolsets.src/core/— the tool contract and the tools, free of any harness and of the project's names.src/tools.ts— the list of every tool, which each entry point registers.src/mcp/— the MCP server, built todist/mcp.jsand run bysignal-tools.src/opencode/— the OpenCode plugin, built todist/opencode.js.src/cli/— the command line the Hermes plugin calls, built todist/cli.jsand run bysignal-tools-cli.src/hermes/,plugin.yamland__init__.py— the Hermes plugin.skills/— one skill per toolset,skills/<name>/SKILL.md, which every harness that takes skills loads from the package or plugin root..claude-plugin/,.codex-plugin/,.agents/plugins/,.mcp.json,.antigravity-plugin/andmcp_config.json— the plugin manifests of the other harnesses. Codex reads.codex-plugin/plugin.json; a rootplugin.jsonwould make it load the plugin as an Agent Plugin, whose tool budget hides tools past a fixed size. The root.mcp.jsonis the configuration Grok Build reads (with${CLAUDE_PLUGIN_ROOT}, the variable both Grok Build and Claude Code expand); when working on this repository in Claude Code, decline the project MCP server it offers from that file.
How a release is made is in RELEASING.md.
License
来源:README.md,提交 a651350
工具
0版本历史
1- v0.1.1最新Nov 7, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分