> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Heartbeat in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/heartbeat
Last updated: 2026-11-24

Share Heartbeat with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 36 tools (16 read-only).

---

To give your team Heartbeat in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Heartbeat integration in a Metorial portal, and each person connects with an API key. Agents can manage an online community on Heartbeat. The integration has 36 tools, 16 read-only, 17 write and 3 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares Heartbeat in a portal and how each person connects
- What Heartbeat asks for when you connect, and where to find it
- How to keep the 16 read-only tools and reject the other 20

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from Heartbeat for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Key** | API token | `apiKey` |

### API Key

To connect, a person enters:

- `apiKey`: Heartbeat API key from Settings > API Keys

## Admin: share Heartbeat in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Heartbeat. For how members connect, choose **Each person connects** so everyone enters their own API key, or **Shared connection** to enter one API key for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Heartbeat.

4. **Choose who gets it**

   Add the access groups that should see Heartbeat. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Heartbeat integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search heartbeat
```

## Employee: connect Heartbeat

### In the portal

1. **Open Heartbeat in the catalog**

   Sign in to your portal and open Heartbeat. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API key (apiKey).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search heartbeat
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Heartbeat connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list heartbeat
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 16 read-only tools, such as `find_user` and `get_event`, and lose the 17 write tools, such as `post_thread` or `create_event`, and the 3 destructive tools, such as `deactivate_member` or `change_member_access`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list heartbeat
metorial tools <integration-id>
metorial call <integration-id> list_groups -d '{}'
```

`metorial tools` lists the 36 tools, minus any you rejected. `list_groups` takes no input. 

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (16)

- `find_user`: Finds a user in your Heartbeat community by email address or retrieves a specific user by ID.
- `get_recent_posts`: DEPRECATED — use `list_channel_threads` instead.
- `list_members`: Lists members of your Heartbeat community with optional filtering by group, role, or creation date.
- `list_channels`: Lists channels in your Heartbeat community with optional filtering by type or archived status.
- `list_groups`: Lists access groups in your Heartbeat community with optional filtering.
- `list_events`: List community events, optionally filtered by an access group from list_access_groups.
- `list_channel_categories`: Discover the channel category IDs and names needed to create community channels.
- `get_thread`: Read one thread, including its comments, reactions, provider permalink, and file URL metadata.
- `list_channel_threads`: Read threads from one channel, newest by creation time first.
- `list_roles`: Discover the community role IDs and names needed to provision members or create invitation links.
- `get_event`: Retrieve one community event by an ID from list_events, preserving provider metadata.
- `list_community_channels`: List all community channels with provider channel types and draft state.
- `list_invitations`: List community invitation links with their actual codes, roles, and groups.
- `list_community_members`: List all members returned by the Heartbeat community API, including role names and group memberships.
- `find_members`: Find community members by email, or retrieve one member by user ID.
- `list_access_groups`: List all community access groups, their parent IDs, archived state, and member information.

### Write tools (17)

- `create_comment`: Creates a comment on an existing thread. Needs `threadId`.
- `create_event`: DEPRECATED — use `schedule_event` instead. Needs `name` and `startDate`.
- `create_channel`: DEPRECATED — use `create_community_channel` instead. Needs `name`.
- `manage_group`: Creates a new group or manages group membership in your Heartbeat community. Needs `action`.
- `send_invitation`: Sends an invitation email to a new user to join your Heartbeat community. Needs `email`.
- `create_thread`: Creates a new thread in a specific channel. Needs `channelId`.
- `update_member`: DEPRECATED — use `edit_member_profile` instead. Needs `userId`.
- `send_direct_message`: Sends a direct message to a community member. Needs `userId` and `text`.
- `create_member`: DEPRECATED — use `provision_member` instead. Needs `email`.
- `create_community_channel`: Create a thread, chat, or voice channel using a category ID from list_channel_categories.
- `create_invitation_link`: Create an invitation link for a role and groups, returning the real invitation code and provider metadata.
- `schedule_event`: Create an event with the start time, duration, location, and optional invited emails or group IDs.
- `edit_member_profile`: Update a member profile using their existing email address.
- `provision_member`: Create a community member with a full name and a role.
- `post_thread`: Create a thread using formatted text in a channel from list_community_channels.
- `create_access_group`: Create an access group, optionally assigning member emails and a parent group.
- `post_comment`: Create a thread comment or a reply to a top-level comment using formatted text.

### Destructive tools (3)

- `deactivate_member`: Deactivates a user in your Heartbeat community. Needs `userId`.
- `manage_group_memberships`: Add members to, or remove members from, an access group using email addresses.
- `change_member_access`: Deactivate or reactivate a member by email.

## Triggers

Heartbeat has 2 triggers, which fire on events in Heartbeat:

- `new_posts`: [Polling fallback] Polls for new threads created in your Heartbeat community.
- `community_events`: Triggers on community activity via webhooks — new users, user updates, new threads, new events, group joins, course completions, event RSVPs, abandoned invitation links, and direct messages.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Heartbeat there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Heartbeat on metorial.com](https://metorial.com/integrations/heartbeat): the integration overview