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 分