MetorialDocs

Set up Knack in Metorial for Claude, ChatGPT and Cursor

Share Knack with your team in Claude, ChatGPT and Cursor through Metorial: user token or API key sign-in, 8 tools (4 read-only).

To give your team Knack in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Knack integration in a Metorial portal, and each person connects with a user token. Agents can create, read, update, and delete records in Knack objects and views. The integration has 8 tools, 4 read-only, 3 write and 1 destructive, plus 2 triggers.

What you'll learn

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

Before you start

Sign-in methods

MethodTypeWhat a person provides
User Token (View-Based) (default)Custom credentialsuserToken
API KeyAPI tokenapiKey

The portal and metorial setup use User Token (View-Based) unless someone picks another method.

User Token (View-Based)

To connect, a person enters:

  • userToken: A user token obtained via remote login, used for view-based API requests

API Key

To connect, a person enters:

  • apiKey: Your Knack REST API Key, found in Builder settings under API & Code

Setup settings

Whichever method you pick, setup also asks for:

  • applicationId: Your Knack Application ID, found in Builder settings under API & Code

Admin: share Knack 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 Knack. Under Auth Method, keep User Token (View-Based) or pick another. For how members connect, choose Each person connects so everyone enters their own user token, or Shared connection to enter one user token for everyone.

Limit the tools

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

Choose who gets it

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

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

Employee: connect Knack

In the portal

Open Knack in the catalog

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

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your user token (userToken).

Confirm

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

With the CLI

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

catalog search prints the catalog item ID. metorial setup uses User Token (View-Based). To connect with API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Knack 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 knack
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 4 read-only tools, such as get_record and get_records, and lose the 3 write tools, such as upload_file or create_record, and the destructive tool delete_record.

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 knack
metorial tools <integration-id>
metorial call <integration-id> get_app_metadata -d '{}'

metorial tools lists the 8 tools, minus any you rejected. get_app_metadata takes no input. It retrieves the full metadata for your Knack application, including all objects (tables), their fields, scenes (pages), and views.

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

Tools

Read-only tools (4)

  • get_records: Retrieve records from a Knack object or view with optional filtering, sorting, and pagination.
  • get_record: Retrieve a single record by its ID from a Knack object or view. Needs recordId.
  • get_app_metadata: Retrieve the full metadata for your Knack application, including all objects (tables), their fields, scenes (pages), and views.
  • get_record_file: Prepare a file or image stored in a Knack record for download.

Write tools (3)

  • update_record: Update an existing record in a Knack object or view. Needs recordId and fields.
  • upload_file: Upload a file or image to a Knack record. Needs objectKey, fieldKey, fileName, fileContent and contentType.
  • create_record: Create a new record in a Knack object or view. Needs fields.

Destructive tools (1)

  • delete_record: Delete a record from a Knack object or view by its ID. Needs recordId.

Triggers

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

  • record_changes: Triggers when records are created or updated in a Knack object.
  • inbound_webhook

Next steps