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

# Agent Setup

> Set up your agent with the current Code Storage docs. Choose MCP, llms.txt, Markdown pages, or the Code Storage skill.

Set up your agent first. Give it the current Code Storage docs before it writes integration code, so
it uses current method names, request shapes, and Git behavior.

## Connect with MCP

Use MCP when the agent must search several docs pages during a task. The Code Storage MCP server
searches guides, SDK reference pages, and HTTP API pages.

```text theme={"theme":{"light":"github-light","dark":"min-dark"}}
https://code.storage/docs/mcp
```

### Claude Code

Add the server and check the connection:

```bash theme={"theme":{"light":"github-light","dark":"min-dark"}}
claude mcp add --transport http code-storage https://code.storage/docs/mcp
claude mcp list
```

### Cursor

Open the MCP settings. Add this server:

```json theme={"theme":{"light":"github-light","dark":"min-dark"}}
{
  "mcpServers": {
    "code-storage": {
      "url": "https://code.storage/docs/mcp"
    }
  }
}
```

### VS Code

Create `.vscode/mcp.json`. Add this server:

```json theme={"theme":{"light":"github-light","dark":"min-dark"}}
{
  "servers": {
    "code-storage": {
      "type": "http",
      "url": "https://code.storage/docs/mcp"
    }
  }
}
```

## Load `llms.txt`

Use `llms.txt` when the agent can load one URL as context. Give the agent this docs index:

```text theme={"theme":{"light":"github-light","dark":"min-dark"}}
https://code.storage/docs/llms.txt
```

Use a direct instruction:

```text theme={"theme":{"light":"github-light","dark":"min-dark"}}
Use https://code.storage/docs/llms.txt as the source of truth for Code Storage.
Use only the documented SDK and HTTP API behavior.
```

## Load one Markdown page

Use Markdown when the agent needs one guide or reference page. Request the page as Markdown:

```bash theme={"theme":{"light":"github-light","dark":"min-dark"}}
curl -L -H "Accept: text/markdown" https://code.storage/docs/guides/webhooks
```

You can also add `.md` to the page URL:

```text theme={"theme":{"light":"github-light","dark":"min-dark"}}
https://code.storage/docs/guides/webhooks.md
```

## Install the Code Storage skill

Use the skill when the agent supports reusable task instructions. The skill helps the agent select
an interface and follow Code Storage workflows.

Install the skill from the SDK repository:

```bash theme={"theme":{"light":"github-light","dark":"min-dark"}}
npx skills add pierrecomputer/sdk
```

Reload the agent after you install the skill. Ask the agent to use the Code Storage skill for Code
Storage tasks.

The skill does not replace the current docs. Use MCP or `llms.txt` with the skill when the agent
needs current method details.
