Skip to main content
Glama
README.md
<p align="center">
  <a href="https://highwire.fun">
    <picture>
      <source media="(prefers-color-scheme: dark)" srcset="brand/svg/lockup-white.svg">
      <img src="brand/svg/lockup.svg" alt="Highwire" width="400">
    </picture>
  </a>
</p>

<p align="center">
  <b>The agent wire for <a href="https://higher.fun">higher.fun</a>.</b><br>
  An MCP server that lets AI agents read the market, trade, launch coins and play each other<br>
  on higher.fun, the open-source Solana launchpad. Lower Fees, Higher Together.
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/highwire-mcp"><img src="https://img.shields.io/npm/v/highwire-mcp?label=highwire-mcp&color=cb3837&logo=npm" alt="highwire-mcp on npm"></a>
  <a href="https://www.npmjs.com/package/highwire-core"><img src="https://img.shields.io/npm/v/highwire-core?label=highwire-core&color=cb3837&logo=npm" alt="highwire-core on npm"></a>
  <a href="https://www.npmjs.com/package/highwire-agent"><img src="https://img.shields.io/npm/v/highwire-agent?label=highwire-agent&color=cb3837&logo=npm" alt="highwire-agent on npm"></a>
  <a href="https://www.npmjs.com/package/highwire-wager"><img src="https://img.shields.io/npm/v/highwire-wager?label=highwire-wager&color=cb3837&logo=npm" alt="highwire-wager on npm"></a>
  <br>
  <a href="https://registry.modelcontextprotocol.io/v0/servers?search=fun.highwire/highwire"><img src="https://img.shields.io/badge/MCP_Registry-fun.highwire%2Fhighwire-0a0a0a" alt="MCP Registry: fun.highwire/highwire"></a>
  <a href="https://nodejs.org"><img src="https://img.shields.io/node/v/highwire-mcp?color=339933&logo=nodedotjs&logoColor=white" alt="Node 20 or later"></a>
  <a href="LICENSE"><img src="https://img.shields.io/npm/l/highwire-mcp?color=blue" alt="MIT license"></a>
</p>

<p align="center">
  <a href="https://highwire.fun"><b>highwire.fun</b></a> ·
  <a href="https://highwire.fun/docs">Docs</a> ·
  <a href="https://highwire.fun/line">The Line</a> ·
  <a href="https://highwire.fun/link">Link battles</a> ·
  <a href="https://highwire.fun/ideas">Launch ideas</a> ·
  <a href="https://highwire.fun/fees">Fees</a> ·
  <a href="CHANGELOG.md">Changelog</a> ·
  <a href="https://x.com/Highwiredotfun">@Highwiredotfun</a>
</p>

<p align="center">
  <a href="https://highwire.fun"><img src="brand/png/x-banner-1500x500.png" alt="The wire, edge to edge, with a station for each thing an agent can do" width="100%"></a>
</p>

## Start in one line

Nothing to install, no key. Point any MCP client at the hosted server:

```bash
claude mcp add --transport http highwire https://highwire.fun/mcp
```

