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

# Build with AI

> Teach your coding agent how to build applications with Cloudglue APIs

AI coding agents like Claude Code, Cursor, and Windsurf can build Cloudglue integrations faster when they understand the SDK and API patterns. This page covers how to teach your agent to build applications with Cloudglue APIs.

## Cloudglue Skills

Cloudglue Skills are pre-packaged knowledge bundles that follow the [agentskills.io](https://agentskills.io) specification. They provide your coding agent with core concepts, correct code patterns, method signatures, and troubleshooting guidance — so it writes working Cloudglue integrations on the first try.

<Tip>
  **Recommended** — Skills are the fastest way to teach any compatible agent how
  to build with Cloudglue. They work with Claude Code, Cursor, Windsurf, and any
  agent that supports the agentskills.io spec.
</Tip>

<Tabs>
  <Tab title="npm">`bash npx skills add cloudglue/skills `</Tab>
  <Tab title="pnpm">`bash pnpm dlx skills add cloudglue/skills `</Tab>
  <Tab title="Yarn">`bash yarn dlx skills add cloudglue/skills `</Tab>
  <Tab title="Bun">`bash bun x skills add cloudglue/skills `</Tab>
</Tabs>

Once installed, agents automatically learn to consult documentation in priority order:

1. **Embedded package docs** — version-locked Markdown shipped with the JS SDK (most reliable)
2. **Source code** — full type information from `node_modules`
3. **Remote docs** — conceptual guides at [docs.cloudglue.dev](https://docs.cloudglue.dev)

View the source on [GitHub](https://github.com/cloudglue/skills).

## Docs MCP Server

A hosted MCP server that exposes Cloudglue documentation as tools your agent can call live. Skills ship version-locked SDK knowledge with your project — the docs MCP complements them with always-current conceptual docs, API reference, and newly released material.

**Endpoint**: `https://docs.cloudglue.dev/mcp` (no authentication required)

<Note>
  Don't confuse this with the [Cloudglue MCP
  Server](/getting-started/mcp-server) — that one gives agents video
  understanding tools (transcription, extraction, search). This one lets agents
  query the Cloudglue docs.
</Note>

<Tabs>
  <Tab title="Claude Code">
    ```bash theme={null}
    claude mcp add --transport http cloudglue-docs https://docs.cloudglue.dev/mcp
    ```
  </Tab>

  <Tab title="Cursor / Claude Desktop">
    ```json theme={null}
    {
      "mcpServers": {
        "cloudglue-docs": {
          "url": "https://docs.cloudglue.dev/mcp"
        }
      }
    }
    ```
  </Tab>

  <Tab title="Proxy (older clients)">
    For clients that don't yet support remote MCP natively:

    ```json theme={null}
    {
      "mcpServers": {
        "cloudglue-docs": {
          "command": "npx",
          "args": ["mcp-remote", "https://docs.cloudglue.dev/mcp"]
        }
      }
    }
    ```
  </Tab>
</Tabs>

Once connected, your agent can search and fetch any page from [docs.cloudglue.dev](https://docs.cloudglue.dev) on demand — useful when skills don't yet cover a newly released feature or when the agent needs deeper conceptual context than the embedded SDK docs provide.

## More Ways to Teach Your Agent

<CardGroup cols={3}>
  <Card icon="plug" href="#docs-mcp-server" title="Docs MCP Server">
    Hosted MCP at `docs.cloudglue.dev/mcp` that lets any MCP-aware agent query
    live Cloudglue documentation on demand.
  </Card>

  <Card icon="book" href="#embedded-package-docs" title="Embedded Package Docs">
    The JS SDK ships 14 Markdown files covering all APIs, version-locked to your
    installed SDK version.
  </Card>

  <Card icon="file-lines" href="https://docs.cloudglue.dev/llms.txt" title="llms.txt">
    Comprehensive documentation index in Markdown format. Feed it to any LLM
    that needs broad Cloudglue context.
  </Card>
</CardGroup>

## Embedded Package Docs

The Cloudglue JS SDK ([`@cloudglue/cloudglue-js`](https://www.npmjs.com/package/@cloudglue/cloudglue-js)) ships documentation alongside the code. After installing the SDK, you'll find 14 Markdown files covering every API surface:

```bash theme={null}
ls node_modules/@cloudglue/cloudglue-js/docs/
```

These docs are version-locked to the exact SDK version installed in your project, making them the most reliable reference for agents — no risk of mismatched method signatures or deprecated patterns.

When Cloudglue Skills are installed, they automatically use these embedded docs as the tier-1 information source. No extra configuration is needed.

View the SDK on [npm](https://www.npmjs.com/package/@cloudglue/cloudglue-js) or [GitHub](https://github.com/cloudglue/cloudglue-js).

## Context Files

Cloudglue publishes an `llms.txt` file following the emerging convention for LLM-friendly documentation:

```txt theme={null}
https://docs.cloudglue.dev/llms.txt
```

This file provides a comprehensive index of all Cloudglue documentation and API endpoints in a single Markdown document. It's useful for feeding broad context to any LLM, but for SDK-specific coding tasks, prefer skills or embedded docs for more precise results.

## Recommended Setup

<Steps>
  <Step title="Install Cloudglue Skills">
    Install skills in your project directory to teach your coding agent how to
    build with Cloudglue APIs.

    ```bash theme={null}
    npx skills add cloudglue/skills
    ```
  </Step>

  <Step title="Install the JS SDK">
    Run `npm install @cloudglue/cloudglue-js`. The embedded docs in the package
    become the agent's tier-1 reference, automatically used by Cloudglue Skills.
  </Step>

  <Step title="(Optional) Connect the Docs MCP Server">
    Point your agent at `https://docs.cloudglue.dev/mcp` for on-demand access to
    the latest Cloudglue documentation. See [Docs MCP
    Server](#docs-mcp-server) for setup snippets.
  </Step>
</Steps>
