# Claude Code

> Add Alpha Ladder as an MCP server in Claude Code for terminal-based AI workflows.

Claude Code connects to the hosted Alpha Ladder MCP server using a Bearer token passed directly in the `Authorization` header. There is no OAuth flow — you provide your API key once on the command line.

## Setup

Run this command in your terminal, replacing `YOUR_API_KEY` with your Alpha Ladder API key (`sk-…`):

```bash
claude mcp add --transport http metacomp \
  https://www.alphaladder.hk/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"
```

This registers Alpha Ladder as an MCP server named `metacomp`. The tools are available immediately in any new Claude Code session.

To verify the server was added:

```bash
claude mcp list
```

You should see `metacomp` listed with the URL `https://www.alphaladder.hk/mcp`.

## Recommended: the Alpha Ladder Agent Skill

For the best experience, also install the **[Alpha Ladder Agent Skill](/developers/skill)** — one skill that adds guided, confirm-before-acting workflows across all four capability groups (deposit, withdraw, exchange, and wealth), so you don't compose tool calls manually. Download it from [github.com/metacomp-ai/metacomp-skill](https://github.com/metacomp-ai/metacomp-skill) and place it under `~/.claude/skills/`. See [Install & Connect](/developers/skill/install) for the full walkthrough.

## Usage

In a Claude Code session, ask naturally:

```
Show my Alpha Ladder account balance.
```

Claude will call `get_account_summary` and return a readable result. You can also call tools directly in agent scripts or automated pipelines.

## Notes

- **Auth:** Claude Code uses a direct Bearer token, not OAuth. There is no token expiry — the key is valid until revoked from the dashboard.
- **Removing the server:** `claude mcp remove metacomp`
- **Auth details:** see [Authentication — Local / npm MCP](/developers/getting-started/authentication#local--npm-mcp---token).
