bsv-mcp 0.2.9 → 0.2.11

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +26 -2
  3. package/dist/index.js +6777 -126216
  4. package/index.ts +287 -265
  5. package/package.json +4 -3
  6. package/tools/bap/generate.test.ts +17 -16
  7. package/tools/index.ts +8 -3
  8. package/tools/ordinals/getInscription.ts +15 -65
  9. package/tools/ordinals/getTokenByIdOrTicker.ts +14 -80
  10. package/tools/ordinals/index.ts +8 -7
  11. package/tools/ordinals/marketListings.ts +21 -188
  12. package/tools/ordinals/marketSales.ts +21 -127
  13. package/tools/ordinals/searchInscriptions.ts +21 -108
  14. package/tools/wallet/brc100.ts +572 -0
  15. package/tools/wallet/cancelListing.ts +80 -0
  16. package/tools/wallet/createOrdinals.ts +62 -143
  17. package/tools/wallet/getAddress.ts +19 -13
  18. package/tools/wallet/getBalance.ts +29 -25
  19. package/tools/wallet/getBsv21Balances.ts +28 -0
  20. package/tools/wallet/getLockData.ts +25 -0
  21. package/tools/wallet/getOrdinals.ts +35 -0
  22. package/tools/wallet/listOrdinal.ts +86 -0
  23. package/tools/wallet/listTokens.ts +28 -0
  24. package/tools/wallet/lockBsv.ts +69 -0
  25. package/tools/wallet/opnsDeregister.ts +80 -0
  26. package/tools/wallet/opnsRegister.ts +80 -0
  27. package/tools/wallet/purchaseListing.ts +89 -290
  28. package/tools/wallet/refreshUtxos.ts +21 -32
  29. package/tools/wallet/schemas.ts +7 -11
  30. package/tools/wallet/sendAllBsv.ts +64 -0
  31. package/tools/wallet/sendToAddress.ts +46 -47
  32. package/tools/wallet/signBsm.ts +29 -0
  33. package/tools/wallet/sweepBsv.ts +70 -0
  34. package/tools/wallet/sweepBsv21.ts +71 -0
  35. package/tools/wallet/sweepOrdinals.ts +69 -0
  36. package/tools/wallet/tools.ts +50 -88
  37. package/tools/wallet/transferOrdToken.ts +137 -129
  38. package/tools/wallet/unlockBsv.ts +57 -0
  39. package/tools/wallet/a2bPublishAgent.ts +0 -307
  40. package/tools/wallet/sendOrdinals.ts +0 -160
package/CHANGELOG.md CHANGED
@@ -1,7 +1,26 @@
1
1
  # BSV MCP Server Changelog
2
2
 
3
+ ## [0.2.11] - 2026-03-10
4
+
5
+ ### Added
6
+ - Cloudflare Worker deployment (`cloudflare/`) with Droplit API integration and OAuth 2.1 via sigma-auth
7
+ - `createConfiguredServer()` factory for per-session McpServer instances
8
+
9
+ ### Changed
10
+ - Replaced `BunSSEServerTransport` with `WebStandardStreamableHTTPServerTransport` (MCP 2025-03-26 Streamable HTTP spec)
11
+ - Single `/mcp` endpoint replaces old `/sse` + `/messages` pattern
12
+ - Migrated ordinals tools from GorillaPool to 1sat-stack
13
+
14
+ ### Fixed
15
+ - Per-session server bug where `server.connect(transport)` replaced previous transport (only latest session worked)
16
+ - `bap_generate` test assertion to match current `server.tool()` API shape
17
+
3
18
  ## [0.2.7] - 2026-03-09
4
19
 
20
+ ### Added
21
+ - BRC-100 wallet integration via `@1sat/actions` for standardized wallet operations
22
+ - MCP App views: tool results now include a `viewUUID` field so MCP App clients can render interactive dashboard tabs (Explorer, Wallet, Ordinals)
23
+
5
24
  ### Changed
6
25
  - Inline stdio guard in index.ts — no more `--preload` flag needed
7
26
  - Simplified build script — uses `--banner` instead of post-build injection
package/README.md CHANGED
@@ -10,7 +10,17 @@ A collection of Bitcoin SV (BSV) tools for the Model Context Protocol (MCP) fram
10
10
 
11
11
  ## Installation Options
12
12
 
13
- ### Option 1: Hosted Version (FREE - No BSV Required!)
13
+ ### Option 1: Claude Code Plugin (Simplest)
14
+
15
+ Install bsv-mcp as a Claude Code plugin — one command, no configuration required:
16
+
17
+ ```bash
18
+ claude plugin install bsv-mcp@b-open-io
19
+ ```
20
+
21
+ The plugin bundles the MCP server and registers it automatically. This works in both local Claude Code and Cowork environments. No environment variables or JSON config needed to get started.
22
+
23
+ ### Option 2: Hosted Version (FREE - No BSV Required!)
14
24
 
15
25
  **The easiest way to get started!** Use our hosted version with OAuth 2.1 authentication:
16
26
 
@@ -40,7 +50,7 @@ To get your access token, authenticate at https://auth.sigmaidentity.com
40
50
  - ✅ Always up-to-date
41
51
  - ✅ Global availability via Cloudflare
42
52
 
43
- ### Option 2: Self-Hosted Installation
53
+ ### Option 3: Self-Hosted Installation
44
54
 
45
55
  #### Prerequisites
46
56
 
@@ -480,6 +490,20 @@ AI models can use these prompts and resources to provide more accurate and detai
480
490
 
481
491
  These prompts and resources enhance the AI's knowledge base, enabling more technical and accurate responses even for complex Bitcoin SV topics.
482
492
 
493
+ ## MCP Apps (Interactive Dashboard)
494
+
495
+ bsv-mcp ships with MCP App support. Tool results include a `viewUUID` field that MCP-compatible clients use to render an interactive HTML dashboard instead of raw JSON output.
496
+
497
+ Three built-in dashboard tabs are available:
498
+
499
+ - **Explorer** — Browse the blockchain, look up transactions and addresses
500
+ - **Wallet** — View balances, manage UTXOs, send BSV
501
+ - **Ordinals** — Browse, create, and manage NFTs and ordinals
502
+
503
+ When you call a tool like `wallet_getAddress` in a compatible client, the response renders as a live interactive UI rather than a wall of text. The dashboard source lives at `src/views/mcp-app.ts` and `src/views/app.html`.
504
+
505
+ MCP Apps are supported in clients that implement the MCP App specification. The Claude Code plugin installation (Option 1 above) includes dashboard support automatically.
506
+
483
507
  ## How MCP Works
484
508
 
485
509
  When you interact with an MCP-enabled AI assistant: