Set up Fly.io in Metorial for Claude, ChatGPT and Cursor
Share Fly.io with your team in Claude, ChatGPT and Cursor through Metorial: fly.io API token sign-in, 19 tools (5 read-only).
To give your team Fly.io in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Fly.io integration in a Metorial portal, and each person connects with a fly.io API token. Agents can provision and manage applications, virtual machines (Machines), persistent storage volumes, secrets, certificates, and networking on the Fly.io cloud platform. The integration has 19 tools, 5 read-only, 12 write and 2 destructive, plus 3 triggers.
What you'll learn
- How an admin shares Fly.io in a portal and how each person connects
- What Fly.io asks for when you connect, and where to find it
- How to keep the 5 read-only tools and reject the other 14
Before you start
- A portal with at least one access group
- A fly.io API token from Fly.io for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| Fly.io API Token | API token | token and tokenScheme |
Fly.io API Token
To connect, a person enters these values:
token: Fly.io API token (personal access token, org-scoped token, or app-scoped deploy token)tokenScheme(optional): Authorization scheme: use "Bearer" for personal access tokens from `fly auth token`, or "FlyV1" for tokens created with `fly tokens create` One of "Bearer", "FlyV1".
Setup settings
Setup also asks for:
baseUrl(optional): Base URL for the Fly.io Machines APIappName(optional): Default Fly App name to use for triggers and actions when not specifiedorgSlug(optional): Default organization slug
Admin: share Fly.io 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 Fly.io. For how members connect, choose Each person connects so everyone enters their own fly.io API token, or Shared connection to enter one fly.io API token for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Fly.io.
Choose who gets it
Add the access groups that should see Fly.io. 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 Fly.io integration. Once it exists, check which groups have it:
Employee: connect Fly.io
In the portal
Open Fly.io in the catalog
Sign in to your portal and open Fly.io. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your fly.io API token (token).
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.
Add it to your AI client
metorial install adds your Fly.io 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 5 read-only tools, such as get_app and list_apps, and lose the 12 write tools, such as create_app or create_volume, and the 2 destructive tools, such as delete_app or delete_machine.
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 19 tools, minus any you rejected. list_apps needs orgSlug, so replace the placeholders. It lists all Fly Apps in an organization.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (5)
list_apps: List all Fly Apps in an organization. NeedsorgSlug.list_machines: List all Fly Machines in an app. NeedsappName.get_app: Retrieve details for a specific Fly App including its status and organization. NeedsappName.get_machine: Retrieve full details of a specific Fly Machine including its configuration, state, events, and image reference. NeedsappNameandmachineId.list_volumes: List all persistent storage volumes for a Fly App. NeedsappName.
Write tools (12)
create_machine: Create a new Fly Machine from a container image in a specific region. NeedsappNameandimage.create_volume: Create a new persistent storage volume for a Fly App. NeedsappNameandvolumeName.update_machine: Update a Fly Machine's configuration. NeedsappName,machineIdandimage.wait_for_machine: Block until a Fly Machine reaches a specific state. NeedsappName,machineIdandstate.manage_machine_lease: Acquire, check, or release an exclusive modification lease on a Fly Machine. NeedsappName,machineIdandaction.control_machine: Start, stop, restart, or suspend a Fly Machine. NeedsappName,machineIdandaction.manage_volume: Get details, update settings, extend size, or delete a Fly Volume. NeedsappName,volumeIdandaction.create_app: Create a new Fly App in an organization. NeedsappNameandorgSlug.request_oidc_token: Request an OpenID Connect (OIDC) JWT token for a Machine.manage_machine_metadata: Get, set, or delete metadata key-value pairs on a Fly Machine. NeedsappName,machineIdandaction.manage_secrets: List, set, or delete app-level secrets. NeedsappNameandaction.manage_certificates: List, request, check, or delete SSL/TLS certificates for custom domains on a Fly App. NeedsappNameandaction.
Destructive tools (2)
delete_app: Delete a Fly App and all its associated resources. NeedsappName.delete_machine: Permanently destroy a Fly Machine. NeedsappNameandmachineId.
Triggers
Fly.io has 3 triggers, which fire on events in Fly.io:
machine_state_changed: Triggers when a Fly Machine changes state (e.g. started, stopped, suspended, destroyed).inbound_webhookapp_machines_changed: Triggers when machines are added to or removed from a Fly App.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Fly.io there
- Tool permissions: tool filters and what employees see
- Fly.io on metorial.com: the integration overview