@toon-protocol/client-mcp 0.7.0 → 0.8.0
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 +6 -6
- package/dist/app/index.html +68 -68
- package/dist/{chunk-PX3DOSEG.js → chunk-57G7AAEG.js} +44 -14
- package/dist/chunk-57G7AAEG.js.map +1 -0
- package/dist/{chunk-EY5GFEDH.js → chunk-G5H3OD5N.js} +30 -15
- package/dist/chunk-G5H3OD5N.js.map +1 -0
- package/dist/{chunk-76CTU2A5.js → chunk-UEP6PFZN.js} +11 -5
- package/dist/chunk-UEP6PFZN.js.map +1 -0
- package/dist/daemon.js +2 -2
- package/dist/index.d.ts +34 -22
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-76CTU2A5.js.map +0 -1
- package/dist/chunk-EY5GFEDH.js.map +0 -1
- package/dist/chunk-PX3DOSEG.js.map +0 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ The `toon-client` MCP server exposes **8 tools**:
|
|
|
51
51
|
| `toon_read({subId?,cursor?,limit?})` | `GET /events` | drain buffered events by cursor (free) |
|
|
52
52
|
| `toon_open_channel({destination?})` | `POST /channels` | `openChannel` (pre-open / fetch a channel) |
|
|
53
53
|
| `toon_channels` | `GET /channels` | `getTrackedChannels` + nonce watermark + cumulative spend |
|
|
54
|
-
| `toon_swap(destination,amount,{toonData?})` | `POST /swap` | `sendSwapPacket` (
|
|
54
|
+
| `toon_swap(destination,amount,{toonData?})` | `POST /swap` | `sendSwapPacket` (swap peer swap) |
|
|
55
55
|
|
|
56
56
|
## Install
|
|
57
57
|
|
|
@@ -104,14 +104,14 @@ can supply your own via env or an imported keystore.
|
|
|
104
104
|
"keystorePath": "~/.toon-client/keystore.json",
|
|
105
105
|
"btpUrl": "ws://<apex-host>:3000/btp",
|
|
106
106
|
"relayUrl": "ws://<relay-host>:7100", // free reads
|
|
107
|
-
"destination": "g.
|
|
107
|
+
"destination": "g.proxy",
|
|
108
108
|
"feePerEvent": "1",
|
|
109
109
|
"httpPort": 8787,
|
|
110
110
|
// Direct-apex mode: bootstrap finds 0 peers, so name the apex's
|
|
111
111
|
// settlement address directly (mirrors the docker entrypoint):
|
|
112
112
|
"apex": {
|
|
113
|
-
"destination": "g.
|
|
114
|
-
"peerId": "
|
|
113
|
+
"destination": "g.proxy",
|
|
114
|
+
"peerId": "proxy",
|
|
115
115
|
"chain": "evm",
|
|
116
116
|
"chainKey": "evm:base:84532",
|
|
117
117
|
"chainId": 84532,
|
|
@@ -231,7 +231,7 @@ The agent runs:
|
|
|
231
231
|
```
|
|
232
232
|
|
|
233
233
|
Other common calls: **`toon_open_channel`** to pre-open a channel before a burst
|
|
234
|
-
of publishes, and **`toon_swap({ destination, amount })`** to pay a
|
|
234
|
+
of publishes, and **`toon_swap({ destination, amount })`** to pay a swap peer and
|
|
235
235
|
receive a target-chain claim.
|
|
236
236
|
|
|
237
237
|
> **CLI equivalent** (handy for scripting/debugging — the MCP tools map 1:1 to
|
|
@@ -271,7 +271,7 @@ The integration suite lives in `src/__integration__/`.
|
|
|
271
271
|
|
|
272
272
|
This package is **published to npm automatically by CI/CD**, in lockstep with the
|
|
273
273
|
repo's release tag (the same `vX.Y.Z` semantic-release cuts for
|
|
274
|
-
`@toon-protocol/
|
|
274
|
+
`@toon-protocol/relay`). On a release, `publish-relay-images.yml` builds
|
|
275
275
|
this package, sets its version to the tag, and runs
|
|
276
276
|
`pnpm --filter @toon-protocol/client-mcp publish --access public`.
|
|
277
277
|
|