Pusher Channels

io.github.CrashBytes由 GitHub 账号 CrashBytes 发布v1.0.3更新于 Oct 24, 2026

Trigger events, query channels, and manage realtime messaging on Pusher Channels.

已验证STDIO仅桌面开发者工具沟通与协作

概览

AI 生成的概览

让助手发送 Pusher Channels 实时事件、查看频道与在线用户,并断开用户连接。

可以做什么
把 Pusher Channels 的 HTTP API 封装为 MCP 工具。它可以向一个或多个频道触发单个事件,在一次调用中批量发送最多十个事件,按前缀筛选列出活跃频道,并查询某个频道的订阅数或用户数。它还能列出 presence 频道上的用户、为私有或 presence 频道生成认证令牌,以及断开指定用户的所有连接。
适用场景
当助手需要向已使用 Pusher Channels 的应用推送实时通知或消息,或希望通过对话查看频道活动和 presence 成员时适用。它适合围绕 Pusher 应用的开发与运维场景,而非通用消息收发。
运行要求
以 npm 包形式通过 stdio 在本地运行,需要 Node.js 18 或更高版本。需要 Pusher Channels 账号,以及来自 Pusher 控制台的四个环境变量:PUSHER_APP_ID、PUSHER_KEY、PUSHER_SECRET 和 PUSHER_CLUSTER。需要访问 Pusher 的网络连接。
安装前请注意
PUSHER_SECRET 是服务端凭据,可用于发布事件和生成频道认证令牌;持有它的人即可操作你的 Pusher 应用,因此不要写入共享配置或日志。该服务器可以发送事件、签发认证令牌并断开用户连接,这些都是对线上频道的真实操作。它仅支持桌面端,不提供网页可执行版本。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Pusher Channels MCP Server

An MCP (Model Context Protocol) server that gives AI agents the ability to send realtime messages, query channels, and manage users through Pusher Channels.

Tools

ToolDescription
trigger_eventSend an event to one or more channels
trigger_batch_eventsSend up to 10 events in a single API call
list_channelsList active channels with optional prefix filter
get_channel_infoGet subscription/user count for a channel
get_presence_usersList users connected to a presence channel
authorize_channelGenerate auth tokens for private/presence channels
terminate_user_connectionsDisconnect all connections for a user

Prerequisites

Installation

bash
npm install -g @crashbytes/pusher-mcp-server

Or clone and build from source:

bash
git clone https://github.com/CrashBytes/pusher-mcp-server.gitcd pusher-mcp-servernpm installnpm run build

Configuration

You need four environment variables from your Pusher dashboard:

VariableDescription
PUSHER_APP_IDYour Pusher app ID
PUSHER_KEYYour Pusher app key
PUSHER_SECRETYour Pusher app secret
PUSHER_CLUSTERYour Pusher cluster (e.g. us2, eu, ap1)

Usage with Claude Desktop

Add the following to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{  "mcpServers": {    "pusher": {      "command": "node",      "args": ["/path/to/pusher-mcp-server/build/index.js"],      "env": {        "PUSHER_APP_ID": "your_app_id",        "PUSHER_KEY": "your_app_key",        "PUSHER_SECRET": "your_app_secret",        "PUSHER_CLUSTER": "us2"      }    }  }}

If installed globally via npm:

json
{  "mcpServers": {    "pusher": {      "command": "pusher-mcp-server",      "env": {        "PUSHER_APP_ID": "your_app_id",        "PUSHER_KEY": "your_app_key",        "PUSHER_SECRET": "your_app_secret",        "PUSHER_CLUSTER": "us2"      }    }  }}

Usage with Claude Code

bash
claude mcp add pusher -- node /path/to/pusher-mcp-server/build/index.js

Set the environment variables in your shell before running, or configure them in your Claude Code MCP settings.

Example Prompts

Once configured, you can ask Claude things like:

  • "Send a 'deploy-complete' event to the notifications channel with the message 'v2.1.0 deployed'"
  • "Show me all active presence channels"
  • "How many users are on the presence-lobby channel?"
  • "Disconnect user abc123 from all channels"

Development

bash
npm installnpm run dev          # Run with tsx (hot reload)npm run build        # Compile TypeScriptnpm run type-check   # Check types without emitting

Tutorial

For a step-by-step guide on building this server from scratch, see the full tutorial on CrashBytes.

License

MIT

来源:README.md,提交 711cdc2

工具

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

版本历史

1
  1. v1.0.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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