Ably integration
Realtime messaging and data synchronization platform. Build live chat, multiplayer games, IoT dashboards, and collaborative applications. Features include pub/sub messaging, presence detection, message history, push notifications, and WebSocket connections. Supports millions of concurrent connections with guaranteed message delivery and low latency.
Say what should happen.
The workflow builds itself.
Common Ably use cases
- push administration
- edit history
- token refresh
- device management
- subscription management
- metadata update
- capacity planning
- channel discovery
- content moderation
- device cleanup
What you can do with Ably
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Push device, 8 operations
delete_push_deviceDelete push deviceDELETEAgents: ask firstUnregisters a single device from push notifications by device ID. Returns empty response on success.delete_push_devicesDelete push devicesDELETEAgents: ask firstUnregisters multiple devices matching the filter. Use deviceId or clientId (not both) to specify which devices to remove.get_push_deviceGet push deviceGETAgents: ask firstRetrieves details of a registered push device. Returns device id, platform, form factor, metadata, push state, and recipient information.list_push_devicesList push devicesGETAgents: ask firstLists registered push devices with optional filtering by deviceId or clientId. Returns paginated array of device registration objects.patch_push_devicePatch push devicePATCHAgents: ask firstPartially updates a push device registration. Only sends changed fields. Returns the complete updated device object.register_push_deviceRegister push devicePOSTAgents: ask firstRegisters a device for push notifications. Provide platform, form factor, and push recipient details. Returns device registration with updateToken.reset_push_device_tokenReset push device tokenPOSTAgents: ask firstResets the update token for a push device registration. Invalidates the old token and returns updated device details with a new token.update_push_deviceUpdate push devicePUTAgents: ask firstUpdates an existing push device registration. Mutable fields include clientId, metadata, and push.recipient. Returns updated device details.
Message, 6 operations
batch_publishBatch publishPOSTAgents: ask firstPublishes messages to multiple channels in a single HTTP request. Supports up to 100 channels and 1000 messages per batch specification. Maximum request body is 2MiB.get_channel_messagesGet channel messagesGETAgents: ask firstRetrieves message history from an Ably channel. Filter by time range, limit results, and specify order. Returns messages with timestamps, IDs, and full payload. Requires history to be enabled on the channel.get_message_versionGet message versionGETAgents: ask firstRetrieves the latest version of a specific message by its serial. Returns the current state after any updates, deletes, or appends.get_message_versionsGet message versionsGETAgents: ask firstRetrieves all historical versions of a message. Returns the original and all updates or deletes ordered by version serial (oldest to newest).publish_messagePublish messagePOSTAgents: ask firstPublishes a message to an Ably channel for real-time delivery to all subscribers. Include event name and data payload. Messages are persisted for history if enabled. Returns message ID and timestamp on success.update_messageUpdate messagePATCHAgents: ask firstUpdates, deletes, or appends to an existing message. Specify action type (1=update, 2=delete, 5=append) and new content. Returns the version serial of the operation.
Annotation, 3 operations
get_annotation_client_summaryGet annotation client summaryGETAgents: ask firstRetrieves the annotation summary for a message filtered to a specific client ID. Returns aggregated annotation types relevant to that client with clipped=true indicating filtered results.get_annotationsGet annotationsGETAgents: ask firstRetrieves all annotations on a specific message. Returns paginated list of reactions, votes, and other annotations ordered from earliest to latest.publish_annotationsPublish annotationsPOSTAgents: ask firstPublishes annotations (reactions, votes, etc.) on a specific message. Supports create and delete actions with various aggregation types.
Presence, 3 operations
batch_presenceBatch presenceGETAgents: ask firstRetrieves presence data for multiple channels in a single request. Returns an array of objects each containing the channel name and its presence members.get_channel_presenceGet channel presenceGETAgents: ask firstGets the current presence set showing all clients on a channel. Returns client IDs, connection IDs, and optional presence data. Use to show who's online in chat rooms, active players in games, or live viewers.get_presence_historyGet presence historyGETAgents: ask firstRetrieves presence history showing enter, leave, and update events over time. Filter by time range. Returns timeline of who was present and when they joined/left.
Push subscription, 3 operations
list_push_subscriptionsList push subscriptionsGETAgents: ask firstLists push channel subscriptions with filtering by channel, clientId, or deviceId. Returns paginated array of subscription objects.subscribe_push_channelSubscribe push channelPOSTAgents: ask firstSubscribes a device or client to push notifications on a channel. Either deviceId or clientId must be provided.unsubscribe_push_channelUnsubscribe push channelDELETEAgents: ask firstRemoves push channel subscriptions. Unsubscribe by channel, deviceId, or clientId. Omitting channel removes all subscriptions for the target.
Channel, 2 operations
get_channel_statusGet channel statusGETAgents: ask firstGets channel status including whether it's active, presence occupancy count, and connection metrics. Useful for monitoring and capacity planning.list_channelsList channelsGETAgents: ask firstLists all active channels in your Ably application. Filter by prefix to find specific channel types. Returns channel names with pagination support.
Push, 2 operations
batch_push_publishBatch push publishPOSTAgents: ask firstPublishes push notifications to multiple recipients in a single request. Each spec can target different recipients with different payloads. Maximum 10,000 notifications per request.push_publishPush publishPOSTAgents: ask firstPublishes a push notification directly to a specific device or client. Supports generic notifications and platform-specific overrides for APNs, FCM, and web push.
Token, 2 operations
request_tokenRequest tokenPOSTAgents: ask firstRequests a new authentication token for Ably clients. Specify TTL, capabilities (channel permissions), and optional client ID. Returns token for secure client-side authentication.revoke_tokensRevoke tokensPOSTAgents: ask firstRevokes tokens matching specified target criteria such as clientId or revocationKey. Forces affected clients to re-authenticate. Returns revocation details with timestamps.
Push channel, 1 operation
list_push_channelsList push channelsGETAgents: ask firstLists all channels that have at least one push subscription. Returns a paginated array of channel name strings.
Stat, 1 operation
get_statsGet statsGETAgents: ask firstRetrieves usage statistics for your Ably app. Get message counts, peak connections, API calls, and bandwidth. Aggregate by minute, hour, day, or month.
Time, 1 operation
get_timeGet timeGETAgents: ask firstReturns the current Ably server time as milliseconds since the Unix epoch. Useful for clock synchronization and verifying connectivity. No authentication required.
Use Ably from Claude Code, Cursor or Codex
Connect Ably in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Ably operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Ably
- Create your workspace
Sign up free. Nothing to install.
- Connect Ably once
Add your Ably connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Ably integration FAQ
What can you do with the Ably integration?
LiveContext exposes 32 operations on Ably, covering push device, message, annotation and presence. Common uses include push administration, edit history and token refresh.
