MetorialDocs

Set up Mode in Metorial for Claude, ChatGPT and Cursor

Share Mode with your team in Claude, ChatGPT and Cursor through Metorial: API token sign-in, 19 tools (12 read-only).

To give your team Mode in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Mode integration in a Metorial portal, and each person connects with an API token. Agents can read and manage Mode reports, SQL queries, collections, datasets and reusable SQL definitions. The integration has 19 tools, 12 read-only and 7 destructive, plus 5 triggers.

What you'll learn

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

Before you start

Sign-in method

MethodTypeWhat a person provides
API TokenCustom credentialstoken, secret and workspaceName

API Token

To connect, a person enters these values:

  • token: Mode API token (public component of the credential)
  • secret: Mode API secret (private component of the credential)
  • workspaceName: Workspace name for profile verification

Setup settings

Setup also asks for:

  • workspaceName: The workspace slug (account name) as it appears in your Mode URL: app.mode.com/home/{workspace_name}

Admin: share Mode in a portal

In the dashboard

Open Shared Resources

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

Share a new integration

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

Limit the tools

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

Choose who gets it

Add the access groups that should see Mode. 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 Mode integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search mode

Employee: connect Mode

In the portal

Open Mode in the catalog

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

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API token (token, secret and workspaceName).

Confirm

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

With the CLI

metorial catalog search mode
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Mode 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.

metorial list mode
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 12 read-only tools, such as get_report and list_members, and lose the 7 destructive tools, such as run_report or manage_query.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list mode
metorial tools <integration-id>
metorial call <integration-id> list_members -d '{}'

metorial tools lists the 19 tools, minus any you rejected. list_members takes no input. It lists all members of the Mode workspace.

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

Tools

Read-only tools (12)

  • get_report_run: Retrieve the status and details of a specific report run, including its state, timestamps, and associated query runs. Needs reportToken and runToken.
  • list_reports: List reports within a Mode workspace.
  • get_report: Retrieve detailed information about a specific Mode report by its token. Needs reportToken.
  • list_datasets: List datasets in the workspace.
  • list_report_runs: List all runs for a given report with filtering and ordering support. Needs reportToken.
  • list_report_schedules: List all scheduled runs configured for a specific Mode report. Needs reportToken.
  • list_members: List all members of the Mode workspace.
  • list_definitions: List SQL definitions in the workspace.
  • list_collections: List all collections (formerly Spaces) in the workspace.
  • list_data_sources: List all database connections (data sources) configured in the workspace.
  • download_results: Download an existing successful report run as CSV, JSON or PDF.
  • get_current_account: Verify the API credentials and retrieve the configured, authorized Mode account.

Destructive tools (7)

  • manage_query: Create, update, list, or delete SQL queries within a Mode report. Needs action and reportToken.
  • manage_report_schedule: Create, update, or delete a schedule for a Mode report. Needs action and reportToken.
  • run_report: Trigger a new execution (run) of a Mode report. Needs reportToken.
  • manage_dataset: Update or delete a Mode dataset. Needs action and datasetToken.
  • manage_definition: Create, update, or delete a SQL definition in the workspace. Needs action.
  • manage_report: Update, archive, unarchive, or delete a Mode report. Needs action and reportToken.
  • manage_collection: Create, update, or delete a collection (Space) in the workspace. Needs action.

Triggers

Mode has 5 triggers, which fire on events in Mode:

  • report_run_events: Triggered when a report run starts or completes.
  • member_events: Triggered when a member joins or is removed from the workspace.
  • data_source_events: Triggered when a new database connection is added to the workspace.
  • definition_events: Triggered when a metric definition is created or updated in the workspace.
  • report_events: Triggered when a report is created or deleted in the workspace.

Next steps