Skip to content

Get started with Intent»

This walkthrough connects Claude Code to Spacelift Intent, creates a project, and provisions a couple of safe resources. For all supported clients, OAuth scopes, and token-based authentication, see Connecting to the Spacelift MCP server.

📽️ Quick demo of Spacelift Intent with Claude Code below.

Intent demo

Connect your client»

Add the Spacelift MCP server to Claude Code:

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

Then authenticate:

  1. Start your MCP client, e.g. Claude Code.
  2. Run the /mcp command and open the Spacelift MCP Server entry. The status shows needs authentication. Claude Code: Spacelift MCP server prior to authentication
  3. Select Authenticate. Claude Code prints the OAuth URL and opens it in your browser. Claude Code: Authenticating with Spacelift MCP server
  4. In the browser, approve the authorization request. Both the mcp:read and mcp:write scopes are pre-selected. Leave both checked for a full-access session, or uncheck mcp:write to get a read-only session that cannot mutate Spacelift or your cloud. Browser: Spacelift authorization request
  5. Back in Claude Code, the server now shows connected and exposes its tools, depending on the scopes you granted. A read-only (mcp:read) session gets the tools that inspect Spacelift and your cloud. Granting mcp:write adds the tools that change Spacelift and provision infrastructure. See Capabilities for the current list.

    Claude Code: Spacelift MCP server connected Claude Code: tools exposed by the Spacelift MCP server with mcp:read + mcp:write Claude Code: read-only tools exposed by the Spacelift MCP server with mcp:read only

For the full per-client setup, the mcp:read / mcp:write scopes, and spacectl-token authentication, see Connecting to the Spacelift MCP server.

Create and use a project»

Projects scope your work and policy. You can create and lock a project entirely through natural language.

Create a project via chat prompt»

1
Create a project called "my-project".

The assistant creates the project for you.

Claude Code: Creating a project

The project is created in a space you have access to. Mention a space in your prompt if you want a specific one.

Switch to the project»

Then make it your active project:

1
Use the project "my-project".

The assistant switches to it. The first time you make a change, Spacelift locks the project to you so no one else can operate on it at the same time.

Claude Code: Locking a project

The lock clears itself after about five minutes of inactivity, and every change you make extends it. You can also release it explicitly through the UI or API.

Create your first resources»

Try something safe first using the random provider:

1
Create two resources: one very long random string and a cute pet.

Intent will:

  1. Discover the provider schema. Claude Code: Creating two random provider resources - discovering resources
  2. Propose the operations. Claude Code: Creating resources
  3. Apply them under policy. Claude Code: Resources successfully created

You'll get a short summary in chat once the resources are created.

Next, see Working with projects to add policies, attach a cloud integration, provision real resources, and import existing ones.