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.

已驗證STDIO僅桌面檔案與儲存溝通與協作

概覽

AI 產生的概覽

讓編碼助理以已連結裝置身分讀取 Signal 聊天、訊息與聯絡人,儲存收到的檔案,並傳送文字、檔案和表情回應。

可以做什麼
  • 讀取帳號狀態、聊天與訊息(列出、檢視、搜尋、檢視鄰近訊息)以及本機聯絡人,或向 Signal 查詢最多三個號碼
  • 儲存某則訊息的檔案,可依需求解壓縮壓縮檔,並向聊天傳送 1 至 10 個附說明的檔案
  • 向聊天傳送最多 4,000 字元的文字,可引用某則訊息
  • 編輯或刪除使用者自己近期傳送的訊息,設定、替換或移除表情回應
  • 每個工具集附帶一個技能,告訴助理如何使用對應工具
適用情境
適合希望終端機中的助理查閱 Signal 對話、把附件存到目錄,或代你傳送訊息與檔案的情境;只需查詢時可開啟唯讀模式。
執行需求
透過 npm 套件以 stdio 在本機執行,需要 Node.js 24 或更新版本。需自行安裝 signal-cli(針對 0.14 測試,JVM 版本需 Java 25 以上),並用手機掃描 QR 碼把 Signal 帳號連結為裝置。傳送、查詢號碼與操作訊息需要同步服務執行中;讀取使用本機鏡像。僅支援 macOS 與 Linux。設定可透過命令列參數或 SIGNAL_TOOLS_* 環境變數提供。
安裝前請注意
狀態目錄保存 signal-cli 的金鑰,可代你讀取與傳送訊息,請勿放入共享備份。傳送、編輯、刪除與回應會改變他人看到的內容,刪除無法復原。檔案與操作工具集預設關閉,應刻意開啟。請求送出後失敗的傳送會標示為不確定,重試前請先在手機上確認。OpenCode 會默默放行未被規則命名的操作,除非加入 signal_* 的詢問規則。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

signal-tools

Signal tools for coding agents: chats, messages, contacts, received files and sends.

HarnessDeliveryPinned by
OpenCode V2native plugin (npm package, with skills)the version in the package
OpenCode V1native plugin (npm package, no skills)the version in the package
Claude Codeplugin: MCP server and skillsthe release tag, as the ref
Codexplugin: MCP server and skillsthe release tag, as the ref
Grok Buildplugin: MCP server and skillsthe release tag, as @ref
Antigravityplugin: MCP server and skillsthe release tag's tree URL
Hermes Agentnative plugin (Python, calls the command line)the release commit, as the SHA
other MCP hostMCP server from npmthe version in the package

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:

sh
gh api repos/craft-agent/signal-tools/commits/v<version> --jq .sha

OpenCode

OpenCode V2 takes the package and its options in opencode.json:

json
{  "plugins": [{ "package": "@craftsamo/signal-tools@<version>", "options": { "read_only": false } }],  "permissions": [{ "action": "signal_*", "resource": "*", "effect": "ask" }]}

OpenCode V1 takes the package as a string, or as a pair with its options:

json
{  "plugin": [["@craftsamo/signal-tools@<version>", { "read_only": false }]],  "permission": { "signal_*": "ask" }}

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

