# Build with AI (/docs/ai)



Copy this prompt into your AI coding agent. It installs the Hubtel skill; see [Build with AI](/docs/ai) for the MCP server:

```text
Fetch https://developers.hubtel.com/skills/hubtel-integrate/SKILL.md and save it where this tool loads skills or rules (for example .claude/skills/hubtel-integrate/SKILL.md or .cursor/rules/hubtel-integrate.mdc). Follow it for any Hubtel work in this project.
```

## Install the skill manually [#skill]

If you'd rather not paste the prompt, install the skill directly.

**Claude Code**

  ```bash
  mkdir -p .claude/skills/hubtel-integrate && curl -fsSL https://developers.hubtel.com/skills/hubtel-integrate/SKILL.md -o .claude/skills/hubtel-integrate/SKILL.md
  ```

**Any agent**

  ```text
  Fetch https://developers.hubtel.com/skills/hubtel-integrate/SKILL.md and save it where this tool loads skills or rules (for example .claude/skills/hubtel-integrate/SKILL.md or .cursor/rules/hubtel-integrate.mdc). Follow it for any Hubtel work in this project.
  ```

## Add the MCP server (optional) [#mcp]

The skill already reads the docs and schemas over HTTP, so you don't need the MCP server. What it adds is the same docs and schemas as tools, plus sandbox tools your agent can use to test. The docs tools need no sign-in. The sandbox tools ask you to sign in the first time your agent uses one.

To add the server and the skill together, paste this prompt:

```text
Connect this project to Hubtel's developer docs: fetch https://developers.hubtel.com/agent-setup.md and follow its steps, then summarise what you changed.
```

Or add just the server:

**Claude Code**

  ```bash
  claude mcp add --transport http hubtel https://developers.hubtel.com/mcp
  ```

**Cursor**

  Add to `.cursor/mcp.json`:

  ```json
  { "mcpServers": { "hubtel": { "url": "https://developers.hubtel.com/mcp" } } }
  ```

**VS Code**

  Add to `.vscode/mcp.json`:

  ```json
  { "servers": { "hubtel": { "type": "http", "url": "https://developers.hubtel.com/mcp" } } }
  ```

**Other MCP clients**

  Remote server: `https://developers.hubtel.com/mcp` (Streamable HTTP). The docs tools need no authentication. For the sandbox tools, clients that support MCP OAuth sign in through this portal; others can send a **test** key as a bearer token.

### Docs tools [#docs-tools]

| Tool                               | What it does                                                         |
| ---------------------------------- | -------------------------------------------------------------------- |
| `search_docs`, `get_doc`           | Search the docs and read a page                                      |
| `list_operations`, `get_operation` | Production hosts, schemas and examples for each Hubtel API operation |

### Sandbox tools [#sandbox]

The first time your agent calls one of these, you'll be asked to sign in to this portal and approve the connection. In Claude Code, if you aren't asked, run `/mcp`, choose **hubtel** and select **Authenticate**. Your agent gets its own **test** key, which you can revoke any time in **Workbench → Test keys**. The server never accepts live keys, so it can't move real money.

| Tool                                                         | What it does                                                        |
| ------------------------------------------------------------ | ------------------------------------------------------------------- |
| `call_api`                                                   | Sends a sandbox request with your test key                          |
| `create_test_payment`, `simulate_customer_action`            | Creates test payments and simulates how the customer responds       |
| `list_requests`, `list_webhook_deliveries`, `replay_webhook` | Shows recent requests and webhook deliveries, and resends a webhook |
| `get_test_data`                                              | Test numbers and their outcomes                                     |
| `advance_sandbox_clock`                                      | Skips waits, such as the 5-minute reconciliation window             |
| `run_certification`                                          | Runs the integration checks against a public callback URL           |
| `whoami`                                                     | The sandbox account and key in use                                  |

Without the MCP server, copy a test key from **Workbench → Test keys** into your env file, then run the integration checks from **Workbench → Webhooks → Integration checks**.

## Example prompt [#example-prompt]

Once the skill is installed, you could ask:

> Add Hubtel Online Checkout to this Next.js app. Accept callbacks only from Hubtel's callback address, make fulfilment idempotent on ClientReference, and add a reconciliation job.

## Machine-readable docs [#machine-readable-docs]

* [`/llms.txt`](/llms.txt): an index of every page.
* [`/llms-full.txt`](/llms-full.txt): all docs in one file.
* Add `.md` to any docs URL for Markdown, or send `Accept: text/markdown`.
* [`/openapi/v1/index.json`](/openapi/v1/index.json): the OpenAPI file for each API.
* [`/.well-known/skills/index.json`](/.well-known/skills/index.json): the skills catalogue.
