Fly.io integration
Fly.io Machines API for deploying and managing fast-launching VMs (Machines) globally. Fly.io runs applications close to users in datacenters worldwide, providing subsecond VM startup, persistent volumes, automatic scaling, and a comprehensive REST API for programmatic control of apps, machines, volumes, and configuration.
Say what should happen.
The workflow builds itself.
Common Fly.io use cases
- Graceful shutdown
- View machine tags
- Check volume status
- View backup history
- Add database storage
- Check machine status
- Remove obsolete tags
- Pre-deployment backup
- Remove unused storage
- View attached storage
What you can do with Fly.io
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Machine, 12 operations
cordon_machineCordon machinePOSTCordons a machine to drain requests.create_machineCreate machinePOSTCreates a new machine in a Fly App.delete_machineDelete machineDELETEDeletes a machine from a Fly App.execute_machine_commandExecute machine commandPOSTExecutes a command on a running machine.get_machineGet machineGETRetrieves details about a specific machine.list_machinesList machinesGETLists all machines for a Fly App.start_machineStart machinePOSTStarts a stopped machine.stop_machineStop machinePOSTStops a running machine.suspend_machineSuspend machinePOSTSuspends a running machine to save memory state.uncordon_machineUncordon machinePOSTUncordons a machine to resume request routing.update_machineUpdate machinePOSTUpdates a machine's configuration.wait_machineWait machineGETWaits for a machine to reach a target state.
Volume, 6 operations
create_volumeCreate volumePOSTCreates a new persistent volume.delete_volumeDelete volumeDELETEDeletes a volume with soft-delete period.extend_volumeExtend volumePUTExtends a volume to a larger size.get_volumeGet volumeGETRetrieves details about a specific volume.list_volumesList volumesGETLists all volumes for a Fly App.update_volumeUpdate volumePUTUpdates a volume's backup settings.
App, 4 operations
create_appCreate appPOSTCreates a new Fly App for deploying machines.delete_appDelete appDELETEDeletes a Fly App and its resources.get_appGet appGETRetrieves details about a specific Fly App.list_appsList appsGETLists all Fly Apps in an organization.
Lease, 3 operations
create_leaseCreate leasePOSTCreates an exclusive lease on a machine.get_leaseGet leaseGETGets the current lease on a machine.release_leaseRelease leaseDELETEReleases a lease on a machine.
Metadata, 3 operations
delete_machine_metadataDelete machine metadataDELETEDeletes a metadata key from a machine.get_machine_metadataGet machine metadataGETGets all metadata for a machine.set_machine_metadataSet machine metadataPOSTSets a metadata key-value pair on a machine.
Snapshot, 2 operations
create_volume_snapshotCreate volume snapshotPOSTCreates an on-demand volume snapshot.list_volume_snapshotsList volume snapshotsGETLists all snapshots for a volume.
Use Fly.io from Claude Code, Cursor or Codex
Connect Fly.io in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Fly.io operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Fly.io
- Create your workspace
Sign up free. Nothing to install.
- Connect Fly.io once
Add your Fly.io connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Fly.io integration FAQ
What can you do with the Fly.io integration?
LiveContext exposes 30 operations on Fly.io, covering machine, volume, app and lease. Common uses include Graceful shutdown, View machine tags and Check volume status.
