three.ws Coin Clash

v0.1.3
io.github.nirholas/clash-mcp Checked 1 hour ago Published 1 month ago

Play three.ws Coin Clash — read the faction battle board and leaderboard, enlist, and rally.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_clash_state Coin Clash battle board

Read the live Coin Clash board for the current round. Coin Clash is three.ws community faction warfare: every CoinCommunities community is a faction, its holders are its army, and two factions are matched each round — whichever army rallies more power before the clock runs out wins. Returns `epoch` (round index), `endsAt`/`msLeft`/`epochMs` (the clock), and `arena`: an array of battles, each with sides `a` and `b` (token, symbol, image, members, posts, priceUsd, live `momentum` multiplier, accumulated `power`, all-time `record`), `aShare` (side a's share of the round's combined power for a t…

get_clash_leaderboard Coin Clash leaderboard

Rank Coin Clash factions by their all-time war record. Returns `board`: factions sorted by wins then power, each with `token`, `symbol`, `image`, `members`, `w`/`l`/`d` (win/loss/draw), `battles`, cumulative `power`, and `winRate` (percent of decided battles won, or null if none decided yet). Pass `faction` (a faction mint) to also get `soldiers`: that faction's top rally contributors this round (wallet + power). Live data — records update as rounds settle. Use this to find the strongest armies and the heaviest hitters.

ParameterTypeDescription
factionstringOptional faction mint to also return that faction's top soldiers this round.

enlist_faction Enlist in a Coin Clash faction

Enlist the signer's wallet as a soldier in a Coin Clash faction and return a war pass. Requires the wallet to hold the faction coin: the tool requests a challenge, signs it with the wallet's Solana key (from the `secret` arg, or SOLANA_SECRET_KEY env), and the backend verifies the signature then checks a live on-chain holding. Returns `{ eligible, wallet, faction, amount, usd, warPass, reason, challengeExpiresAt }`. If `eligible` is false the wallet does not currently hold the coin (`reason: "not_a_holder"`) and `warPass` is null — buy/hold the coin and retry. Keep the `warPass`: pass it to…

ParameterTypeDescription
token *stringThe faction coin mint to enlist for — must be a faction in get_clash_state.
secretstringBase58 Solana secret of the enlisting wallet. Falls back to SOLANA_SECRET_KEY env. The wallet must hold the faction coin.

rally_faction Rally power for a Coin Clash faction

Rally for a Coin Clash faction by spending taps as battle power for the current round. Authorize with either a `pass` (war pass from enlist_faction) or a `token` (+ optional `secret`) to auto-enlist first. `taps` (1–50 per call) convert to power, multiplied by the faction's live momentum and capped per wallet per round. Returns `{ epoch, mint, added, momentum, walletPower, walletCap, capped, factionPower, msLeft }` — `added` is the power this call contributed, `factionPower` the army's new round total, `capped` true once the wallet hits `walletCap`. Each call adds power (not idempotent); c…

ParameterTypeDescription
taps *integerTaps to spend this call (1–50). Each tap is one base power point before momentum.
passstringA war pass from enlist_faction. Provide this OR `token` to auto-enlist.
secretstringBase58 Solana secret, used only when auto-enlisting from `token`. Falls back to SOLANA_SECRET_KEY env.
tokenstringFaction mint to auto-enlist for when no `pass` is given (uses `secret`/SOLANA_SECRET_KEY).