Connect Ably to AI agents

Connect Ably to Claude, Codex, Cursor, or other AI agents for your entire team. Metorial security, governance, observability, and gives your team a unified Magic MCP url to connect.

Supported Tools

publish_message

Publish Message

Publish one or more messages to an Ably channel. Supports publishing a single message to a channel or batch publishing multiple messages to one or more channels simultaneously. Use batch mode by providing multiple channel-message pairs for efficient multi-channel publishing.

get_channel_status

Get Channel Status

Get the status and occupancy details of a specific Ably channel, or list all active channels. Use this to check if a channel is active, how many connections/subscribers/publishers/presence members it has, or to enumerate all active channels with an optional prefix filter.

revoke_tokens

Revoke Tokens

Revoke previously issued Ably tokens matching specified targets. Targets can be client IDs or other token identifiers. All matching tokens issued before the specified time will be revoked.

manage_rules

Manage Integration Rules

List, create, update, or delete Ably integration rules using the Control API. Rules define how events (messages, presence, lifecycle, occupancy) are forwarded to external services like HTTP webhooks, AWS Lambda, Kafka, Amazon Kinesis, SQS, AMQP, and more.

get_presence

Get Presence

Retrieve the current set of members present on an Ably channel. Returns all clients currently "present" with their optional status data. Can be filtered by client ID or connection ID.

manage_queues

Manage Queues

List, create, or delete Ably message queues using the Control API. Queues allow worker servers to consume realtime messages via AMQP or STOMP protocols without managing queueing infrastructure.

get_presence_history

Get Presence History

Retrieve historical presence events from an Ably channel. Returns a log of all presence actions (enter, leave, update) that occurred within the specified time range.

manage_keys

Manage API Keys

List, create, update, or revoke Ably API keys using the Control API. Keys can be created with channel-specific capabilities, allowing fine-grained access control per channel.

request_token

Request Token

Issue a short-lived Ably token with fine-grained capabilities for client authentication. Tokens can be scoped to specific channels, operations, and client identities. Use this to generate tokens for client-side applications instead of exposing your API key.

get_statistics

Get Statistics

Retrieve application-level usage statistics from Ably, including message counts, connections, API requests, and more. Statistics can be aggregated by minute, hour, day, or month.

get_message_history

Get Message History

Retrieve historical messages from an Ably channel. Messages are persisted and can be queried by time range, with pagination support. Useful for retrieving messages missed while disconnected.

manage_apps

Manage Apps

List, create, update, or delete Ably applications using the Control API. Supports listing all apps in an account, creating new apps, updating app settings, and deleting apps.

manage_namespaces

Manage Namespaces

List, create, update, or delete Ably channel namespaces using the Control API. Namespaces define channel-level settings such as message persistence, push notification enablement, and TLS enforcement. A namespace applies to all channels whose name starts with the namespace ID followed by a colon (e.g. namespace "chat" applies to channels "chat:room1", "chat:room2", etc.).

More integrations teams use with Ably

Slack

Slack: connect with bot OAuth or user OAuth. Send, update, delete, and schedule messages; list and cancel scheduled messages; open DMs and group DMs; manage conversations, members, files, reactions, pins, bookmarks, reminders, user groups, and user status; search messages and files with user scopes; and retrieve user, conversation, and workspace info.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Subscribe to webhooks for list and library change notifications. Retrieve site properties and search for sites across Microsoft 365.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Subscribe to real-time change events via Change Data Capture and Platform Events. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Microsoft Outlook

Send, read, reply to, forward, and manage email messages in user mailboxes. Organize messages into folders, apply categories, flags, and importance levels. Manage file and item attachments. Create, update, delete, and respond to calendar events and meetings. Find available meeting times, manage attendees, handle recurrence, and work with shared or delegated calendars. Create, read, update, and delete contacts, organize them into contact folders, and manage contact photos. Manage tasks and task lists via Microsoft To Do, including due dates, reminders, recurrence, and checklist items. Subscribe to webhook notifications for changes to messages, calendar events, and contacts. Support for Focused Inbox, @-mentions, mail tips, send-on-behalf, and send-as capabilities.

Discord

Send, edit, and delete messages in channels. Manage servers (guilds), channels, roles, members, invites, webhooks, threads, scheduled events, auto moderation rules, audit logs, application commands, and custom guild emojis. Add or remove users, assign roles, kick or ban members, and receive supported message, guild, channel, member, and inbound webhook triggers.

Technical notes for Ably

Publish and subscribe to realtime messages on channels via WebSockets and REST. Track client presence on channels to see who is online. Retrieve message and presence history. Query channel status, occupancy, and metadata. Issue and revoke short-lived authentication tokens with fine-grained capabilities. Manage push notifications. Retrieve application-level usage statistics. Configure outbound streaming rules to services like Kafka, Amazon Kinesis, and SQS. Set up queue rules for AMQP/STOMP consumption. Use the Control API to programmatically create, update, and delete Ably apps, API keys, namespaces, integration rules, and queues. Receive webhook notifications for channel messages, presence events, channel lifecycle, and occupancy changes.

Connect Ably to production AI agents

See how Metorial gives Ably access the governance, tracing, and security controls teams need.

Frequently asked questions

Common questions about connecting Ably to AI agents with Metorial.

  1. Can Metorial connect Ably to AI agents?
    Yes. Metorial connects AI agents to Ably through a governed integration layer, so teams can use the provider while keeping access controlled and observable.
  2. Metorial is MCP compatible and lets teams expose approved provider tools to MCP-capable agents and clients through a controlled access layer.
  3. Metorial applies policies across users, groups, providers, agents, and individual tools, then records the context around every agent interaction.
  4. Yes. Metorial records provider activity so teams can inspect tool calls, troubleshoot integrations, and give security teams the visibility they need.