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.
- package/CHANGELOG.md +19 -0
- package/README.md +26 -2
- package/dist/index.js +6777 -126216
- package/index.ts +287 -265
- package/package.json +4 -3
- package/tools/bap/generate.test.ts +17 -16
- package/tools/index.ts +8 -3
- package/tools/ordinals/getInscription.ts +15 -65
- package/tools/ordinals/getTokenByIdOrTicker.ts +14 -80
- package/tools/ordinals/index.ts +8 -7
- package/tools/ordinals/marketListings.ts +21 -188
- package/tools/ordinals/marketSales.ts +21 -127
- package/tools/ordinals/searchInscriptions.ts +21 -108
- package/tools/wallet/brc100.ts +572 -0
- package/tools/wallet/cancelListing.ts +80 -0
- package/tools/wallet/createOrdinals.ts +62 -143
- package/tools/wallet/getAddress.ts +19 -13
- package/tools/wallet/getBalance.ts +29 -25
- package/tools/wallet/getBsv21Balances.ts +28 -0
- package/tools/wallet/getLockData.ts +25 -0
- package/tools/wallet/getOrdinals.ts +35 -0
- package/tools/wallet/listOrdinal.ts +86 -0
- package/tools/wallet/listTokens.ts +28 -0
- package/tools/wallet/lockBsv.ts +69 -0
- package/tools/wallet/opnsDeregister.ts +80 -0
- package/tools/wallet/opnsRegister.ts +80 -0
- package/tools/wallet/purchaseListing.ts +89 -290
- package/tools/wallet/refreshUtxos.ts +21 -32
- package/tools/wallet/schemas.ts +7 -11
- package/tools/wallet/sendAllBsv.ts +64 -0
- package/tools/wallet/sendToAddress.ts +46 -47
- package/tools/wallet/signBsm.ts +29 -0
- package/tools/wallet/sweepBsv.ts +70 -0
- package/tools/wallet/sweepBsv21.ts +71 -0
- package/tools/wallet/sweepOrdinals.ts +69 -0
- package/tools/wallet/tools.ts +50 -88
- package/tools/wallet/transferOrdToken.ts +137 -129
- package/tools/wallet/unlockBsv.ts +57 -0
- package/tools/wallet/a2bPublishAgent.ts +0 -307
- 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:
|
|
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
|
|
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:
|