Set up Heroku in Metorial for Claude, ChatGPT and Cursor
Share Heroku with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API token sign-in, 18 tools (4 read-only).
To give your team Heroku in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Heroku integration in a Metorial portal, and each person signs in to Heroku with their own account. Agents can deploy, manage, and scale applications on Heroku's cloud platform. The integration has 18 tools, 4 read-only, 13 write and 1 destructive, plus 1 trigger.
What you'll learn
- How an admin shares Heroku in a portal and how each person connects
- The 1 OAuth scope Heroku can request, and what each one allows
- How to keep the 4 read-only tools and reject the other 14
Before you start
- A portal with at least one access group
- An account with Heroku for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| OAuth (default) | OAuth | Signs in to Heroku |
| API Token | API token | token |
The portal and metorial setup use OAuth unless someone picks another method.
OAuth
People sign in to Heroku and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
global | Global | Read and write access to all account, app, and resource APIs used by this integration. |
API Token
To connect, a person enters:
token: Heroku API token or authorization key
Use your own Heroku OAuth app
With your own OAuth app, people see your company's name on the Heroku consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Heroku and copy the Redirect URI.
Register the app with Heroku
Register an OAuth client in the Heroku Dashboard, with the Heroku CLI's oauth commands, or through the Platform API. Give it a name that people will recognize on the consent screen and paste the redirect URI from Metorial as its callback URL. Heroku gives you a client ID and secret.
Team admins can turn off third-party OAuth access in the team's Settings tab. When it is off, people can still sign in, but the agent gets errors on every team app.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Heroku integration.
Admin: share Heroku 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 Heroku. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Heroku as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Heroku.
Choose who gets it
Add the access groups that should see Heroku. 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 Heroku integration. Once it exists, check which groups have it:
Employee: connect Heroku
In the portal
Open Heroku in the catalog
Sign in to your portal and open Heroku. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Heroku sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with API Token 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 Heroku 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.
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_app and list_apps, and lose the 13 write tools, such as create_app or update_app, and the destructive tool delete_app.
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 tools lists the 18 tools, minus any you rejected. get_account takes no input. It retrieves the authenticated user's Heroku account details including email, verification status, and two-factor authentication status.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (4)
list_apps: List all Heroku applications accessible to the authenticated user.get_account: Retrieve the authenticated user's Heroku account details including email, verification status, and two-factor authentication status.get_app: Retrieve detailed information about a specific Heroku app by its name or ID. NeedsappIdOrName.create_log_session: Create a temporary Heroku Logplex session URL for streaming recent or live app logs. NeedsappIdOrName.
Write tools (13)
scale_formation: View or scale dyno formations for a Heroku app. NeedsappIdOrName.manage_collaborators: List, add, or remove collaborators who have access to a Heroku app. NeedsappIdOrNameandaction.update_app: Update a Heroku application's settings. NeedsappIdOrName.create_app: Create a new Heroku application.manage_addons: List, provision, update, or remove add-on services for a Heroku app. Needsaction.manage_dynos: List running dynos, run one-off dynos, or restart dynos for a Heroku app. NeedsappIdOrNameandaction.manage_log_drains: List, add, or remove log drains for a Heroku app. NeedsappIdOrNameandaction.manage_releases: List releases, get release details, or rollback to a previous release for a Heroku app. NeedsappIdOrNameandaction.manage_config_vars: Read or update environment configuration variables for a Heroku app. NeedsappIdOrName.manage_builds: List, get, or create builds for a Heroku app. NeedsappIdOrNameandaction.manage_pipelines: Manage Heroku Pipelines for continuous delivery workflows. Needsaction.manage_domains: List, add, or remove custom domains for a Heroku app. NeedsappIdOrNameandaction.manage_buildpacks: List, replace, or clear buildpack installations for a Heroku app. NeedsappIdOrNameandaction.
Destructive tools (1)
delete_app: Permanently delete a Heroku application. NeedsappIdOrName.
Triggers
Heroku has 1 trigger, which fire on events in Heroku:
app_webhook: Receives webhook notifications when changes occur on Heroku apps, including app updates, dyno events, add-on changes, builds, releases, domain changes, collaborator changes, and formation updates.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Heroku there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Heroku on metorial.com: the integration overview