> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Amp

> Add Spiral to Sourcegraph's Amp as a remote MCP server: one command, sign in, no API key.

**1. Add the server**

```bash theme={null}
amp mcp add spiral https://api.spiral.ai/mcp
```

No header and no client ID or secret: Amp registers itself with Spiral.

**2. Sign in**

Start `amp`. Amp opens Spiral's sign-in page in your browser: sign in, pick the organization and click
**Authorize**. No API key.

**3. Check it**

```bash theme={null}
amp mcp doctor
```

**4. Try a starter prompt**

```text theme={null}
Find a text-to-image tool, tell me what one image costs, then generate a lighthouse at dawn.
```

> [accordion] Use Spiral in every Amp client and in orbs
>
> Browser sign-in does not work inside orbs. Store Spiral as a remote MCP definition on ampcode.com instead, then sign
> in once:
>
> ```bash theme={null}
> amp mcp remote --personal add Spiral https://api.spiral.ai/mcp --auth oauth
> amp mcp remote --personal login Spiral
> ```

> [accordion] With an API key instead
>
> Create a key in the [console](https://spiral.ai/start) under **API keys**, keep it in `SPIRAL_API_KEY`, and
> add this to `~/.config/amp/settings.json`:
>
> ```json theme={null}
> {
>   "amp.mcpServers": {
>     "spiral": {
>       "url": "https://api.spiral.ai/mcp",
>       "headers": { "Authorization": "Bearer ${SPIRAL_API_KEY}" }
>     }
>   }
> }
> ```

If something does not work, see [Troubleshooting](/docs/mcp-server.md#troubleshooting).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.