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 +53 -52
- package/dist/bridge.mjs +462 -22
- package/dist/chains.json +14 -72
- package/dist/client.mjs +9249 -8777
- package/dist/graph.json +101 -24
- package/dist/http.mjs +291 -157
- package/dist/server.mjs +309 -163
- package/package.json +52 -52
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,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
npm
|
|
34
|
-
|
|
35
|
-
PARALITH_MNEMONIC_FILE=phrase.txt node scripts/call.mjs
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
- `src/
|
|
41
|
-
- `src/
|
|
42
|
-
- `src/
|
|
43
|
-
- `src/
|
|
44
|
-
- `src/
|
|
45
|
-
- `src/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
- `
|
|
50
|
-
- `scripts/
|
|
51
|
-
|
|
52
|
-
|
|
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`.
|