Alphorn

io.github.alphorn-dev由 GitHub 账号 alphorn-dev 发布v0.1.1更新于 Oct 24, 2026

Let AI agents notify you on Slack, Telegram, email, SMS, or push via an Alphorn webhook.

已验证STDIO仅桌面效率与工作流沟通与协作

概览

AI 生成的概览

让 AI 代理通过 Alphorn webhook 在任务完成、失败或需要你决定时,向你发送 Slack、Telegram、邮件、短信或推送通知。

可以做什么
  • 通过已配置的 Alphorn webhook 发送通知,消息最长 4,000 字符。
  • 可附加简短标题和 1 到 5 的优先级,用来表示已完成、需要输入、受阻或紧急。
  • 为通知添加标签,配合 Alphorn 的过滤规则把通知路由到指定渠道,例如仅高优先级才发短信。
适用场景
适合运行耗时较长或无人值守的代理任务时使用,让你在自己的渠道上收到任务完成、失败或需要决策的提醒,而不必一直盯着会话。
运行要求
以 stdio 方式在本机运行,通常通过 npx 使用 npm 包。需要在 Alphorn(托管或自建)中创建 webhook,并把端点 URL 填入 ALPHORN_WEBHOOK_URL;仅当 webhook 要求 API 密钥时才需要 ALPHORN_API_KEY。需要 Node.js 和网络访问。
安装前请注意
webhook 端点 URL 和 API 密钥是保存在客户端配置中的机密,持有该 URL 的人即可向你的通知渠道发送消息。通知会经由第三方服务(Alphorn 及你配置的渠道)传递,消息内容会离开本机。该工具只发送消息,不读取或修改其他数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Alphorn,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Alphorn MCP Server

MCP server for Alphorn, the open-source notification router. It gives AI agents (Claude Code, Claude Desktop, Cursor, Codex, and any other MCP client) a send_notification tool, so an agent can tell you when a task finishes, fails, or needs your decision, on whatever channel you configured in Alphorn: Slack, Telegram, Discord, email, SMS, push, and more.

Works with the hosted service at app.alphorn.dev and with self-hosted Alphorn.

Setup

  1. Create a webhook in Alphorn and copy its Endpoint URL, plus its API key if you switched on Require API key (docs).
  2. Add the server to your MCP client with two environment variables:
VariableValue
ALPHORN_WEBHOOK_URLEndpoint URL, e.g. https://app.alphorn.dev/n/V1StGXR8_Z5jdHi6B-myT
ALPHORN_API_KEYWebhook API key (alp_...). Leave unset if the webhook does not require one.

Claude Code

bash
claude mcp add alphorn -s user \  -e ALPHORN_WEBHOOK_URL=https://app.alphorn.dev/n/V1StGXR8_Z5jdHi6B-myT \  -e ALPHORN_API_KEY=alp_... \  -- npx -y @alphorn/mcp

Claude Desktop (one-click bundle)

Download alphorn.mcpb from the latest release and open it. Claude Desktop asks for the Endpoint URL and API key.

Claude Desktop, Cursor, and other JSON-configured clients

Add to claude_desktop_config.json, ~/.cursor/mcp.json, or your client's MCP config:

json
{  "mcpServers": {    "alphorn": {      "command": "npx",      "args": ["-y", "@alphorn/mcp"],      "env": {        "ALPHORN_WEBHOOK_URL": "https://app.alphorn.dev/n/V1StGXR8_Z5jdHi6B-myT",        "ALPHORN_API_KEY": "alp_..."      }    }  }}

OpenAI Codex CLI

toml
# ~/.codex/config.toml[mcp_servers.alphorn]command = "npx"args = ["-y", "@alphorn/mcp"]env = { ALPHORN_WEBHOOK_URL = "https://app.alphorn.dev/n/V1StGXR8_Z5jdHi6B-myT", ALPHORN_API_KEY = "alp_..." }

Tool

send_notification

ArgumentTypeRequiredDescription
messagestringyesWhat happened and what the agent needs from you (max 4,000 characters)
titlestringnoShort title, e.g. my-app - tests passing (max 200 characters)
priorityinteger 1-5no2 = finished, 3 = needs input, 4 = blocked or failed, 5 = urgent
tagsstring[]noTags to filter and route on in Alphorn, e.g. ["ai-agent", "completed"]

The tool wraps Alphorn's send endpoint. For direct HTTP use, see the API reference and the OpenAPI 3.1 specification.

Use Alphorn's filters to decide where each notification goes, for example SMS only for priority 4 and above.

Development

bash
pnpm installpnpm test   # builds, then runs the tests against a local fake endpoint

Releasing

  1. Bump version in package.json, server.json (both fields), manifest.json, and VERSION in src/server.ts.
  2. npm publish --access public
  3. Push a v<version> tag (or run the Publish to MCP Registry workflow): it publishes server.json to the MCP Registry via GitHub OIDC
  4. pnpm bundle, then attach alphorn.mcpb to a GitHub release

License

AGPL-3.0-or-later

来源:README.md,提交 4cacb42

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Oct 12, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分