Pusher Channels

v1.0.3
io.github.CrashBytes/pusher-mcp-server Checked 4 hours ago Published 9 months ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

trigger_event

Send an event to one or more Pusher channels. Use this to push realtime messages to connected clients.

ParameterTypeDescription
channel *Channel name or array of channel names (max 100)
data *Event payload — string or JSON object (max 10KB)
event *stringEvent name to trigger (e.g. 'new-message', 'update')
socketIdstringOptional socket ID to exclude from receiving the event (prevents echo)

trigger_batch_events

Send up to 10 events in a single API call. More efficient than triggering events individually when you need to notify multiple channels.

ParameterTypeDescription
events *arrayArray of events to send (max 10)

list_channels

List all active channels in your Pusher app. Optionally filter by prefix (e.g. 'presence-' or 'private-') and request subscription or user counts.

ParameterTypeDescription
infoarrayAdditional attributes to include for each channel
prefixstringFilter channels by prefix (e.g. 'presence-', 'private-chat-')

get_channel_info

Get detailed information about a specific Pusher channel, including whether it is occupied and optional subscription/user counts.

ParameterTypeDescription
channel *stringThe channel name to query
infoarrayAdditional attributes to request

get_presence_users

List all users currently connected to a presence channel. Only works with channels that start with 'presence-'.

ParameterTypeDescription
channel *stringPresence channel name (must start with 'presence-')

authorize_channel

Generate an authorization token for a private or presence channel. Useful when building auth endpoints for Pusher client connections.

ParameterTypeDescription
channel *stringPrivate or presence channel name (must start with 'private-' or 'presence-')
socketId *stringThe socket ID from the client connection
presenceDataobjectRequired for presence channels — identifies the connecting user

terminate_user_connections

Disconnect all connections for a specific user. Useful for moderation or security — forces a user offline across all channels.

ParameterTypeDescription
userId *stringThe user ID to disconnect from all channels