Agent setup and deployment have separate roles
Fly shipped agent setup in flyctl v0.5.2 on November 2, 2026, giving coding assistants skills and a connection to its hosted MCP server. The company announced setup on October 30, 2026, after the skills command shipped on October 29, 2026. Its October 23, 2026, MCP beta announcement covered Machines, volumes, apps, and Sprites. Deployment success and credential isolation for the proposed workflow below remain untested. Sources: Fly.io, GitHub
Fly’s current MCP reference excludes deployment workflows, app creation, general Machine configuration updates, and organization administration. Its operational skill favors the command-line interface (CLI), flyctl, and also uses connected MCP capabilities. The current reference includes Managed Postgres, which the launch announcement described as forthcoming. Treat agent instructions, CLI credentials, MCP grants, and deployment files as separate parts of the workflow. Sources: Fly.io
Record what setup changes
Start in a dedicated environment with a stateless HTTP application. Exclude databases, volumes, production secrets, and external integrations. Give it a root endpoint that returns a build marker and a health endpoint that returns success. Commit the application and record tracked and untracked files before configuration begins. Record the CLI release, agent version and model, intended organization, and signed-in identity. Do not record credentials.
The command below selects Claude Code and skips setup’s login step. Fly says setup displays target agents and paths. It then asks before installing global skills and an MCP entry named fly. The entry contains the server URL rather than credentials. First MCP use triggers browser OAuth authorization. Save the displayed paths and compare their contents before and after installation. Sources: Fly.io
fly setup agent --agent claude-code --skip-loginKeep installation, authentication, and deployment permissions as distinct checkpoints. Configuration precedes sign-in, and canceling login leaves configuration installed. A sign-in failure does not change setup’s exit status. Setup preserves conflicting entries and reports malformed configuration files as per-agent failures. A successful exit therefore does not establish that every target agent is ready to deploy. Sources: Fly.io
Review skills and approval controls
Fly publishes operational and brand skills whose defaults track the main branch. The status command below reports revisions and local changes; record the operational skill’s revision alongside the CLI release. Version v0.5.2 remembers revision pins, while v0.5.1 requires specifying the revision again during updates. These records help make an installation reproducible. Sources: GitHub, Fly.io
fly skills statusReview downloaded instructions because they influence the agent’s actions. Fly downloads skills over GitHub HTTPS and checks archive structure. Recorded hashes detect local edits, but there is no separate cryptographic signature. Updates preserve edited files unless forced. Removal deletes installed files even when edited. It preserves user-added files. Record local changes before updating or removing skills. Sources: Fly.io
Plain skills provide instructions, not enforcement, and setup does not install the Claude Code plugin’s confirmation hook. The optional hook requires Python 3. Missing or unusable Python skips inspection with a warning, while other guard failures can block execution. Configure client approvals separately. Ask the agent to present generated files, intended targets, and expected remote changes before each mutation, then test whether that review happens. Sources: Fly.io
Inspect files before deploying
Before launch, require the agent to present the exact command, intended organization, unique disposable application name, and expected remote changes. Review and approve that proposal before running the command. Fly documents project detection and generation of editable Dockerfiles. Framework detection can also offer databases or introduce release commands. In a 2023 support discussion, Fly staff recommended the command below to prevent automatic deployment. It pauses deployment but does not assure that launch makes no other remote changes. Sources: Fly.io, Fly.io Community
fly launch --no-deployUse generated-file review as a second checkpoint before deployment. Review all generated files, including untracked files. Compare the application’s listening address and port with fly.toml, then examine build and resource choices. Require a concrete proposal containing the deployment command, target application, expected resources, and relevant file changes. Use the following checklist to focus the review.
- Confirm the application and organization identities.
- Inspect the container base image, build commands, runtime user, and copied files.
- Compare listening address, port, and health-check settings.
- Review Machine resources, region, and scaling settings.
- Identify added secrets, storage, databases, or release commands.
After approving the proposal, deploy with an explicit application target and inspect status and logs. The flyctl repository says application selection otherwise comes from the working directory’s fly.toml. An explicit application argument overrides it. Replace the placeholder below with the reviewed disposable application name. Then request both endpoints externally and confirm the build marker. Compare actual resources with the proposal. Sources: GitHub
fly deploy -a <disposable-app>
fly status -a <disposable-app>
fly logs -a <disposable-app>Diagnose failures before retrying
After the first deployment succeeds, change only the build marker, review the diff, and redeploy. Next, deliberately mismatch the application and proxy ports to examine the agent’s diagnosis. In a 2022 support discussion, Fly distinguished process exits from unreachable health checks. The developer resolved that case after noticing the expected port. Capture startup logs, health-check results, the smallest corrective change, and the successful retry. Sources: Fly.io Community
Test restricted deployment credentials separately, especially with no existing builder. Identify whether a failure involves the application, builder, registry, or another operation. Do this before considering broader access.
For an interrupted MCP write, inspect the resulting state before repeating the operation, as Fly’s reference recommends. Preserve the original error alongside the observed resource state. Record the exact CLI release because versions can change failure handling and diagnostics. Version v0.5.0 stops launch before deployment after provisioning failure. Version v0.4.123 added Depot builder connection diagnostics. Sources: GitHub, Fly.io
Test both access paths and verify cleanup
Fly says MCP OAuth grants limit resource access, and newly added tools do not expand existing grants. Its get_fly_context tool exposes authorized bindings, scopes, and restrictions. Machine execution requires a separate exec scope, and deletion requires delete authorization. Secret-listing tools return metadata rather than values, but execution can access application data and some diagnostics expose sensitive information. Use dummy secrets and two test-owned applications to probe these boundaries. Sources: Fly.io
Test a narrow MCP grant alongside the CLI’s separate credentials. The table below proposes checks to distinguish agent compliance from authorization enforcement. Record permitted and denied outcomes for each access path. Repeat checks with restrictive client approvals to see whether alternate command forms receive the intended review.
Table
Proposed checks for deployment authorization
| Test condition | Observation to record |
|---|---|
| MCP connected, CLI credentials absent | Whether the agent identifies the deployment access gap |
| CLI authenticated, MCP disconnected | Which workflow steps still work |
| MCP grant for app A, request for app B | Whether the server denies cross-app access |
| Read access without execution or deletion | Whether prohibited operations are denied |
| Dummy secret present | Whether responses, logs, or execution reveal its value |
| MCP access revoked, then CLI credentials revoked | Whether each access path stops independently |
Finish by inventorying created resources, reviewing exact targets, removing disposable resources, and verifying their absence. Fly documents MCP revocation through MCP Clients in Account settings, effective on the next request, including refresh. Revoke CLI credentials separately and check whether another credential source keeps commands working. Removing skills leaves MCP configuration behind, so review that entry separately. Record actual charges and cleanup results before moving to a more consequential application. Sources: Fly.io