Skip to content

Handy commands & prompts»

Add MCP server (CLI)»

1
claude mcp add spacelift -t http https://<account-name>.app.spacelift.io/mcp

Auth & status»

  • /mcp → select spacelift → log in → verify connected

Project management (via prompts)»

1
2
3
4
Create a project called "my-project".
Use the project "my-project".
List my projects and their lock status.
Unlock the current project.

Resources (via prompts)»

1
2
3
4
5
Create two resources: one very long random string and a cute pet.
Create an S3 bucket named "dev-attachments-123" with SSE enabled.
Create a t3.micro EC2 instance in us-east-1.  # expect policy denial with example policy
List resources in this project.
Delete the random resources we created earlier.

Import (via prompts)»

1
List SSM parameters in my account and import them into the project.

Intent to IaC (via prompts)»

1
2
3
4
Show me the HCL for resource "my-s3-bucket".
Show me the HCL for this entire project.
Create a stack from the current project and import the state.
Create a stack called "prod-infra" from the current project without importing state.

Worker pool (via prompts)»

1
2
3
Which worker pool is the current Intent project using?
Attach the worker pool named "intent-pool" to the current project.
Detach the worker pool from the current project.

See Worker pool and runner image for context.

Long-running operations»

Create, update, and delete operations can run asynchronously when they're slow (for example a large multi-resource create). The tool returns an operation ID and your assistant polls until the worker reports back, using exponential backoff rather than falling back to a synchronous retry. Re-issuing the same prompt usually starts a new operation instead of resuming the in-flight one. Imports always run synchronously.

Use concise, explicit prompts; include environment/region and compliance requirements in your wording to help the agent make safer defaults.