@blockula/mcp 1.0.2 → 1.0.4
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/index.js +2 -2
- package/dist/network.d.ts +1 -1
- package/dist/network.js +1 -1
- package/dist/spend.js +1 -1
- package/npm-shrinkwrap.json +6 -6
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
claude mcp add blockula -- npx -y @blockula/mcp # a `blockula dev` chain on this machine
|
|
7
|
-
claude mcp add blockula -e BLOCKULA_RPC=https://<your node> -- npx -y @blockula/mcp # a chain you
|
|
7
|
+
claude mcp add blockula -e BLOCKULA_RPC=https://<your node> -- npx -y @blockula/mcp # a chain you made (`blockula summon`)
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
With no configuration it connects to a `blockula dev` node on this machine (`http://localhost:7070`). The public testnet (`blockula-testnet-2`) was retired in November 2026 and has no public node, so nothing public is built in: for any other chain, set `BLOCKULA_RPC` to a node of it. Call `status` to see which network and chain you're on.
|
|
@@ -17,7 +17,7 @@ The network is chosen by the user, once, in the MCP's configuration, and nothing
|
|
|
17
17
|
|
|
18
18
|
- `--network` (or `BLOCKULA_NETWORK`): `local` (default, `http://localhost:7070`), `testnet` or `custom`.
|
|
19
19
|
- `BLOCKULA_RPC` picks the node: required for `testnet` (its public node was retired: without one the MCP refuses to start and says so) and `custom`. Plain `http://` only on this machine or a private network, and no query or fragment. A node written two ways (`Node.Example`, `:443`, a trailing `/.`) is one node: it's never its own witness.
|
|
20
|
-
- The testnet pins its chain id (`blockula-testnet-2`, with the `tboo` address prefix), and every network pins a genesis hash where one is known (`KNOWN_GENESIS` in `src/network.ts`: a release pins a
|
|
20
|
+
- The testnet pins its chain id (`blockula-testnet-2`, with the `tboo` address prefix), and every network pins a genesis hash where one is known (`KNOWN_GENESIS` in `src/network.ts`: a release pins a public chain's). `BLOCKULA_CHAIN_ID` and `BLOCKULA_GENESIS_HASH` pin them for any node. Whatever isn't pinned is pinned from the first status the node reports and remembered in `~/.blockula/known-chains.json` (except for local dev chains, which `--reset` replaces).
|
|
21
21
|
- A node reporting another chain id, genesis hash or address prefix is refused, before anything is signed, at startup or mid-session. So is one whose chain id isn't 1 to 64 letters, digits, `-`, `_` or `.` (the chain id names files and ledger entries here) or whose genesis hash isn't 64 hex characters. If a network was relaunched on purpose under the same chain id, the user removes its entry from `known-chains.json` or sets `BLOCKULA_GENESIS_HASH`. (A relaunch takes a new chain id, as the testnet's did: an entry remembered for the old `blockula-testnet` isn't held against `blockula-testnet-2`.) A node that says it's on `blockula-1` is refused too, unless the user set `BLOCKULA_CHAIN_ID=blockula-1`: it's never pinned on first use, so a configuration that didn't name that chain can't land there.
|
|
22
22
|
|
|
23
23
|
`start_dev_node` starts a local chain, but the MCP only uses it when it was configured with `--network local`.
|
|
@@ -82,7 +82,7 @@ Session keys can only send transfers: staking, voting and name renewals need an
|
|
|
82
82
|
|
|
83
83
|
## Your own node
|
|
84
84
|
|
|
85
|
-
Point the MCP at a node of a chain you
|
|
85
|
+
Point the MCP at a node of a chain you made (`blockula summon`, docs/CREATE.md) or joined (`blockula join`):
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
88
|
claude mcp add blockula -e BLOCKULA_RPC=http://127.0.0.1:7171 -- npx -y @blockula/mcp
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// 🧛 Blockula MCP server. Add to Claude Code with:
|
|
3
3
|
// claude mcp add blockula -- npx -y @blockula/mcp (a `blockula dev` chain)
|
|
4
|
-
// claude mcp add blockula -e BLOCKULA_RPC=https://<node> -- npx -y @blockula/mcp (a chain you
|
|
4
|
+
// claude mcp add blockula -e BLOCKULA_RPC=https://<node> -- npx -y @blockula/mcp (a chain you made)
|
|
5
5
|
//
|
|
6
6
|
// Env:
|
|
7
7
|
// BLOCKULA_NETWORK local (default), testnet or custom (same as --network)
|
|
@@ -884,7 +884,7 @@ tool("install_node", "Download the prebuilt `blockula` node + CLI for this machi
|
|
|
884
884
|
rmSync(tmp, { recursive: true, force: true });
|
|
885
885
|
}
|
|
886
886
|
});
|
|
887
|
-
tool("summon_chain", "Create a brand-new Blockula chain (fresh genesis + validator key) that you can run as your own network. `name`, `description` and `token` (its ticker) are what wallets and explorers show; the genesis hash binds them. A person
|
|
887
|
+
tool("summon_chain", "Create a brand-new Blockula chain (fresh genesis + validator key) that you can run as your own network. `name`, `description` and `token` (its ticker) are what wallets and explorers show; the genesis hash binds them. A person making one by hand runs `blockula create`.", {
|
|
888
888
|
chain_id: z.string().regex(/^[a-z0-9-]{3,40}$/),
|
|
889
889
|
faucet: z.boolean().default(true),
|
|
890
890
|
name: z.string().min(1).max(48).optional(),
|
package/dist/network.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare const KNOWN_NETWORKS: Record<Exclude<NetworkKey, "custom">, Omit<
|
|
|
69
69
|
* The witnesses a node of `chainId` gets when BLOCKULA_WITNESSES is unset: the chain's public RPCs,
|
|
70
70
|
* unless the node is one of them. So your own node's answers about names and heights are checked
|
|
71
71
|
* against the public ones (OPERATOR-6). None for chains without public RPCs (dev chains, and the
|
|
72
|
-
* chains people
|
|
72
|
+
* chains people make themselves: there, BLOCKULA_WITNESSES lists other nodes).
|
|
73
73
|
*/
|
|
74
74
|
export declare function defaultWitnesses(chainId: string | undefined, rpc: string): string[];
|
|
75
75
|
/**
|
package/dist/network.js
CHANGED
|
@@ -64,7 +64,7 @@ const PUBLIC_RPCS = {};
|
|
|
64
64
|
* The witnesses a node of `chainId` gets when BLOCKULA_WITNESSES is unset: the chain's public RPCs,
|
|
65
65
|
* unless the node is one of them. So your own node's answers about names and heights are checked
|
|
66
66
|
* against the public ones (OPERATOR-6). None for chains without public RPCs (dev chains, and the
|
|
67
|
-
* chains people
|
|
67
|
+
* chains people make themselves: there, BLOCKULA_WITNESSES lists other nodes).
|
|
68
68
|
*/
|
|
69
69
|
export function defaultWitnesses(chainId, rpc) {
|
|
70
70
|
const rpcs = ((chainId && PUBLIC_RPCS[chainId]) || []).map(canonicalUrl);
|
package/dist/spend.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// another tx with a nonce it already used today (which is what happens after a real refusal: the
|
|
14
14
|
// node's next nonce didn't move), the slot counts the larger of the two, not their sum.
|
|
15
15
|
//
|
|
16
|
-
// Each chain has its own daily total (AGENT-13): a dev chain and a chain someone
|
|
16
|
+
// Each chain has its own daily total (AGENT-13): a dev chain and a chain someone made share
|
|
17
17
|
// the `boo` prefix, so the same key has the same address on both, and spending on one mustn't use
|
|
18
18
|
// up the other's budget. The file stays readable by 0.5.1, which knew one total: `spent` is still
|
|
19
19
|
// the sum over every chain, and `chains` holds each chain's part. What `spent` holds beyond the
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockula/mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@blockula/mcp",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.4",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@blockula/sdk": "1.0.
|
|
12
|
+
"@blockula/sdk": "1.0.4",
|
|
13
13
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
14
14
|
"zod": "4.6.7"
|
|
15
15
|
},
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"node_modules/@blockula/sdk": {
|
|
24
|
-
"version": "1.0.
|
|
25
|
-
"resolved": "https://registry.npmjs.org/@blockula/sdk/-/sdk-1.0.
|
|
26
|
-
"integrity": "sha512-
|
|
24
|
+
"version": "1.0.4",
|
|
25
|
+
"resolved": "https://registry.npmjs.org/@blockula/sdk/-/sdk-1.0.4.tgz",
|
|
26
|
+
"integrity": "sha512-iI8JN0sTu3vmoGSO6oUafHpcE9MGXyGesSp6gRQ+KOeJdUhpcshxCqduDJoCSqotVlJuoBHLHtMbFIiqxTGryQ==",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@noble/hashes": "2.4.0",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockula/mcp",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "🧛 MCP server for Blockula — lets any coding agent run a node, hold a post-quantum wallet, send FANG and claim .boo names",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"blockula-mcp": "dist/index.js"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@blockula/sdk": "1.0.
|
|
22
|
+
"@blockula/sdk": "1.0.4",
|
|
23
23
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
24
24
|
"zod": "4.6.7"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/node": "
|
|
27
|
+
"@types/node": "^26.6.6",
|
|
28
28
|
"typescript": "^7.0.2"
|
|
29
29
|
},
|
|
30
30
|
"author": "Jack Dishman",
|