@toon-protocol/client-mcp 0.10.8 → 0.10.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 +3 -3
- package/dist/{chunk-ADBNZA5O.js → chunk-CS4B3GET.js} +3 -3
- package/dist/chunk-CS4B3GET.js.map +1 -0
- package/dist/{chunk-3ZBC2HUB.js → chunk-UHITXU5V.js} +7 -7
- package/dist/chunk-UHITXU5V.js.map +1 -0
- package/dist/{chunk-XFRMAETF.js → chunk-X4GKWZQP.js} +11 -5
- package/dist/chunk-X4GKWZQP.js.map +1 -0
- package/dist/daemon.js +2 -2
- package/dist/daemon.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +3 -3
- package/dist/mcp.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-3ZBC2HUB.js.map +0 -1
- package/dist/chunk-ADBNZA5O.js.map +0 -1
- package/dist/chunk-XFRMAETF.js.map +0 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ with the host under the server name **`toon-client`** (this is the name that
|
|
|
9
9
|
appears in Claude's MCP server list and in the `initialize` handshake;
|
|
10
10
|
`mcpServers.toon` in config is just your local alias). The two long-lived
|
|
11
11
|
connections that can't live in an ephemeral agent session — a **BTP** session
|
|
12
|
-
(paid writes via the connector/apex) and a **
|
|
12
|
+
(paid writes via the connector/apex) and a **relay Nostr-WS** subscription
|
|
13
13
|
(free reads) — live in
|
|
14
14
|
an **always-on detached daemon** (`toon-clientd`). The MCP server is a thin
|
|
15
15
|
stdio proxy that auto-spawns the daemon and never holds chain keys.
|
|
@@ -27,14 +27,14 @@ Claude (Desktop / Code)
|
|
|
27
27
|
▼
|
|
28
28
|
toon-mcp ──HTTP──▶ toon-clientd (detached, always-on)
|
|
29
29
|
├─ ToonClient: BTP session + payment channels + signer
|
|
30
|
-
└─ RelaySubscription: persistent
|
|
30
|
+
└─ RelaySubscription: persistent relay Nostr-WS
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Architecture
|
|
34
34
|
|
|
35
35
|
| Layer | Bin / module | Responsibility |
|
|
36
36
|
|---|---|---|
|
|
37
|
-
| **Daemon** | `toon-clientd` | Owns one `ToonClient` (BTP + channels + mnemonic keystore + network targeting) **plus** a persistent
|
|
37
|
+
| **Daemon** | `toon-clientd` | Owns one `ToonClient` (BTP + channels + mnemonic keystore + network targeting) **plus** a persistent relay subscription. Loopback HTTP control API, single-instance PID lock, channel nonce-watermark persistence, graceful shutdown. |
|
|
38
38
|
| **MCP server** | `toon-mcp` | `@modelcontextprotocol/sdk` stdio server. Maps tools → daemon HTTP; auto-spawns the daemon detached if down; reports "bootstrapping — retry" while the BTP session comes up; holds no keys. |
|
|
39
39
|
| **Skill** | `.claude/skills/toon-client/` | Teaches the agent pay-to-write / free-read / settlement semantics. |
|
|
40
40
|
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isEventExpired,
|
|
16
16
|
parseIlpPeerInfo,
|
|
17
17
|
readConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UHITXU5V.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./chunk-F22GNSF6.js";
|
|
@@ -36,7 +36,7 @@ var CONFIG_HELP = {
|
|
|
36
36
|
proxyUrl: "Connector-proxy base URL (deployed devnet/testnet edge). When set, paid writes route through `POST /ilp` and no BTP socket is needed. Set `destination` to the apex ILP address (e.g. g.proxy for devnet).",
|
|
37
37
|
faucetUrl: "Devnet faucet base URL (e.g. https://faucet.devnet.toonprotocol.dev) used to drip test funds before publishing.",
|
|
38
38
|
btpUrl: "BTP WebSocket URL of the apex/connector for paid writes. Optional when `proxyUrl` is set.",
|
|
39
|
-
relayUrl: "
|
|
39
|
+
relayUrl: "Relay WebSocket URL for FREE reads. Default ws://localhost:7100.",
|
|
40
40
|
destination: "Default ILP publish destination (apex address). Default g.proxy.",
|
|
41
41
|
keystorePath: "Auto-generated encrypted identity. Do not hand-edit; back up your seed phrase."
|
|
42
42
|
};
|
|
@@ -2662,4 +2662,4 @@ export {
|
|
|
2662
2662
|
PublishRejectedError,
|
|
2663
2663
|
registerRoutes
|
|
2664
2664
|
};
|
|
2665
|
-
//# sourceMappingURL=chunk-
|
|
2665
|
+
//# sourceMappingURL=chunk-CS4B3GET.js.map
|