> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/mcp-server/start-here/getting-started.md). Agents can also search and read this documentation through its [MCP server](https://docs.airops.com/~gitbook/mcp).

# Getting Started

Setup instructions for AI assistants using MCP

Connect your AI assistant to AirOps using the MCP server. This guide covers setup for Codex, Claude Code, Cursor, VS Code, Windsurf, and other MCP clients.

{% hint style="info" %}
**Claude Web or Desktop?** Use the [Claude Connector](https://docs.airops.com/mcp-server/connect-your-assistant/claude-connector.md) for one-click setup and Interactive Apps.
{% endhint %}

**Server URL:** `https://app.airops.com/mcp`

Resource tools require a paid AirOps workspace, including eligible paid-tier trials. Free workspaces can connect and list workspaces, but cannot query or change workspace data through MCP. See [plan access](https://docs.airops.com/mcp-server/tools-and-support/tools.md#plan-access).

Choose browser sign-in (OAuth) or a [workspace API key](#authenticate-with-a-workspace-api-key). OAuth uses your AirOps user permissions. An API key authenticates requests for the workspace that issued it. Some tools, such as [creating a Playbook](https://docs.airops.com/mcp-server/tools-and-support/tools/playbooks-and-workflows.md#create_playbook), require user OAuth.

Once you're connected, open the [Tools Reference](https://docs.airops.com/mcp-server/tools-and-support/tools.md) to see what's available, or try the prompts in [Use Cases](https://docs.airops.com/mcp-server/start-here/use-cases.md). The [FAQ](https://docs.airops.com/mcp-server/tools-and-support/faq.md) covers plan access and connection questions.

## Codex

Use the [AirOps MCP plugin](https://docs.airops.com/mcp-server/connect-your-assistant/codex-plugin.md) for one-click setup in Codex.

## Claude Code

Run in your terminal:

```bash
claude mcp add --transport http airops https://app.airops.com/mcp
```

Then authenticate:

1. Run `/mcp` in Claude Code
2. Select the AirOps server
3. Choose **Authenticate**
4. Complete sign-in in your browser

## Cursor

1. Open **Cursor Settings → Tools & MCP → New MCP server**
2. Add the configuration:

```json
{
  "mcpServers": {
    "airops": {
      "url": "https://app.airops.com/mcp"
    }
  }
}
```

3. Click **Connect** to authenticate

## VS Code (Copilot)

1. Open **Settings** (Ctrl/Cmd + ,)
2. Search for "mcp" and click **Edit in settings.json**
3. Add:

```json
{
  "mcp": {
    "servers": {
      "airops": {
        "command": "npx",
        "args": ["-y", "mcp-remote", "https://app.airops.com/mcp"]
      }
    }
  }
}
```

## Windsurf

1. Open **Windsurf Settings → Cascade → MCP Servers**
2. Click **Add Server → Add custom server**
3. Add:

```json
{
  "mcpServers": {
    "airops": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://app.airops.com/mcp"]
    }
  }
}
```

## Other Clients

Most MCP clients support HTTP transport:

* **Transport:** HTTP (streamable HTTP)
* **URL:** `https://app.airops.com/mcp`

For clients requiring SSE transport, use `mcp-remote` as a proxy:

```bash
npx -y mcp-remote https://app.airops.com/mcp
```

## Authenticate with a workspace API key

Use this option for HTTP clients that support a custom `Authorization` header.

1. Sign in to AirOps and select the workspace you want the client to access.
2. Open **Settings → Workspace** and copy the key under **API Key**.
3. Set the server URL to `https://app.airops.com/mcp`, use streamable HTTP, and send `Authorization: Bearer YOUR_WORKSPACE_API_KEY` on each request.

Keep the key in a secret store or local environment variable. Keep it out of source control and shared client configurations. If you regenerate the workspace API key, update every integration that uses it.

### Claude Code with an API key

Set `AIROPS_MCP_TOKEN` in your shell from your secret store, then run:

```bash
claude mcp add --transport http airops https://app.airops.com/mcp \
  --header "Authorization: Bearer ${AIROPS_MCP_TOKEN}"
```

If you already configured a server named `airops`, use a different name for this connection or remove the original entry first. Claude Code stores the header value in the local configuration.

### Cursor with an API key

In **Cursor Settings → Tools & MCP**, add or update the AirOps MCP server. Set `AIROPS_MCP_TOKEN` in the environment that starts Cursor and use this configuration:

```json
{
  "mcpServers": {
    "airops": {
      "url": "https://app.airops.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:AIROPS_MCP_TOKEN}"
      }
    }
  }
}
```

### Verify access over HTTP

Send an MCP initialize request with the same key. A successful response contains the server's negotiated protocol version and capabilities.

```bash
curl --fail-with-body --silent --show-error https://app.airops.com/mcp \
  -H "Authorization: Bearer ${AIROPS_MCP_TOKEN}" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"airops-connection-check","version":"1.0.0"}}}'
```

## Troubleshooting

### Authentication

For an API key connection that returns HTTP 401, check that the client sends the full `Authorization: Bearer …` header and that the key is current. If the connection succeeds but a tool rejects the request, check [plan access](https://docs.airops.com/mcp-server/tools-and-support/tools.md#plan-access) and whether the tool requires user OAuth.

<details>

<summary>"Needs authentication" error</summary>

**Claude Code:** Run `/mcp`, select AirOps, choose **Authenticate**.

**Cursor:** Click **Connect** button in MCP settings.

**Other clients:** Remove and re-add the server to clear cached tokens.

</details>

<details>

<summary>OAuth not working (WSL/corporate network)</summary>

**WSL users:** Browser OAuth may fail from WSL. Run your client from Windows instead.

**Corporate networks:** Your network may block OAuth redirects. Try a personal network or contact IT to whitelist `app.airops.com`.

</details>

### Connection

<details>

<summary>Connection refused or timeout</summary>

Check that you can reach `https://app.airops.com` in your browser. Some corporate networks block MCP connections.

</details>

<details>

<summary>Tools not appearing</summary>

1. Restart your AI assistant
2. **Claude Code:** Run `/mcp` to verify connection
3. Remove and re-add the server

</details>

### Clear Cached Authentication

Remove the server and add it again:

**Claude Code:**

```bash
claude mcp remove airops
claude mcp add --transport http airops https://app.airops.com/mcp
```

**Other clients:** Delete the server from your configuration and re-add it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/mcp-server/start-here/getting-started.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