sh
npm pack @craftsamo/signal-tools@<version>tar -xzf craftsamo-signal-tools-<version>.tgzmkdir -p ~/.config/opencode/skillscp -r package/skills/* ~/.config/opencode/skills/rm -rf package craftsamo-signal-tools-<version>.tgz

Claude Code

sh
claude plugin marketplace add craft-agent/signal-tools#v<version>claude plugin install signal-tools@craft-agent

Codex

sh
codex plugin marketplace add craft-agent/signal-tools --ref v<version>codex plugin add signal-tools@craft-agent

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

sh
grok plugin install craft-agent/signal-tools@v<version> --trust

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.

sh
agy plugin install https://github.com/craft-agent/signal-tools/tree/v<version>

Hermes Agent

Hermes installs a commit, not a tag, and the plugin installs disabled:

sh
hermes plugins install craft-agent/signal-tools --ref <sha>hermes plugins enable signal-tools

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:

json
{  "mcpServers": {    "signal-tools": {      "command": "npx",      "args": ["-y", "@craftsamo/signal-tools@<version>", "--read-only"]    }  }}

Tools and skills

Each toolset comes with a skill that tells an agent how to use its tools.

Account (account)

ToolWhat it doesClass
signal_account_readeach label: linked or not, the sync service's state, the last receive and next stepread

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)

ToolWhat it doesClass
signal_chat_readby method: list finds chats, view reads one chat's messages, search finds messages by words, around reads the messages next to a messageread

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)

ToolWhat it doesClass
signal_contact_readlists local contacts or checks up to three numbers with Signalread

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)

ToolWhat it doesClass
signal_file_savesaves one message's files, and unpacks its archives when asked foradd
signal_file_sendsends 1 to 10 files (100 MiB together), with a caption, to a chatadd

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)

ToolWhat it doesClass
signal_message_sendsends one text of at most 4,000 characters to a chat, optionally quoting a messageadd

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)

ToolWhat it doesClass
signal_message_editreplaces the text of one of the user's own messagesoverwrite
signal_message_deletedeletes one of the user's own messages for everyone; it cannot be undoneadministrative
signal_message_reactsets, replaces or removes the user's emoji reaction on a messageoverwrite

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

  1. Write the spec in src/core/<domain>/<verb>.ts with defineTool: an ID <prefix>_<domain>_<verb>, a title and description, the Zod argument and output schemas, its toolset and write class, and execute(args, context). A write tool also gives targets(args, context): what the call writes to, as a permission rule should name it.
  2. Test it beside the spec (<verb>.test.ts), calling it through invoke as the entry points do. A tool that runs a program is tested against a fake of that program on PATH; no test reaches a real service.
  3. List it in src/tools.ts. A new toolset goes into toolsets in src/project.ts (and defaultToolsets when it is on by default).
  4. Add or update the toolset's skill, skills/<prefix>-<toolset>/SKILL.md.
  5. Run pnpm run build && pnpm run manifests to list the tool in plugin.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.

HarnessReads without asking
OpenCodealways; the plugin asks only before a write
Claude Codethe rule mcp__plugin_signal-tools_signal-tools__*_read in permissions.allow of ~/.claude/settings.json
Codexalways; Codex runs tools that declare readOnlyHint unasked, as the read tools do
Grok Buildgrok --allow 'MCPTool(signal-tools__*_read)' --allow 'MCPTool(signal_*_read)' (both rules; see below)
Antigravitythe rule mcp(signal-tools_signal-tools/<tool id>) in permissions.allow, one for each read tool
Hermesalways; the plugin asks only before a write

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 under grok -p, refuse a write they cannot ask about, unless it is allowed beforehand.
  • Grok Build calls the plugin's tools through its use_tool tool, 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 -p refuses a tool it cannot ask about.
  • Hermes hermes chat -q refuses a write it cannot ask about; hermes -z and --yolo skip 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.

SettingFlagVariableMeaning
toolsets--toolsetsSIGNAL_TOOLS_TOOLSETSthe toolsets that are on, or all; default those src/project.ts names
read_only--read-onlySIGNAL_TOOLS_READ_ONLYregisters no tool that writes; wins over every other setting
tools--toolsSIGNAL_TOOLS_TOOLSsingle tools to add by ID, whatever their toolset
exclude_tools--exclude-toolsSIGNAL_TOOLS_EXCLUDE_TOOLSsingle tools to remove by ID; wins over tools and toolsets
confirm--confirmSIGNAL_TOOLS_CONFIRMMCP server only: harness (default) or elicitation, as the conventions say
state_dir--state-dirSIGNAL_TOOLS_STATE_DIRwhere every label's state lives; default $XDG_STATE_HOME/signal-tools
download_dir--download-dirSIGNAL_TOOLS_DOWNLOAD_DIRwhere received files are saved; default ~/Downloads/signal-tools
send_dirs--send-dirsSIGNAL_TOOLS_SEND_DIRSthe directories files may be sent from, besides the working directory

Lists are comma-separated in a flag or a variable. Where each harness reads them:

  • OpenCode takes the plugin options shown above, with lists as arrays, read_only as a boolean, state_dir and download_dir as paths and send_dirs as 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 where opencode run starts 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.settings in config.yaml:

    yaml
    plugins:  entries:    signal-tools:      settings:        read_only: false        exclude_tools: []

    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 PATH and HOME) 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's config.toml instead of using the plugin: flags go in args, env_vars names the variables to forward from Codex's environment, and env sets fixed values.

    toml
    [mcp_servers.signal-tools]command = "npx"args = ["-y", "@craftsamo/signal-tools@<version>", "--read-only"]env_vars = ["SIGNAL_TOOLS_STATE_DIR"]

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 _ (default when linking names none). A tool's account argument 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_dir defaults 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.

sh
# Link: on the phone, Signal > Settings > Linked devices > Link new device,# then scan the code this prints.signal-tools-cli link --account work
# Start receiving at logon, and restart after a failure.signal-tools-cli service install --account worksignal-tools-cli service status --account work

--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.

CommandWhat it does
link [--account <label>] [--device-name <n>]links this machine as a device of the phone, showing the code to scan; --show-uri also prints the address the code stands for
sync [--account <label>]runs the sync service in the foreground, logging to standard error, until it is stopped
service install | uninstall | statusregisters the sync service as a launchd agent (macOS) or a systemd user unit (Linux), removes it, or reports it
remove --account <label> [--yes]uninstalls the service and deletes the label's keys, signal-cli's data, history and service log, after the label is typed back
  • The service records this package's paths, so run service install again 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> as service status shows, and loginctl enable-linger keeps 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 link again: 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_read tells 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 to dist/mcp.js and run by signal-tools.
  • src/opencode/ — the OpenCode plugin, built to dist/opencode.js.
  • src/cli/ — the command line the Hermes plugin calls, built to dist/cli.js and run by signal-tools-cli.
  • src/hermes/, plugin.yaml and __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/ and mcp_config.json — the plugin manifests of the other harnesses. Codex reads .codex-plugin/plugin.json; a root plugin.json would make it load the plugin as an Agent Plugin, whose tool budget hides tools past a fixed size. The root .mcp.json is 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

MIT

來源:README.md,提交 a651350

工具

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

版本歷史

1
  1. v0.1.1最新Nov 7, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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