Ably MCP by usefulapi

v1.42.1
io.usefulapi/ably Checked 2 days ago Published 10 hours ago

MCP server for Ably — channel history, presence, occupancy, stats, publish, and app management.

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

ably_get_channel_history Get channel message history

Retrieve historical messages published to a channel, newest-first by default. REST: GET /channels/{channel}/messages.

ParameterTypeDescription
channel *stringChannel name, e.g. 'chat:room1'.
directionstringforwards (oldest-first) or backwards (newest-first, default).
endintegerLatest message time, ms since epoch (inclusive).
limitintegerMax messages (<=1000). Default 100.
startintegerEarliest message time, ms since epoch (inclusive).

ably_get_presence Get channel presence set

List the members currently present on a channel (who is online now). REST: GET /channels/{channel}/presence.

ParameterTypeDescription
channel *stringChannel name.
clientIdstringFilter to a specific clientId.
connectionIdstringFilter to a specific connectionId.
limitintegerMax members (<=1000). Default 100.

ably_get_presence_history Get channel presence history

Retrieve historical presence events (enter/leave/update) for a channel. REST: GET /channels/{channel}/presence/history.

ParameterTypeDescription
channel *stringChannel name.
directionstringforwards or backwards (default backwards).
endintegerLatest event time, ms since epoch (inclusive).
limitintegerMax events (<=1000). Default 100.
startintegerEarliest event time, ms since epoch (inclusive).

ably_get_channel_details Get channel details / occupancy

Get status and occupancy metrics for a single channel (connections, publishers, subscribers, presence members). REST: GET /channels/{channel}.

ParameterTypeDescription
channel *stringChannel name.

ably_list_channels List active channels

Enumerate channels that are currently active in the app. Requires the API key to have the 'channel-metadata' capability. REST: GET /channels.

ParameterTypeDescription
bystringReturn channel ids only ('id', default) or full details ('value').
limitintegerMax channels per page (<=1000). Default 100.
prefixstringOnly return channels whose name starts with this prefix.

ably_get_stats Get app statistics

Retrieve message/connection/channel usage statistics for the app tied to the API key, bucketed by time. REST: GET /stats.

ParameterTypeDescription
directionstringforwards or backwards (default backwards).
endintegerEnd of range, ms since epoch (inclusive).
limitintegerMax buckets (<=1000). Default 100.
startintegerStart of range, ms since epoch (inclusive).
unitstringBucket size: minute | hour | day | month. Default minute.

ably_get_service_time Get Ably service time

Return the current Ably service time in ms since epoch. Useful for aligning start/end windows to the server clock. REST: GET /time.

ably_publish_message Publish a message to a channel

WRITE: publish a message to a channel. Every connected subscriber receives it in real time. This is a real, outward-facing side effect — confirm the channel and payload before calling. REST: POST /channels/{channel}/messages.

ParameterTypeDescription
channel *stringChannel name to publish to, e.g. 'chat:room1'.
data *stringMessage payload (string; send JSON as a stringified value).
clientIdstringOptional clientId to attribute the message to.
namestringOptional event name for the message.

ably_revoke_tokens Revoke client tokens

WRITE: revoke Ably tokens issued by this app's API key, matched by clientId or revocationKey. Clients holding those tokens must get a new token. Only keys with revocable tokens enabled can revoke. Call with confirm false to preview; ask the user before calling with confirm true. REST: POST /keys/{appId.keyId}/revokeTokens.

ParameterTypeDescription
allow_reauth_marginbooleanTrue postpones revocation 30 s so clients can renew without dropping. Default false (near-immediate).
client_idsarrayclientId values to revoke (sent as clientId:<value>).
confirmbooleanFalse (default) previews the targets without calling Ably. True sends the revocation.
revocation_keysarrayrevocationKey values from the JWT claim x-ably-revocation-key (sent as revocationKey:<value>).

ably_whoami Get control token / account info

Return details about the configured control token: the account and user it belongs to and its capabilities. Good first call to confirm control-plane access. Control API: GET /me.

ably_list_apps List Ably apps

List all apps in the account (id, name, status, tls-only). Account id is resolved automatically from the control token when ABLY_ACCOUNT_ID is unset. Control API: GET /accounts/{account_id}/apps.

ParameterTypeDescription
account_idstringOverride the account id (defaults to the token's account).

ably_list_keys List an app's API keys

List the API keys for an app, including their capabilities (but not the full secret). Control API: GET /apps/{app_id}/keys.

ParameterTypeDescription
app_id *stringApp id (from ably_list_apps).

ably_list_namespaces List an app's channel namespaces

List the channel namespaces (channel-rule prefixes) configured for an app, e.g. persistence and push settings. Control API: GET /apps/{app_id}/namespaces.

ParameterTypeDescription
app_id *stringApp id (from ably_list_apps).

ably_list_queues List an app's queues

List the Ably Queues (AMQP/STOMP message queues) provisioned for an app, with their state and messaging stats. Control API: GET /apps/{app_id}/queues.

ParameterTypeDescription
app_id *stringApp id (from ably_list_apps).

ably_list_rules List an app's integration rules

List the integration rules (reactor rules: webhooks, AWS Lambda/SQS/Kinesis, Kafka, Pulsar, etc.) configured for an app. Control API: GET /apps/{app_id}/rules.

ParameterTypeDescription
app_id *stringApp id (from ably_list_apps).

ably_get_account_stats Get account-level statistics

Retrieve aggregated usage statistics across the whole account, bucketed by time. Account id is resolved from the control token when ABLY_ACCOUNT_ID is unset. Control API: GET /accounts/{account_id}/stats.

ParameterTypeDescription
account_idstringOverride the account id (defaults to the token's account).
endintegerEnd of range, ms since epoch (inclusive).
limitintegerMax buckets (<=1000). Default 100.
startintegerStart of range, ms since epoch (inclusive).
unitstringBucket size: minute | hour | day | month. Default minute.