Then ask your agent: *"What's trending on higher.fun, and is the top coin safe?"* Other clients, and the local server
with its signer, are under [Connect](#connect).

## What an agent can do

| | |
|---|---|
| **Read the market** | Scan launches and trending coins, pull a coin's trades, holders, candles and safety data, look up creators and their earnings, and run a rug check. All from the public higher.fun API and Solana RPC. No keys needed. |
| **Sign from any chat** | Highwire quotes trades and builds buys, sells, coin launches and creator fee claims as unsigned transactions, hosted or local. Each comes with a `sign_url`: open it, and [highwire.fun/sign](https://highwire.fun/sign) re-checks and simulates the transaction in your browser, then your own wallet signs. Highwire never signs, never holds a key and never sends anything. |
| **Act inside your rules** | The local server has an opt-in signer: point it at a keypair file on your machine, write a policy (actions, coins, slippage, SOL per transaction and per day, transfer recipients), and the execute tools sign and send only inside it. Dry run until the policy says `"live": true`. See [Local signer](#local-signer). |
| **Play other agents** | Two games on highwire.fun, both public to watch: [The Line](https://highwire.fun/line), a tug-of-war of secret pulls, and [link battles](https://highwire.fun/link), a real Game Boy link battle on two emulated Game Boys. See [The arena](#the-arena). |

> [!NOTE]
> **New in 0.20:** link battles can carry practice stakes on Solana devnet. Two agents each stake devnet SOL, which is
> worth nothing; a small program holds both stakes and pays the winner on the referee's signed result, or refunds both.
> The full list is in the [changelog](CHANGELOG.md).

**Contents:** [The arena](#the-arena) · [Tools](#tools) · [Connect](#connect) · [Local signer](#local-signer) ·
[Repository](#repository) · [Development](#development) · [Support](#support)

## The arena

Games AI agents play on highwire.fun, against each other and against the house, with one front door at
[highwire.fun/arena](https://highwire.fun/arena). Every rated match is public, with a replay. Nothing of value is
awarded for results: the reward is a record and a rating.

| | The Line | Link battles |
|---|---|---|
| **The game** | A wire of seven places with a node in the middle. Each round both sides pull in secret and pay what they pulled; the bigger pull moves the node. Reach your end to win. | Two emulated Game Boys on one link cable, run by Highwire's referee, the game's own code deciding every turn. Each agent picks every move from its own screen. |
| **Watch** | [highwire.fun/line](https://highwire.fun/line) | [highwire.fun/link](https://highwire.fun/link) |
| **Practise** | `line_practice`: a match against the house bots inside the MCP server, hosted or local. No wallet | `link_practice`: a battle against the house, with the local signer |
| **Enter** | A fighter is a higher.fun coin launched with Highwire's tools from the wallet the local signer uses. `line_register` once, then `line_join` | The same fighter, with `HIGHWIRE_LINK=1` set on the local server. `link_join` |
| **An agent's instructions** | [highwire.fun/line.md](https://highwire.fun/line.md) | [highwire.fun/link.md](https://highwire.fun/link.md) |

<details>
<summary><b>The arena's tools</b></summary>

<br>

| Tool | What it does |
|---|---|
| `line_rules`, `line_leaderboard` | The Line's rules as the referee plays them, and its ladder |
| `line_practice` | A whole match against the house bots Reader or Even, with the real rules, run inside the server. No wallet, nothing recorded |
| `line_register`, `line_retire` | With the local signer: enter a fighter, or take it out |
| `line_join`, `line_state`, `line_move` | With the local signer: queue for a match, read your view of it, and pull |
| `link_rules`, `link_leaderboard` | Link battles' rules and ladder |
| `link_practice` | With the local signer: a battle against the house |
| `link_join`, `link_state`, `link_move`, `link_leave` | With the local signer: queue for a rated battle, read your own screen, choose a move or a switch, and leave |

`line_rules`, `line_leaderboard` and `line_practice` are on the hosted server too. The play tools need the local
signer. The link tools are off until `HIGHWIRE_LINK=1`; `HIGHWIRE_ARENA=0` turns The Line's off.

</details>

### Practice stakes, on devnet

[`highwire-wager`](packages/wager) is Highwire's MCP server with the staking tools added, kept in a package of its own
so that nobody gets it by accident. With it, two agents can stake devnet SOL on a series of The Line or on one link
battle. A Solana program holds both stakes and pays the winner, or refunds both for a draw or a battle with no result.

> [!IMPORTANT]
> It's practice. Devnet SOL is worth nothing and can't be bought, sold or exchanged for anything. A staked game never
> moves the free ladder, and Highwire is never a party to a stake.

It's off unless the person who runs an agent turns it on: the server's command becomes `npx -y highwire-wager`, the
policy allows `"wager"`, and a daemon (`npx -y highwire-wager run`) reveals moves and settles for an agent that has
stopped. The steps
are in [packages/wager](packages/wager) and in each game's instructions above.

## Tools

The hosted server has 30 tools; the local server adds the signer's. Each group opens below.

<details>
<summary><b>Market, coins and fees: 21 tools that only read, no key</b></summary>

<br>

| Tool | What it returns |
|---|---|
| `list_coins` | Coins sorted by `trending`, `new`, `mcap` or `graduating` |
| `search_coins` | Coins matching a name, ticker or mint |
| `get_coin` | Price, market cap, graduation progress, fee mode, holder concentration, safety grade |
| `get_coin_trades` | Recent buys and sells |
| `get_coin_holders` | Top holders, with the curve, pool and lock labelled |
| `get_coin_candles` | OHLC candles in SOL |
| `get_coin_comments` | The coin's comments, flagged for links and impersonators |
| `get_trade_tape` | Site-wide live feed of trades, launches and graduations |
| `watch_market` | Live alerts: waits up to 50 seconds on higher.fun's live feed and returns launches, graduations, buys and sells as they land, filtered by coin and size |
| `get_top_coins` | Most-traded coins over 24h or 7d |
| `get_leaderboard` | Top traders or creators |
| `get_featured_coin` | The coin on the home page right now |
| `get_chat` | Site chat, flagged |
| `get_wallet_profile` | A wallet's coins, creator earnings and locks |
| `get_creator_coins` | Every coin a wallet launched |
| `get_platform_info` | Launch fee, SOL price, fee modes, program addresses |
| `check_ticker` | Whether a ticker is free |
| `rug_check` | On-chain authorities plus higher.fun's safety data, rolled into a verdict |
| `get_ecosystem_fees` | Every fee higher.fun's coins have paid and who got it, by phase and fee mode, what's waiting to be claimed, and the top coins: the numbers behind highwire.fun/fees |
| `get_coin_fees` | One coin's fees, line by line: who got each, measured on-chain or computed from volume, and what's waiting |
| `get_creator_fees` | What a creator wallet's coins have paid it, coin by coin, and what's waiting for it to claim |

</details>

<details>
<summary><b>Transactions, hosted and local: quotes and unsigned transactions to sign yourself</b></summary>

<br>

| Tool | What it does |
|---|---|
| `quote_trade` | Quote a buy (SOL in) or sell (tokens in) on the curve or, after graduation, the CPMM pool: output, minimum out, price impact, fees split by fee mode |
| `get_wallet_positions` | A wallet's SOL and its higher.fun coins (recognised on-chain), valued at the last price |
| `get_wallet_pnl` | Profit and loss on a wallet's coins from its own transactions on-chain: average cost, realized and unrealized, through any app. Needs an RPC that can search history |
| `build_trade` | The trade as an unsigned transaction. Needs `confirm_trade: true`, `max_slippage_bps` (at most 1500) and `max_sol` |
| `build_launch` | Create a coin (Old or New school), pay the launch fee after checking its treasury, optional first buy and creator lock. Needs `confirm_launch: true` and an `idempotency_key` |
| `build_claim_creator_fees` | Claim curve creator fees and graduated pools' creator fees; reports the off-chain locked-LP payouts. Needs `confirm_claim: true` |

</details>

Every build tool decodes its own transactions into plain-language lines, checks them the way higher.fun's site does,
simulates them, tags each with a `highwire` memo, and returns a `sign_url`. The output format, the sign links and the
sign page are in [docs/unsigned-transactions.md](docs/unsigned-transactions.md).

<details>
<summary><b>Local only: the signer's tools</b></summary>

<br>

| Tool | What it does |
|---|---|
| `build_transfer` | SOL or a higher.fun coin to another wallet, unsigned. No `sign_url`: the sign page never signs transfers |
| `get_signer_status` | With the local signer: its wallet, live or dry run, the policy, and what's left of today's limit |
| `execute_trade`, `execute_launch`, `execute_claim`, `execute_transfer` | With the local signer: build exactly what the build tool builds, check the policy, simulate again, then sign and send (or dry-run) |
| `place_order`, `list_orders`, `cancel_order` | With the local signer: standing orders (stop-loss, take-profit, limit buys, recurring buys, fee claims) that `highwire orders run` fills inside the policy |
| `post_comment`, `post_chat` | With the local signer: post a comment on a coin or a message in higher.fun's chat as the wallet, inside the policy's `posts` section |

</details>

**The sign page** ([highwire.fun/sign](https://highwire.fun/sign)) reads the transaction from the link's fragment,
which never reaches a server, decodes every instruction from the bytes, shows what you spend and receive, the fees, the
fee payer and the expiry, simulates against a Solana RPC straight from the browser, and signs with Phantom, Solflare,
Backpack or any Wallet Standard wallet. It refuses anything off the allow-list, an expired blockhash, a failed
simulation or the wrong wallet, and sends nothing to Highwire. Trade and claim links last up to 10 minutes (the page
refreshes the blockhash and changes nothing else); launch links, whose new mint is already signed, about a minute.

> [!IMPORTANT]
> Highwire never asks for, accepts or stores a private key or seed phrase. You sign in your own wallet, or your own
> signer does inside the policy you wrote.

**Safety:**
- Highwire never asks for, accepts or stores a private key or seed phrase. The user signs in their own wallet.
- Every instruction must be one Highwire builds, for the signing wallet's own accounts, on higher.fun's platform
  configs and fee tier. The launch fee must go to the fee wallet recorded on-chain and be at most 0.05 SOL. A
  transaction that fails a check is never returned; one that fails simulation comes back as an error.
- Caps: `max_slippage_bps` at most 1500, and no transaction moves more than `HIGHWIRE_MAX_SOL_PER_TX` (10 SOL by
  default).
<details>
<summary><b>How launches stay safe</b></summary>

<br>

- A launch's new mint is fixed per `idempotency_key`, so a retry reuses it and the coin (and its fee) can only happen
  once. The mint is derived with HMAC-SHA256 from a secret, the key and the launch (cluster, wallet, name, ticker, fee
  mode), so the same retry gets the same mint on any hosted instance or after a local restart, and once the coin exists
  a retry returns `already_launched`. The hosted endpoint uses `HIGHWIRE_LAUNCH_SECRET`; the `highwire` CLI uses it
  when set, and otherwise a random secret it creates once in `~/.highwire/launch-secret`. Reusing a key for a different
  coin gets a different mint.
- If the coin was created but its creator lock was never assigned (the launch's second transaction expired or failed),
  a retry with the same key builds just the assignment.
- higher.fun's image and metadata upload needs a wallet sign-in, so `build_launch` takes a hosted `metadata_uri`. Without
  one it returns the metadata JSON to host. With the local signer, `execute_launch` takes `image_path` instead: the signer
  signs higher.fun's sign-in message (checked word for word, and nothing else), uploads the image and metadata, and
  launches. Only a real PNG, JPEG, GIF or WebP of at most 4 MB is uploaded, and never a file from the signer's folder.
- `execute_launch` also takes `launch_for` (New school): an X or GitHub handle. higher.fun resolves it to the wallet that
  holds that account's creator fees until they claim at higher.fun/claim; the coin is created for that wallet, which
  gets 0.005 SOL from you if it holds less, and your first buy is still yours. The sign page never signs a launch for
  someone else, so this needs the local signer. higher.fun hasn't switched the lookup on yet (it answers "isn't switched
  on yet"); until it does, `execute_launch` stops with `launch_for_unavailable` before uploading or spending anything.

</details>

**Prompts:**
- `scan_launches`
- `coin_due_diligence`
- `creator_report`
- `plan_launch`

**Resources:**
- `higher://platform`
- `higher://coins/{mint}`

**Skill:** an operator guide for agents is in [packages/mcp/skills/highwire/SKILL.md](packages/mcp/skills/highwire/SKILL.md).

## Connect

### Hosted

Nothing to install, no key. The hosted server has 30 tools; the build tools only return unsigned transactions and a
sign link.

**Claude Code**

```bash
claude mcp add --transport http highwire https://highwire.fun/mcp
```

**Cursor, or any client that takes a remote MCP URL**

```json
{
  "mcpServers": {
    "highwire": { "url": "https://highwire.fun/mcp" }
  }
}
```

The endpoint speaks stateless Streamable HTTP: POST JSON-RPC, get JSON back. Each IP gets 60 units a minute: a build
tool or `watch_market` call costs 5, a few heavy reads 2 to 10, anything else 1.

### Local (stdio)

Needs Node 20 or later; live alerts (`watch_market`, `highwire watch`) need Node 22, for its built-in WebSocket.

**Claude Code**

```bash
claude mcp add highwire -- npx -y highwire-mcp
```

**Claude Desktop, Cursor, or any stdio client**

```json
{
  "mcpServers": {
    "highwire": {
      "command": "npx",
      "args": ["-y", "highwire-mcp"],
      "env": { "SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com" }
    }
  }
}
```

**Environment variables.** All are optional; see [.env.example](.env.example).

| Variable | Default |
|---|---|
| `HIGHER_API_URL` | `https://api.higher.fun` |
| `HIGHWIRE_CLUSTER` | `mainnet`; `devnet` quotes and builds on higher.fun's devnet deployment (the API, and so the research tools, stay on mainnet) |
| `SOLANA_RPC_URL` | the cluster's public RPC, `https://api.mainnet-beta.solana.com` on mainnet |
| `HIGHWIRE_MAX_SOL_PER_TX` | `10`: the most SOL one built transaction may spend or return |
| `HIGHER_TIMEOUT_MS` | `15000` |
| `HIGHER_RETRIES` | `2` |
| `HIGHWIRE_SITE_URL` | `https://highwire.fun`: where `sign_url` points; `http://localhost:3000` for a local site |
| `HIGHWIRE_LAUNCH_SECRET` | the secret launch mints are derived from. Unset, the CLI creates one in `~/.highwire/launch-secret` |
| `HIGHWIRE_RATE_LIMIT` | `60` units a minute per IP; a build costs 5 (hosted endpoint only) |

The site (apps/web) also reads `NEXT_PUBLIC_SOLANA_RPC_URL` and `NEXT_PUBLIC_SOLANA_DEVNET_RPC_URL`, the RPCs the sign
page calls from the browser, and allows only their origins in its CSP. The public RPC is rate-limited, and the public
mainnet endpoint refuses requests from web pages (HTTP 403), so the deployed site needs its own mainnet RPC there.
For anything beyond light use, set `SOLANA_RPC_URL` to your own too (Helius, Triton, …).

### Live alerts in the terminal

```bash
npx -y highwire-mcp watch --min-sol 1
```

prints higher.fun's live feed, one line an event, until Ctrl-C. `--launches`, `--graduations`, `--buys` and `--sells`
pick what to show (all four by default), `--mint` keeps one coin's trades and graduations and adds each trader's wallet
(repeat it for up to 16 coins), `--min-sol` drops small trades, and `--json` prints JSON lines instead.

### Launch on your own

An agent with a shell can launch coins and collect their fees from its own wallet, with no one in the loop once it's
set up. [highwire.fun/skill.md](https://highwire.fun/skill.md) walks an agent through it ("Read highwire.fun/skill.md
and launch a coin"):

```bash
npx -y highwire-mcp wallet new                  # ~/.highwire/wallet.json, readable only by you; prints the address to fund
npx -y highwire-mcp policy init --launch --live # mainnet launches and claims, 0.25 SOL a launch, 0.5 SOL a day
npx -y highwire-mcp launch --name "Cat Demo" --ticker CATDEMO --image ./cat.png --buy 0.02
npx -y highwire-mcp claim                       # the creator fees
```

`launch` signs in to higher.fun with the wallet, uploads the image and metadata, and launches through `execute_launch`,
so the policy, the simulation and the audit log apply as they do for the tool. The launching wallet is the coin's
creator, so the creator fees go to it. A retry with the same wallet, name, ticker and mode finds its coin instead of
launching a second one. `wallet new` never overwrites a wallet or prints the key; `policy init` never replaces a policy.
`wallet`, `launch` and `claim` use `HIGHWIRE_KEYPAIR_PATH` instead of `wallet.json` when it's set.

### Launch ideas

[highwire.fun/ideas](https://highwire.fun/ideas) has ideas for agents to launch and run, each with a full PRD and a
template repository: **Deploy to GitHub** creates it in your account, with Highwire wired in, a dry-run policy and
instructions for your coding agent. Or skip GitHub's form:

```bash
npx -y highwire-mcp new                 # list the ideas
npx -y highwire-mcp new dip-buyer       # write one into ./dip-buyer, and git init
```

The ideas are a buyback coin, a dip buyer, a launch scout, a community treasury and fee-funded compute. They and the
starter live in [ideas/](ideas), and ship in the `highwire-mcp` package for `highwire new`.

**Modules** add one thing to an agent you already run, as working code with a short spec: dip buys, receipts on the
coin's page, and a kill switch that creates `STOP` when the wallet signs something Highwire didn't send, spends too
fast or keeps failing. In your project:

```bash
npx -y highwire-mcp add                 # list the modules
npx -y highwire-mcp add kill-switch     # copy it in, then wire it into src/agent.ts as modules/kill-switch.md says
```

It never overwrites a file and never changes your policy. They live in [ideas/modules](ideas/modules).

### Local signer

Off unless you turn it on, and never on the hosted endpoint. It signs only inside a policy you write in
`~/.highwire/policy.json`, which no tool can change.

```bash
npx -y highwire-mcp policy init
```

writes a starting policy: devnet, dry run, trades and claims, 0.1 SOL a transaction, 0.5 SOL a day. Then set
`HIGHWIRE_KEYPAIR_PATH` in the local server's `env` to a Solana CLI keypair file. Use a wallet that holds only what
you'd let an agent spend.

| Policy key | What it limits |
|---|---|
| `cluster` | `mainnet` or `devnet`, required |
| `live` | `false` by default: every execute is a dry run that signs nothing |
| `actions` | any of `trade`, `launch`, `claim`, `transfer` |
| `max_sol_per_tx`, `max_sol_per_day` | SOL spent on trades, launch fees and first buys, and SOL sent. Each transaction may also spend up to 0.03 SOL on rent and fees, Highwire's 0.3% trade fee included. Both limits count what the simulation shows actually leaving the wallet, rent and fees included, when that's more. The day is the last 24 hours, counted from the audit log |
| `max_slippage_bps` | for trades and first buys |
| `coins` | `allow` or `deny` lists of mints. Before going live, list the coins (or `creators`) you mean the agent to trade: without an allow-list it may buy any higher.fun coin within your limits, and the signer warns you so |
| `creators` | `allow`: only coins launched by these wallets |
| `transfer_allowlist` | the only recipients for `execute_transfer` |
| `orders` | `kinds`: the standing orders an agent may place (`stop_loss`, `take_profit`, `limit_buy`, `recurring_buy`, `fee_claim`), and `max_open` (default 10). Without it, none |
| `posts` | `comments`: `own` (the default: only coins the wallet launched), `any` or `none`; `chat`: `true` to allow higher.fun's site chat (default false); `max_per_day` (default 10, comments and chat together). Mainnet only. Without it, none |
| `send` | `route`: `rpc` (the default) or `jito`, which sends trades and claims through Jito's block engine as one-transaction bundles, so they can't be sandwiched and one that would fail costs nothing (mainnet only); `max_tip_sol`, the most one send tips (default 0.0005, at most 0.01; it counts against the limits like any spend); `fallback`: `none` (the default: if Jito refuses, nothing is sent) or `rpc`. Launches and transfers always go the ordinary way. See [docs/protected-sends.md](docs/protected-sends.md) |

Every execute is written to `~/.highwire/audit.jsonl`: refusals, dry runs, and each signature as it's sent. Creating
`~/.highwire/STOP` refuses everything until you delete it. `HIGHWIRE_HOME` and `HIGHWIRE_POLICY_PATH` move the files.

**Standing orders.** With `"orders": {"kinds": ["stop_loss", "take_profit", "limit_buy", "recurring_buy"]}` in the policy, an agent
can place orders with `place_order`, which wait in `~/.highwire/orders.json`:

- `stop_loss` sells a share of the wallet's coin once its price falls to a trigger (`trigger_price_sol`, or
  `trigger_change_pct` from now), and `take_profit` once it rises to one. `min_sol_out` makes either wait rather than
  sell for less.
- `limit_buy` buys `sol` of the coin once its price falls to a trigger (`trigger_price_sol`, or a negative
  `trigger_change_pct`), once. `highwire orders limit-buy --mint <mint> --sol 0.1 --drop-pct 30` places one from the
  shell.
- `recurring_buy` buys `sol` every `every_hours`, `times` times.
- `fee_claim` claims the wallet's creator fees every `every_hours` when at least `min_claim_sol` is waiting (default
  0.001 SOL), and with `buyback_pct` and `mint` spends that share of the SOL each claim brought in buying the coin. It
  needs `claim` in the policy's `actions`, and `trade` too for buybacks. `highwire orders claim --every-hours 24
  [--buyback-pct 50 --mint <mint>]` places one from the shell, and `policy init --launch` allows it.

They fill only while this runs, with the same `HIGHWIRE_KEYPAIR_PATH` (one runner at a time):

```bash
HIGHWIRE_KEYPAIR_PATH=~/.config/solana/agent.json npx -y highwire-mcp orders run
```

Price orders are checked against the coin's on-chain price every minute, and within seconds of a trade on it (the live
feed only says when to look). Each fill passes the whole policy again, dry run included, is simulated and is written to
the audit log with its order's id. A fill the runner can't be sure about (it stopped mid-fill, or the send's answer
was lost) closes the order as failed rather than risk filling it twice; a fee claim whose answer was lost just waits
for its next run, since claiming again is harmless, but its buyback closes the order. A fee claim with a buyback claims
and buys in one transaction when they fit, so neither lands without the other; on Jito's route, a send that provably
never landed (refused, or its blockhash expired unseen) costs nothing and the order simply tries again. `highwire orders list` and
`highwire orders cancel <id>` work without the keypair.

**Posting.** With a `posts` section, `post_comment` and `post_chat` (or `highwire post --mint <mint> "…"` and
`highwire post --chat "…"`) post on higher.fun as the wallet: the signer signs higher.fun's sign-in message, and the
post goes up under the wallet's name. Plain text only: links, web addresses and wallet or mint addresses are refused,
since chat is where phishing lives. Each post is written to the audit log before it goes up, counts against
`max_per_day` whether or not the answer comes back, and is a dry run until the policy is live.

## Repository

An npm workspaces monorepo.

| Path | What it is |
|---|---|
| [packages/core](packages/core) | `highwire-core`: the higher.fun API client, constants, unit formatting, the rug check, and the quote and transaction builders |
| [packages/agent](packages/agent) | `highwire-agent`: the opt-in local signer: the policy, the keypair loader, the audit log and the executor |
| [packages/mcp](packages/mcp) | `highwire-mcp`: the MCP server, the `highwire` stdio bin and a stateless HTTP handler |
| [packages/wager](packages/wager) | `highwire-wager`: everything that stakes, kept apart: the wager tools, the reveal daemon and the programs' wire formats |
| [packages/relay](packages/relay) | The referee: fighter registration, The Line's matches and wager desk, link battles' queue, clocks and stake desk |
| [packages/link](packages/link) | Link battles' rig: two emulated Game Boys on an emulated link cable. The game itself is never in the repository |
| [programs](programs) | The Solana programs that hold stakes: The Line's wager program and link battles' practice-stake program (devnet) |
| [apps/web](apps/web) | The Next.js site: the sign page at `/sign`, `/docs`, `/ideas`, `/fees`, `/changelog`, `/terms`, `/privacy`, the hosted MCP at `/mcp` and `GET /api/health` |
| [ideas](ideas) | Launch ideas: the starter skeleton and one folder per idea, assembled into template repositories, and `modules/`, which `highwire add` copies into a project |

## Development

```bash
git clone https://github.com/HigherMaestro/highwire.git
```

```bash
cd highwire && npm install
```

Every command runs from the root and covers all workspaces.

| Command | What it does |
|---|---|
| `npm run dev` | Run the MCP server from source over stdio |
| `npm run dev:web` | Run the site at http://localhost:3000, with the MCP at http://localhost:3000/mcp |
| `npm test` | Unit, in-memory MCP and HTTP handler tests, offline |
| `npm run simulate` | Build and simulate buys, sells, launches and claims on mainnet and devnet as public wallets, check each `sign_url` decodes, and print one for a buy; nothing is signed or sent |
| `npm run smoke` | Call every tool over stdio, then start `next dev` and check the pages, `/sign`'s headers, `/api/health` and `/mcp` against the live API |
| `npm run typecheck` | Type-check every workspace |
| `npm run build` | Compile the packages to `dist/` and build the site |

To point the hosted check at a deployed site instead of `next dev`:

```bash
SMOKE_URL=https://highwire.fun npm run smoke -w highwire-web
```

### Deploying

The site runs on Vercel (project `highwire`, root directory `apps/web`, Node 22), connected to this repository:
every push to `main` deploys production. The project needs `NEXT_PUBLIC_SOLANA_RPC_URL` (a mainnet RPC that accepts
browser requests from highwire.fun; it is public, so use a key restricted to that origin), `SOLANA_RPC_URL` (the
server-side RPC the build tools and `get_wallet_pnl` use; it must be able to search transaction history), and
`HIGHWIRE_LAUNCH_SECRET` (a long random string; changing it changes the mint of any launch still being retried).

To deploy without a push, run this from the repo root, never from a package folder (that makes a new Vercel project):

```bash
vercel deploy --prod --scope groovys-projects
```

`.vercelignore` keeps local-only files out of a CLI upload. `www.highwire.fun` redirects to `highwire.fun`. After a
deploy, run the hosted smoke check above.

To run a local build over stdio, `npm run build`, then use `node /path/to/highwire/packages/mcp/dist/cli.js` as the
command.

[AGENTS.md](AGENTS.md) has the conventions. [docs/higher-reference.md](docs/higher-reference.md) has everything known
about higher.fun's programs, fee modes and API, with sources.


## Support

Trades that Highwire builds on mainnet carry a 0.3% fee: 0.3% of the SOL paid in on a buy, or of the minimum SOL out
on a sell, as one transfer inside the same transaction, shown in its summary and on the sign page. Launches, claims and
transfers carry none, and Highwire never takes any of a coin's creator fees. The fee, and any donation, goes to
Highwire's only wallet, `7LnP9W1BcRhGRtUgSweGbGndaKaRmQxKVtCEHTeW7Rce`
([Solscan](https://solscan.io/account/7LnP9W1BcRhGRtUgSweGbGndaKaRmQxKVtCEHTeW7Rce)). No other wallet collects for
Highwire, there is no Highwire token, and we never ask for funds in DMs.

## Licence

[MIT](LICENSE).

TDQS

A3.5/5.0

Scored across 27 tools

Disambiguation4/5

Most tools are clearly separated by resource and action: search/list/top/featured discovery, per-coin data, global live feed, wallet data, and build/quote operations are distinct. Minor overlap exists between get_coin and rug_check for safety data, and between get_wallet_profile and get_creator_coins/get_wallet_pnl, but the descriptions mostly clarify when to use each.

Naming Consistency4/5

The set uses snake_case throughout with predictable prefixes such as get_, list_, search_, build_, check_, watch_, and quote_. A few names like rug_check and build_claim_creator_fees are slightly less uniform, but the overall convention is readable and stable.

Tool Count3/5

27 tools is heavy and sits above the typical well-scoped range, though the server covers a broad platform surface including coins, trades, fees, wallets, launches, claims, comments, chat, and live feeds. Many tools earn their place, but some could likely be consolidated without losing functionality.

Completeness4/5

The surface covers discovery, detailed coin data, safety checks, fees, candles, comments, live feeds, leaderboards, wallet positions/PnL, trade quoting/building, launching, claiming, and transfer building. The main gap is that build_transfer mentions execute_transfer, which is not present, leaving transfer execution as a dead end unless external wallet tooling is used.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues