# Spacelift

**Type:** Community

**Source Type:** Repository

**Source:** [GitHub](https://github.com/spacelift-io/spacectl)

**Description:** Enables Claude to interact with Spacelift's infrastructure management platform through the spacectl CLI and MCP server integration. Provides complete GraphQL schema introspection, stack management, module operations, policy management, and workerpool administration capabilities. Allows AI assistants to discover and use the Spacelift GraphQL API automatically without manual API learning, facilitating infrastructure-as-code workflows and Terraform/OpenTofu management.

**Configuration Parameters:**

* **Spacelift API Key Endpoint** \* - The URL to your Spacelift account (e.g., <https://mycorp.app.spacelift.io>)
* **Spacelift API Key ID** \* - API key identifier
* **Spacelift API Key Secret** \* - API key secret

**Setup Steps:**

1. Log in to your Spacelift account at https\://\[your-account].app.spacelift.io
2. Navigate to Settings > API Keys as an admin user
3. Click "Create API Key" and provide a name and description
4. Select the appropriate Space and access level (reader vs writer)
5. Configure the Subject Expression if needed to restrict access
6. Assign Groups if using team-based access control
7. Copy the generated API Key ID and API Key Secret
8. Provide the API Key Endpoint, ID, and Secret to Natoma

**Notes:**

* Requires Spacelift admin access to create API keys
* API keys can be scoped to specific spaces and access levels
* Supports multiple authentication methods (API tokens, GitHub tokens, API keys)
* MCP server includes complete GraphQL schema introspection
* spacectl CLI must be installed and configured
* Documentation: <https://docs.spacelift.io/integrations/api>

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.natoma.ai/apps/spacelift.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
