paralith-mcp 0.4.7 → 0.4.9

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,52 +1,53 @@
1
- # paralith-mcp
2
-
3
- MCP server for the Paralith protocol: an AI with one 24-word phrase plays Rune
4
- Realm, trades on both order books, moves Rune, and bridges PUSD on Base,
5
- Solana and Sui. Public docs: `products/orderbook/app/src/docs/pages/ai/mcp.md`
6
- (served at docs.paralithmarkets.com/ai/mcp).
7
-
8
- ## Use
9
-
10
- Read-only, no install: connect your MCP client to `https://mcp.paralithmarkets.com/mcp`.
11
-
12
- To play, trade and bridge, connect every agent app on this machine (Claude Code, Claude Desktop, Codex, Grok), each with its own new wallet:
13
-
14
- ```bash
15
- npx -y paralith-mcp@latest setup
16
- ```
17
-
18
- Or by hand, with a phrase made for the agent (Node 20+):
19
-
20
- ```bash
21
- claude mcp add paralith --env PARALITH_MNEMONIC_FILE=/path/to/agent-phrase.txt -- npx -y paralith-mcp@latest
22
- ```
23
-
24
- Other clients: command `npx`, args `["-y", "paralith-mcp@latest"]`, env `PARALITH_MNEMONIC_FILE`.
25
- Everything deployed is TEST-prefixed; chain gas is real. Tools: https://docs.paralithmarkets.com/ai/tools
26
-
27
- ## Develop
28
-
29
- Hosted endpoint: `cpdeploy paralith-mono --env mcp` (`.cipherplay/deploy.mcp.env`).
30
-
31
- ```bash
32
- npm install
33
- npm run build # bundle clients + servers into dist/ against the recorded deployment, regenerate the tool reference page
34
- PARALITH_MNEMONIC_FILE=phrase.txt node scripts/call.mjs # list tools
35
- PARALITH_MNEMONIC_FILE=phrase.txt node scripts/call.mjs wallet '{}' # call one over real stdio
36
- npm test # also fails if dist/ or the tool reference is stale
37
- ```
38
-
39
- - `src/server.mjs`: stdio entry. No phrase means read-only. `setup` runs `src/setup.mjs` instead.
40
- - `src/setup.mjs`: one wallet per agent app, written into each app's MCP config; `src/agents.mjs` records their public addresses.
41
- - `src/progress.mjs`: the `progress` tool, one read across game, venues, vaults, bridge and gas, for one agent or all.
42
- - `src/http.mjs`: hosted read-only endpoint, `POST /mcp`, `GET /health`.
43
- - `src/build.mjs`: `buildServer()` and the account tools.
44
- - `src/keys.mjs`: phrase to AO/Base/Solana/Sui signers.
45
- - `src/game.mjs`, `exchange.mjs`, `vaults.mjs`, `bridge.mjs`, `dao.mjs`: the tools. Game and venue verbs come
46
- from the shipped client bundle (`backend/native/swarm/build-client.mjs`), never
47
- reimplemented. Bridge chain calls mirror `products/bridge/testwallets/e2e.mjs`.
48
- - `src/views.mjs`: compact replies (`full: true` returns raw records).
49
- - `scripts/tools-doc.mjs`: writes the docs' tool reference (`ai/tools.md`) from the registered tools.
50
- - `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.
51
-
52
- `dist/` is committed: the hosted image runs it as is. Re-run `npm run build` after every deploy, commit, and redeploy `mcp` and `docs`.
1
+ # paralith-mcp
2
+
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`
7
+ (served at docs.paralithmarkets.com/ai/mcp).
8
+
9
+ ## Use
10
+
11
+ Read-only, no install: connect your MCP client to `https://mcp.paralithmarkets.com/mcp`.
12
+
13
+ To play, trade and bridge, connect every agent app on this machine (Claude Code, Claude Desktop, Codex, Grok), each with its own new wallet:
14
+
15
+ ```bash
16
+ npx -y paralith-mcp@latest setup
17
+ ```
18
+
19
+ Or by hand, with a phrase made for the agent (Node 20+):
20
+
21
+ ```bash
22
+ claude mcp add paralith --env PARALITH_MNEMONIC_FILE=/path/to/agent-phrase.txt -- npx -y paralith-mcp@latest
23
+ ```
24
+
25
+ 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
+
28
+ ## Develop
29
+
30
+ Hosted endpoint: `cpdeploy paralith-mono --env mcp` (`.cipherplay/deploy.mcp.env`).
31
+
32
+ ```bash
33
+ npm install
34
+ npm run build # bundle clients + servers into dist/ against the recorded deployment, regenerate the tool reference page
35
+ PARALITH_MNEMONIC_FILE=phrase.txt node scripts/call.mjs # list tools
36
+ PARALITH_MNEMONIC_FILE=phrase.txt node scripts/call.mjs wallet '{}' # call one over real stdio
37
+ npm test # also fails if dist/ or the tool reference is stale
38
+ ```
39
+
40
+ - `src/server.mjs`: stdio entry. No phrase means read-only. `setup` runs `src/setup.mjs` instead.
41
+ - `src/setup.mjs`: one wallet per agent app, written into each app's MCP config; `src/agents.mjs` records their public addresses.
42
+ - `src/progress.mjs`: the `progress` tool, one read across game, tokens, the book, vaults, bridge and gas, for one agent or all.
43
+ - `src/http.mjs`: hosted read-only endpoint, `POST /mcp`, `GET /health`.
44
+ - `src/build.mjs`: `buildServer()` and the account tools.
45
+ - `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`.
49
+ - `src/views.mjs`: compact replies (`full: true` returns raw records).
50
+ - `scripts/tools-doc.mjs`: writes the docs' tool reference (`ai/tools.md`) from the registered tools.
51
+ - `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.
52
+
53
+ `dist/` is committed: the hosted image runs it as is. Re-run `npm run build` after every deploy, commit, and redeploy `mcp` and `docs`.