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

# Continue.dev

> Connect the Perfai Cloud MCP server to Continue.dev via config.yaml with a Bearer token.

Continue is an open-source AI coding assistant, available as a VS Code and JetBrains extension. It supports remote MCP servers through its `config.yaml` file (the current format — `config.json` is legacy and is ignored if a `config.yaml` is present). Perfai Cloud is a **remote** server — nothing to install locally, and no npm package to run. Authentication is a custom Bearer header today (not OAuth), since perfai-cloud does not yet publish OAuth discovery metadata.

<Note>
  MCP tools are only available in Continue's **Agent** mode — not Chat or Edit mode. Switch modes from the dropdown in the chat input box before expecting Perfai's tools to show up.
</Note>

***

## Generate your Bearer token

Run this in your own terminal — substitute your real Perfai email and password:

<Tabs>
  <Tab title="macOS / Linux">
    ```bash theme={null}
    echo -n "you@example.com:yourpassword" | base64
    ```
  </Tab>

  <Tab title="Windows (PowerShell)">
    ```powershell theme={null}
    [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("you@example.com:yourpassword"))
    ```
  </Tab>
</Tabs>

Copy the resulting string — you'll paste it into `config.yaml` as `Bearer <base64>`.

***

## Installation

<Tabs>
  <Tab title="Global">
    File: `~/.continue/config.yaml` (macOS/Linux) or `%USERPROFILE%\.continue\config.yaml` (Windows). Registers the server for every workspace.

    ```yaml theme={null}
    mcpServers:
      - name: Perfai Cloud
        type: streamable-http
        url: https://mcp-server.perfai.ai/mcp
        requestOptions:
          headers:
            Authorization: "Bearer <base64>"
    ```
  </Tab>

  <Tab title="Workspace-scoped">
    File: `.continue/config.yaml` at your project root — or a standalone block at `.continue/mcpServers/perfai-cloud.yaml`. Only active when that workspace is open.

    ```yaml theme={null}
    mcpServers:
      - name: Perfai Cloud
        type: streamable-http
        url: https://mcp-server.perfai.ai/mcp
        requestOptions:
          headers:
            Authorization: "Bearer <base64>"
    ```
  </Tab>
</Tabs>

<Warning>
  Continue nests the auth header under `requestOptions.headers`, not a flat `"headers"` key.
</Warning>

<Warning>
  `config.yaml` holds your credentials in plaintext — keep it private and out of version control.
</Warning>

***

## Verify the server is connected

1. Switch the chat mode dropdown to **Agent**.
2. Start a new chat and ask it to list its available tools, or check the extension's output panel (**View → Output**, select **Continue**) for a connection error.
3. If it fails to connect, re-check the `Authorization` header value and confirm there's no trailing whitespace in the base64 string, and that it's nested under `requestOptions.headers` as shown above.

***

## Login

<Note>
  The prompts below run **inside Continue's chat**, not your terminal. The only file-based step is editing `config.yaml`.
</Note>

In Continue's chat (Agent mode), type:

```
Login to Perfai
```

This calls `login` with no arguments, which opens a browser to Perfai's own login page — never type your email/password directly into the chat. Confirm the session with:

```
What's my Perfai auth status?
```

***

## Register an app and run a scan

```
Register https://your-app.example.com with Perfai
```

```
Check the onboarding status for that app
```

```
Run a security test on the selected app
```

```
Show me the vulnerabilities it found
```

***

## Fix and verify

```
Generate an auto-fix plan for all critical and high findings
```

```
Mark vulnerability 3 as fixed
```

```
Give me the fix summary
```
