bsv-mcp 0.0.21 → 0.0.22
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
CHANGED
|
@@ -8,31 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
A collection of Bitcoin SV (BSV) tools for the Model Context Protocol (MCP) framework. This library provides wallet, ordinals, and utility functions for BSV blockchain interaction.
|
|
10
10
|
|
|
11
|
-
## Installation
|
|
12
|
-
|
|
13
|
-
To install dependencies:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
bun install
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## External Dependencies
|
|
20
|
-
|
|
21
|
-
For full functionality of all tools, the following additional dependencies are installed:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
# For ordinal listing purchase functionality
|
|
25
|
-
js-1sat-ord
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Running the Server
|
|
29
|
-
|
|
30
|
-
Start the MCP server:
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
bun run index.ts
|
|
34
|
-
```
|
|
35
|
-
|
|
36
11
|
## Connecting to MCP Clients
|
|
37
12
|
|
|
38
13
|
This server implements the [Model Context Protocol](https://modelcontextprotocol.io/) (MCP), allowing AI assistants to utilize Bitcoin SV functionalities. You can connect this server to various MCP-compatible clients.
|
|
@@ -86,19 +61,19 @@ To connect this server to Claude for Desktop:
|
|
|
86
61
|
|
|
87
62
|
4. Add the BSV MCP server to your configuration (create the file if it doesn't exist):
|
|
88
63
|
```json
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
64
|
+
{
|
|
65
|
+
"mcpServers": {
|
|
66
|
+
"Bitcoin SV": {
|
|
67
|
+
"command": "bunx",
|
|
68
|
+
"args": [
|
|
69
|
+
"bsv-mcp@latest"
|
|
70
|
+
],
|
|
71
|
+
"env": {
|
|
72
|
+
"PRIVATE_KEY_WIF": "<your_private_key_wif>"
|
|
73
|
+
}
|
|
98
74
|
}
|
|
99
75
|
}
|
|
100
76
|
}
|
|
101
|
-
}
|
|
102
77
|
```
|
|
103
78
|
5. Replace `<your_private_key_wif>` with your actual private key WIF
|
|
104
79
|
6. Save the file and restart Claude for Desktop
|
|
@@ -335,13 +310,13 @@ The tool supports both mainnet and testnet:
|
|
|
335
310
|
- `main`: Bitcoin SV mainnet (default)
|
|
336
311
|
- `test`: Bitcoin SV testnet
|
|
337
312
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
This project was created using `bun init` in bun v1.2.9. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
|
|
313
|
+
# Development
|
|
341
314
|
|
|
342
|
-
|
|
315
|
+
## Running the Server
|
|
343
316
|
|
|
344
|
-
|
|
317
|
+
```bash
|
|
318
|
+
bun run index.ts
|
|
319
|
+
```
|
|
345
320
|
|
|
346
321
|
### Running Tests
|
|
347
322
|
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "bsv-mcp",
|
|
3
3
|
"module": "index.ts",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.22",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "satchmo",
|
|
8
8
|
"description": "A collection of Bitcoin SV (BSV) tools for the Model Context Protocol (MCP) framework",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@bsv/sdk": "^1.4.19",
|
|
45
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
45
|
+
"@modelcontextprotocol/sdk": "^1.10.1",
|
|
46
46
|
"@types/node": "^22.14.1",
|
|
47
|
-
"js-1sat-ord": "^0.1.
|
|
47
|
+
"js-1sat-ord": "^0.1.81",
|
|
48
48
|
"mnee": "^2.0.0",
|
|
49
49
|
"satoshi-token": "^0.0.4",
|
|
50
|
-
"zod": "^3.24.
|
|
50
|
+
"zod": "^3.24.3"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"lint": "biome check .",
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
type Distribution,
|
|
15
15
|
type TokenChangeResult,
|
|
16
16
|
} from "js-1sat-ord";
|
|
17
|
-
import type { Wallet } from "
|
|
17
|
+
import type { Wallet } from "./wallet";
|
|
18
18
|
|
|
19
19
|
// Schema for BSV-20/BSV-21 token transfer arguments
|
|
20
20
|
export const transferOrdTokenArgsSchema = z.object({
|