Real-time messaging and WebSocket infrastructure.
## Pusher MCP Server: Real-Time Communication The **Pusher MCP Server** integrates Pusher's real-time messaging platform into Google Antigravity. This enables building live features like notifications, chat, and real-time updates with simple pub/sub APIs. ### Why Pusher MCP? Pusher powers real-time apps: - **Instant Delivery**: Sub-second message latency - **Scalability**: Millions of connections - **Simple API**: Easy pub/sub model - **Presence**: Track online users - **Cross-Platform**: Web, mobile, server SDKs ### Key Features #### 1. Publish Events ```python import pusher pusher_client = pusher.Pusher( app_id="your-app-id", key="your-key", secret="your-secret", cluster="us2" ) # Trigger event pusher_client.trigger( "my-channel", "my-event", {"message": "Hello from Antigravity!"} ) # Batch trigger pusher_client.trigger_batch([ {"channel": "user-1", "name": "notification", "data": {"text": "New message"}}, {"channel": "user-2", "name": "notification", "data": {"text": "Order shipped"}} ]) ``` #### 2. Private Channels ```python # Server-side authentication @app.route("/pusher/auth", methods=["POST"]) def pusher_auth(): channel_name = request.form["channel_name"] socket_id = request.form["socket_id"] auth = pusher_client.authenticate( channel=channel_name, socket_id=socket_id ) return jsonify(auth) ``` #### 3. Presence Channels ```python # Track who's online @app.route("/pusher/auth", methods=["POST"]) def pusher_auth(): auth = pusher_client.authenticate( channel=request.form["channel_name"], socket_id=request.form["socket_id"], custom_data={ "user_id": current_user.id, "user_info": {"name": current_user.name} } ) return jsonify(auth) ``` ### Configuration ```json { "mcpServers": { "pusher": { "command": "npx", "args": ["-y", "@anthropic/mcp-pusher"], "env": { "PUSHER_APP_ID": "your-app-id", "PUSHER_KEY": "your-key", "PUSHER_SECRET": "your-secret", "PUSHER_CLUSTER": "us2" } } } } ``` ### Use Cases **Live Notifications**: Push updates to users instantly. **Chat Applications**: Build real-time messaging features. **Live Dashboards**: Update metrics in real-time. The Pusher MCP Server brings real-time messaging to Antigravity.
{
"mcpServers": {
"pusher": {}
}
}