Apply Infrastructure (Reconcile Mode)
Use the apply_forma MCP tool in reconcile mode to deploy or update infrastructure.
How Reconcile Works
Reconcile guarantees the target infrastructure matches the forma file exactly:
- •Resources in the file but not deployed are created
- •Deployed resources not in the file are destroyed
- •Differences between file and deployed state are updated
This is the standard mode for planned deployments.
Workflow
- •Confirm the forma file path with the user
- •Always simulate first: call
apply_formawithmode: reconcile,simulate: true - •Present the simulation results clearly:
- •Resources to be created
- •Resources to be updated (show what changes)
- •Resources to be destroyed
- •Ask for explicit confirmation before proceeding
- •If confirmed: call
apply_formawithmode: reconcile,simulate: false - •The command runs asynchronously. Use
get_command_statusto monitor progress - •Report the final result
Force Flag
If the simulation reports drift (out-of-band changes detected), the apply may be rejected. The user can choose to:
- •Investigate: Use
/formae-driftto understand the changes - •Force: Set
force: trueto overwrite the drift
Important
- •NEVER use
pkl evalto evaluate forma files — ALWAYS useformae eval --output-consumer machine. Forma files use formae-specific extensions that only the formae CLI can resolve, and--output-consumer machineensures parseable output instead of human-formatted text. - •NEVER skip the simulation step
- •NEVER apply without user confirmation
- •For targeted urgent fixes, use
/formae-patchinstead