Set up Coda service credential
A Coda service credential lets a Glean agent work with Coda docs, pages, tables, and rows through Coda's MCP server under a shared integration identity. You create a dedicated Coda user, grant it access to the required content, generate an MCP-restricted Personal API token, and store the token in Glean.
Glean adds the token to outbound requests to the Coda MCP server. The agent never sees the raw token.
- Authentication: Coda MCP-restricted Personal API token (Bearer)
- Scope: The docs, folders, and workspaces the dedicated account can access, plus the token's access level
- Access: Read and write access determined by Coda sharing, the account's role, and the token's access level
Prerequisites
- A dedicated organizational email account for the integration.
- Membership for that account in the required Coda workspaces.
- Permission to share the required Coda docs or folders with the integration account.
- A Glean administrator who can create service credentials.
- The Coda MCP (Service Account) template enabled for your deployment. If you don't see it under Service credentials, contact your Glean representative.
Step 1: Create a dedicated Coda user
- Create or provision an organizational email identity for the integration, such as
automation@company.com. - Sign in to Coda with that account.
- Join the Coda workspaces that contain the content the agent needs.
Use an account created for this integration instead of a person's account. This keeps agent activity separate from human activity and prevents changes to a person's access from interrupting the agent.
Step 2: Grant access to Coda content
-
Open each required doc, select Share, and add the integration account.
-
Choose the minimum access the agent needs:
Access level Use when the agent needs to Can view Read docs, pages, tables, and rows Can comment Read and comment on content Can edit Create or update pages, tables, and rows -
If the agent must create docs, confirm that the account has the Doc Maker role in the relevant workspace.
-
If the content is organized in folders, review the folder permissions that apply to the docs.
Step 3: Generate an MCP API token
While signed in as the integration user, create a token for Coda's MCP server:
-
Go to Coda account settings and find API settings.
-
Select Generate API token.
-
Enter a descriptive name, such as
Glean Agent Production. -
Set the restriction type to MCP.
-
Choose the least-privileged access level:
Access level Use when the agent needs to Read only View accessible docs, pages, tables, and rows Write only Create or modify content without reading existing content Read and write Read and modify accessible content -
Select Generate API token, copy the token, and store it in your secret manager.
Use a token with the MCP restriction type. A standard Coda API token can't authenticate to the Coda MCP server.
For more information about token access levels, see Coda's MCP connection guidance.
Step 4: Create the service credential in Glean
- In Glean, go to Admin console → Platform → Tools → Service credentials.
- Select Add, then select Coda MCP (Service Account).
- Fill in these fields:
- Label: A short identifier, such as
engineering,staging, orproduction. - API key: The MCP-restricted token you created in Coda.
- Label: A short identifier, such as
- Select Save.
- After the tools sync, set the server's audience to the people or groups who can use it. This template has no audience by default.
Step 5: Attach the credential to an agent
- Go to Agents in Glean and select the agent.
- Open the Tools tab.
- Add the Coda MCP (Service Account) credential.
Verify it works
Ask the agent to perform a read action, such as, "List the Coda docs available to you." If it returns the expected docs, the credential is working.
For a credential with write access, perform a non-destructive test in a dedicated test doc, such as adding a row to a test table.
What the agent can do
Depending on the account permissions and token access level, the agent can:
- List and read docs, pages, tables, and rows
- Search across content that the integration user can access
- Create or update pages, tables, and rows
All activity is attributed to the dedicated Coda user. The agent can't reach content that isn't shared with that user, and it doesn't receive organization-admin access unless you grant that access to the account.
Glean instructs the agent not to perform destructive operations, such as deleting docs, pages, tables, or rows. The Coda token itself might permit these operations, so keep the account and token scopes as narrow as possible.
Security and operational notes
- Dedicated integration user: use an account created only for this integration, separate from human users and other integrations.
- Least privilege: share only the required content and choose the lowest token access level the agent needs.
- Injected server-side: Glean stores the token encrypted and adds it only to outbound requests to the Coda MCP server.
- Rotation: generate a new MCP-restricted token in Coda, update the API key in Glean, test the connection, and then revoke the old token.
- Revocation: revoke the token in Coda or remove the service credential in Glean to cut off access.