@gvnrdao/dh-mcp 0.5.1 → 0.5.3
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 +7 -4
- package/connector-embed.d.ts +40 -0
- package/dist/boundary.js +3207 -13436
- package/dist/connector-embed.js +83159 -0
- package/dist/connector.js +83179 -0
- package/dist/index.js +3592 -13545
- package/package.json +17 -4
package/README.md
CHANGED
|
@@ -11,16 +11,19 @@ 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.5.
|
|
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.5.
|
|
14
|
+
| **Claude Desktop (macOS / Windows)** | Download the bundle and open it (double-click / drag into Settings → Extensions): `https://assets.gvnr.xyz/dh-mcp/v0.5.2/dh-mcp-0.5.2.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.5.2 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.5.
|
|
20
|
+
(`latest/` and `v<version>/` — e.g. `v0.5.2/`).
|
|
21
21
|
|
|
22
22
|
Local installs serve local MCP hosts only — **claude.ai web / mobile / Cowork cannot
|
|
23
|
-
reach them
|
|
23
|
+
reach them**. A hosted remote connector (paste-a-URL, wallet-only: OAuth 2.1 + Sign-In-
|
|
24
|
+
with-Ethereum, external-wallet signing, no keystore mode in that build) is IMPLEMENTED
|
|
25
|
+
but **not yet publicly served** — it goes live only after its security audit and rollout
|
|
26
|
+
gates, and will appear here with its URL when it does.
|
|
24
27
|
|
|
25
28
|
Unsigned-binary honesty: the macOS and Windows binaries are **not yet code-signed** —
|
|
26
29
|
macOS Gatekeeper may quarantine the download (right-click → Open, or
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hand-maintained public typings for `@gvnrdao/dh-mcp/connector-embed` (the tarball
|
|
3
|
+
* ships no generated d.ts — the bundled-SDK build makes dts generation unreliable).
|
|
4
|
+
* Keep in lockstep with src/connector/service.ts; the embed battery
|
|
5
|
+
* (tests/real/connector-embed.test.ts EMBED-07) asserts this file names every export.
|
|
6
|
+
*/
|
|
7
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
8
|
+
|
|
9
|
+
export declare const CONNECTOR_PATH_PREFIXES: readonly string[];
|
|
10
|
+
|
|
11
|
+
/** True when the pathname belongs to the connector's origin-rooted namespace
|
|
12
|
+
* (/mcp, /approval/*, /authorize*, /token, /register, /revoke, /.well-known/oauth-*). */
|
|
13
|
+
export declare function isConnectorPath(pathname: string): boolean;
|
|
14
|
+
|
|
15
|
+
export interface EmbeddedConnectorOptions {
|
|
16
|
+
/** Base environment (endpoints, RPC URLs). The connector forces DH_ADAPTER=real and
|
|
17
|
+
* boots each tenant on the first allowed network. */
|
|
18
|
+
env: NodeJS.ProcessEnv;
|
|
19
|
+
/** REQUIRED: the public origin the host serves this handler from (the TLS name,
|
|
20
|
+
* e.g. https://ops-test.gvnr.xyz) — the OAuth issuer and every page/mount URL. */
|
|
21
|
+
publicOrigin: string;
|
|
22
|
+
/** Networks this deployment serves. Default: ["sepolia"] — mainnet enablement is a
|
|
23
|
+
* deploy decision gated by the operator. */
|
|
24
|
+
allowedNetworks?: readonly ("sepolia" | "mainnet")[];
|
|
25
|
+
/** Idle windows (ms): `sessionMs` MCP-session expiry, `worldMs` tenant-world eviction. */
|
|
26
|
+
idle?: { sessionMs?: number; worldMs?: number };
|
|
27
|
+
/** Request caps with truthful 429s: per-tenant on /mcp, global on the whole surface. */
|
|
28
|
+
rateLimits?: { tenantPerMin?: number; globalPerMin?: number };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface EmbeddedConnector {
|
|
32
|
+
/** Raw request handler — dispatch `isConnectorPath(...)` requests here with req/res
|
|
33
|
+
* UNTOUCHED (before any host middleware: helmet, parsers, auth). */
|
|
34
|
+
handler: (req: IncomingMessage, res: ServerResponse) => void;
|
|
35
|
+
stats(): { tenants: number; sessions: number };
|
|
36
|
+
sweep(): void;
|
|
37
|
+
close(): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export declare function createEmbeddedConnector(opts: EmbeddedConnectorOptions): EmbeddedConnector;
|