paralith-mcp 0.4.9 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # paralith-mcp
2
2
 
3
3
  MCP server for the Paralith protocol: an AI with one 24-word phrase plays Rune
4
- Realm, moves Rune, Gold and berries between the game and its wallet, trades on
5
- the Gold-quoted order book, and bridges PUSD on Base,
6
- Solana and Sui. Public docs: `products/orderbook/app/src/docs/pages/ai/mcp.md`
4
+ Realm, moves Rune and berries between the game and its wallet, trades on the
5
+ PUSD-quoted order book (Rune, the four berries, RNG, WIN and YAP), reads all
6
+ four DAOs, and bridges PUSD on Base, Solana and Sui. Gold is an in-game
7
+ balance only; there is no Gold token. Public docs: `products/orderbook/app/src/docs/pages/ai/mcp.md`
7
8
  (served at docs.paralithmarkets.com/ai/mcp).
8
9
 
9
10
  ## Use
@@ -23,7 +24,17 @@ claude mcp add paralith --env PARALITH_MNEMONIC_FILE=/path/to/agent-phrase.txt -
23
24
  ```
24
25
 
25
26
  Other clients: command `npx`, args `["-y", "paralith-mcp@latest"]`, env `PARALITH_MNEMONIC_FILE`.
26
- PUSD and the DAO are TEST deployments; chain gas is real. Tools: https://docs.paralithmarkets.com/ai/tools
27
+ The chains' bridged stablecoin is TEST-USDC; chain gas is real. Tools: https://docs.paralithmarkets.com/ai/tools
28
+
29
+ Prices are PUSD per whole token, exact to the tick: `den(quote) + log10(lot/unit)`
30
+ decimals (`src/price.mjs`), so RNG, WIN and YAP, which trade in lots of 1,000,
31
+ price to 9 decimals. The book credits PUSD only on the ledgers its vault
32
+ publishes as active (`vaultinfo.Assets.pusd.ledgers`); `exchange_transfer`
33
+ refuses any other, and `bridge_route`/`bridge_move` take PUSD there.
34
+
35
+ The PUSD root is Arweave-scheduled. PUSD root writes use the composed
36
+ ANS-104 route; the legacy HTTP scheduler route is intentionally not used for
37
+ these actions because it requires an Arweave `tx@1.0` commitment.
27
38
 
28
39
  ## Develop
29
40
 
@@ -43,9 +54,8 @@ npm test # also fails if dist/ or the tool reference is
43
54
  - `src/http.mjs`: hosted read-only endpoint, `POST /mcp`, `GET /health`.
44
55
  - `src/build.mjs`: `buildServer()` and the account tools.
45
56
  - `src/keys.mjs`: phrase to AO/Base/Solana/Sui signers.
46
- - `src/game.mjs`, `exchange.mjs`, `vaults.mjs`, `bridge.mjs`, `dao.mjs`: the tools. Game and venue verbs come
47
- from the shipped client bundle (`backend/native/swarm/build-client.mjs`), never
48
- reimplemented. Bridge chain calls mirror `products/bridge/testwallets/e2e.mjs`.
57
+ - `src/game.mjs`, `exchange.mjs`, `vaults.mjs`, `bridge.mjs`, `dao.mjs`: the tools. Every verb comes from
58
+ paralith-sdk (`packages/sdk`, `createParalith` in `src/runtime.mjs`), never reimplemented. Bridge chain calls mirror `products/bridge/testwallets/e2e.mjs`.
49
59
  - `src/views.mjs`: compact replies (`full: true` returns raw records).
50
60
  - `scripts/tools-doc.mjs`: writes the docs' tool reference (`ai/tools.md`) from the registered tools.
51
61
  - `scripts/vault-keeper.mjs`: cranks vaults that need it; report-only unless `--crank` (signs with the phrase). Run `--crank --watch` wherever the venue is operated.