@gvnrdao/dh-mcp 0.3.0 → 0.3.1

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
@@ -11,13 +11,13 @@ so there is **nothing to install first** (no Node, no npm):
11
11
 
12
12
  | You are on | Install path |
13
13
  |---|---|
14
- | **Claude Desktop (macOS / Windows)** | Download the bundle and open it (double-click / drag into Settings → Extensions): `https://assets.gvnr.xyz/dh-mcp/v0.3.0/dh-mcp-0.3.0.mcpb` — Claude Desktop runs it on its own embedded runtime; network and optional keystore are configured in the extension's settings UI (the password is held by the OS credential store, never written to a config file). |
15
- | **Linux — including Claude Desktop builds on Linux — or any other MCP host** | One line, no sudo: `curl -fsSL https://assets.gvnr.xyz/dh-mcp/install.sh \| sh` — installs a self-contained binary (its own Node runtime inside) to `~/.dh-mcp/bin/dh-mcp`, verifies its SHA-256, and prints the exact `mcpServers` snippet. **Then wire the host:** Claude Code: `claude mcp add diamond-hands -- $HOME/.dh-mcp/bin/dh-mcp` (new session); Claude Desktop (Linux builds): the snippet in `~/.config/Claude/claude_desktop_config.json`, full quit + relaunch; other hosts: the snippet in their MCP config. Pin a version: `curl -fsSL https://assets.gvnr.xyz/dh-mcp/install.sh \| DH_VERSION=0.3.0 sh` |
14
+ | **Claude Desktop (macOS / Windows)** | Download the bundle and open it (double-click / drag into Settings → Extensions): `https://assets.gvnr.xyz/dh-mcp/v0.3.1/dh-mcp-0.3.1.mcpb` — Claude Desktop runs it on its own embedded runtime; network and optional keystore are configured in the extension's settings UI (the password is held by the OS credential store, never written to a config file). |
15
+ | **Linux — including Claude Desktop builds on Linux — or any other MCP host** | One line, no sudo: `curl -fsSL https://assets.gvnr.xyz/dh-mcp/install.sh \| sh` — installs a self-contained binary (its own Node runtime inside) to `~/.dh-mcp/bin/dh-mcp`, verifies its SHA-256, and prints the exact `mcpServers` snippet. **Then wire the host:** Claude Code: `claude mcp add diamond-hands -- $HOME/.dh-mcp/bin/dh-mcp` (new session); Claude Desktop (Linux builds): the snippet in `~/.config/Claude/claude_desktop_config.json`, full quit + relaunch; other hosts: the snippet in their MCP config. Pin a version: `curl -fsSL https://assets.gvnr.xyz/dh-mcp/install.sh \| DH_VERSION=0.3.1 sh` |
16
16
  | **Developers** (requires **Node ≥ 18 on PATH** — this path does NOT work on a bare machine) | Claude Code: `claude mcp add diamond-hands -- npx -y @gvnrdao/dh-mcp` · any host JSON: `{ "mcpServers": { "diamond-hands": { "command": "npx", "args": ["-y", "@gvnrdao/dh-mcp"] } } }` |
17
17
 
18
18
  Downloads landing page (which file is for which system, checksums, security notes):
19
19
  **https://assets.gvnr.xyz/dh-mcp/** — all artifacts and `SHA256SUMS` live under it
20
- (`latest/` and `v<version>/` — e.g. `v0.3.0/`).
20
+ (`latest/` and `v<version>/` — e.g. `v0.3.1/`).
21
21
 
22
22
  Local installs serve local MCP hosts only — **claude.ai web / mobile / Cowork cannot
23
23
  reach them** (a hosted remote connector is a separate, upcoming tier).
package/dist/index.js CHANGED
@@ -37063,8 +37063,8 @@ var require_lit_ops_module = __commonJS({
37063
37063
  if (!wallet.provider)
37064
37064
  return void 0;
37065
37065
  try {
37066
- const net = await wallet.provider.getNetwork();
37067
- return Number(net.chainId);
37066
+ const net2 = await wallet.provider.getNetwork();
37067
+ return Number(net2.chainId);
37068
37068
  } catch {
37069
37069
  return void 0;
37070
37070
  }
@@ -52048,6 +52048,7 @@ var init_wc_transport = __esm({
52048
52048
  });
52049
52049
 
52050
52050
  // src/index.ts
52051
+ var net = __toESM(require("net"));
52051
52052
  var import_stdio = require("@modelcontextprotocol/sdk/server/stdio.js");
52052
52053
 
52053
52054
  // src/boundary/errors.ts
@@ -52287,9 +52288,9 @@ function errEnvelope(error) {
52287
52288
 
52288
52289
  // src/util/btc-address.ts
52289
52290
  var import_bitcoinjs_lib = require("bitcoinjs-lib");
52290
- function networkObj(net) {
52291
- if (net === "mainnet") return import_bitcoinjs_lib.networks.bitcoin;
52292
- if (net === "testnet") return import_bitcoinjs_lib.networks.testnet;
52291
+ function networkObj(net2) {
52292
+ if (net2 === "mainnet") return import_bitcoinjs_lib.networks.bitcoin;
52293
+ if (net2 === "testnet") return import_bitcoinjs_lib.networks.testnet;
52293
52294
  return import_bitcoinjs_lib.networks.regtest;
52294
52295
  }
52295
52296
  function checkBtcAddress(addr, expected) {
@@ -92175,7 +92176,7 @@ function registerBoundaryInfoResource(server, getB) {
92175
92176
  }
92176
92177
 
92177
92178
  // src/server.ts
92178
- var SERVER_VERSION = "0.3.0";
92179
+ var SERVER_VERSION = "0.3.1";
92179
92180
  var SERVER_INSTRUCTIONS = "Diamond Hands MCP \u2014 Bitcoin-collateralized borrowing. Before promising ANY flow, read the boundary://info resource and honor its `capabilities` block: it states which network this server is on, whether money is real (practiceWorld), whether writes are enabled (and the true reason when they are not), and which signer modes this build actually offers \u2014 never describe a flow outside it. State the network and whether funds are real when the user first acts. Authorization is chosen by conversation via the signer_setup tool (when listed); writes always require confirmed:true after showing the human-readable card. For walkthroughs consult the guide tool / guide:// resources instead of inventing steps; when a tool refuses, relay its stated reason and remedy \u2014 do not improvise alternatives. When a network_switch tool is listed, the network can change mid-session \u2014 after ANY switch, re-read boundary://info and state the new network and money reality to the user before doing anything else.";
92180
92181
  function createServer2(deps) {
92181
92182
  const server = new import_mcp2.McpServer(
@@ -92210,6 +92211,7 @@ function createServer2(deps) {
92210
92211
  }
92211
92212
 
92212
92213
  // src/index.ts
92214
+ net.setDefaultAutoSelectFamilyAttemptTimeout(Math.max(net.getDefaultAutoSelectFamilyAttemptTimeout(), 2e3));
92213
92215
  if (process.argv.includes("--version")) {
92214
92216
  process.stdout.write(`${SERVER_VERSION}
92215
92217
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "MCP server for the Diamond Hands protocol — Bitcoin-collateralized UCD lending with human-approved signing (sepolia by default; mainnet read-only)",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {