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

# Building with AI

> Use AI-powered tools to integrate Knot's products faster by searching docs from your IDE with the MCP server or installing skills to guide your agent through specific integrations.

## MCP Server

Knot provides an <Tooltip tip="An MCP server is a backend service that implements the Model Context Protocol, which is a standard that allows AI models & agents to interact with tools, data sources, and systems in a structured way.">MCP server</Tooltip> that lets you search and interact with this documentation via natural language from your IDE, terminal, or any MCP-compatible tool. The MCP server searches Knot's documentation only and does not call Knot's API.

### Setup

<Steps>
  <Step title="Install the MCP server">
    Run the following command in your terminal to install the Knot MCP server as a project-level MCP locally. It auto-detects your AI tools (Cursor, Claude Code, VS Code, etc.) and configures them automatically.

    ```bash theme={"system"}
    npx add-mcp https://docs.knotapi.com/mcp --name knot-docs
    ```

    For the Claude Code Desktop App, you may also follow Claude's docs on installing an MCP server [here](https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop).
  </Step>

  <Step title="Begin prompting">
    Ask questions and the agent will search Knot's documentation to retrieve answers directly in your development environment.

    **Example prompts:**

    * "How do I integrate the Knot iOS SDK?"
    * "How can I get the available merchant list for TransactionLink?"
    * "Tell me how to create a session and what do I do after that?"
  </Step>
</Steps>

## Skills

Knot provides product-specific skills that guide AI agents through implementing specific integrations, including the right API calls, webhook handling, data schemas, and testing steps. Installing a skill gives your agent the procedural knowledge to build an integration on your behalf.

<Tip>
  The MCP server helps you *search* Knot's docs. Skills teach your agent *how to build* specific integrations step-by-step.
</Tip>

### Install skills

Run the following command in your terminal to view and select which skills to install into your agent's context so it can take actions on your behalf:

```bash theme={"system"}
npx skills add https://docs.knotapi.com
```

You can also select and copy & paste the skill.md files for relevant skill(s) below to your agent to add skills.

### Available skills

The full list of available skills can be found at [`docs.knotapi.com/.well-known/skills/index.json`](https://docs.knotapi.com/.well-known/skills/index.json).

#### Integration skills

| Name                                                                                                    | Description                                                                                                                                                             |
| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`knot-sdk`](https://docs.knotapi.com/.well-known/skills/knot-sdk/skill.md)                             | Install and initialize the Knot SDK across platforms (iOS, Android, React Native, Flutter, Web).                                                                        |
| [`knot-transaction-link`](https://docs.knotapi.com/.well-known/skills/knot-transaction-link/skill.md)   | Implement the full transaction data integration from scratch, including session creation, merchant account linking via the SDK, and syncing SKU-level transaction data. |
| [`knot-sync-transactions`](https://docs.knotapi.com/.well-known/skills/knot-sync-transactions/skill.md) | Sync and store SKU-level transaction data from Knot's API when card switching is already implemented or another use case that links merchant accounts is in place.      |
| [`knot-subscriptions`](https://docs.knotapi.com/.well-known/skills/knot-subscriptions/skill.md)         | Retrieve and store subscription data from Knot's API when card switching is already implemented.                                                                        |

#### Prototyping skills

| Name                                                                                                              | Description                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`knot-prototype-transactions`](https://docs.knotapi.com/.well-known/skills/knot-prototype-transactions/skill.md) | Generate sample transaction data from the development API and use it immediately for prototyping — no SDK, no webhooks, no production setup required.       |
| [`knot-prototype-shopping`](https://docs.knotapi.com/.well-known/skills/knot-prototype-shopping/skill.md)         | Prototype a shopping experience — link a merchant account, add products to a cart, checkout, and retrieve order confirmation data from the development API. |
