@toon-protocol/client-mcp 0.10.8 → 0.11.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 +3 -3
- package/dist/app/index.html +86 -81
- package/dist/{chunk-3ZBC2HUB.js → chunk-CMGJ3NFT.js} +17 -9
- package/dist/chunk-CMGJ3NFT.js.map +1 -0
- package/dist/{chunk-XFRMAETF.js → chunk-JPQ4VCCF.js} +73 -17
- package/dist/chunk-JPQ4VCCF.js.map +1 -0
- package/dist/{chunk-ADBNZA5O.js → chunk-KVK6OZVD.js} +140 -19
- package/dist/chunk-KVK6OZVD.js.map +1 -0
- package/dist/daemon.js +2 -2
- package/dist/daemon.js.map +1 -1
- package/dist/index.d.ts +81 -18
- 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
|
|