@hol-org/hashnet-mcp 1.0.22 → 1.0.24

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.
Files changed (4) hide show
  1. package/README.md +44 -4
  2. package/dist/cli/up.cjs +179 -179
  3. package/dist/index.cjs +178 -178
  4. package/package.json +31 -28
package/README.md CHANGED
@@ -1,17 +1,18 @@
1
1
  # HOL Hashnet MCP
2
2
 
3
+ ## Description
3
4
  Model Context Protocol (MCP) server for Hashgraph Online’s Registry Broker. It gives AI agents a first-class tool suite to discover, register, and chat with agents/servers on the Hashgraph network, plus workflow shortcuts for common journeys.
4
5
 
5
- ## Why use this server?
6
+ ## Features
6
7
  - **Discovery & chat in one place**: Find UAIDs/agents/MCP servers, validate them, open chat sessions, and send messages via a single MCP endpoint.
7
8
  - **Registration flows**: Request quotes, submit HCS-11 registrations, and wait for completion with built-in pipelines.
8
9
  - **Ops & credits**: Inspect broker health/metrics, and manage credits (HBAR or X402), with guardrails for required approvals.
9
10
  - **DX for agent platforms**: Ships both stdio (great for Claude Desktop) and HTTP streaming/SSE (great for Cursor/Claude Code/Codex).
10
11
 
11
- ## Quickstart
12
- Prereqs: Node 18+, `pnpm` (or npm), and a broker API key.
12
+ ## Installation
13
+ Prereqs: Node 18+, `pnpm` (or npm), and (optionally) a Registry Broker API key.
13
14
 
14
- You can get a API key at [hol.org/regsitry](https://hol.org/registry)
15
+ You can get an API key at `https://hol.org/registry`.
15
16
 
16
17
  1) Install deps and env:
17
18
  ```bash
@@ -31,6 +32,13 @@ pnpm quickstart
31
32
  ```
32
33
  Guides you through copying `.env`, installing deps, running smoke checks, and launching your chosen transport (stdio or sse).
33
34
 
35
+ ## Configuration
36
+ - `.env` / environment variables:
37
+ - `REGISTRY_BROKER_API_URL` (default `https://registry.hashgraphonline.com/api/v1`)
38
+ - `REGISTRY_BROKER_API_KEY` (required for authenticated actions like registration, chat, credit purchases)
39
+ - Optional: `LOG_LEVEL`, `PORT`, `HTTP_STREAM_PORT`, and `BROKER_*` rate limit vars
40
+ - Memory (optional): set `MEMORY_ENABLED=1` and configure `MEMORY_STORE` / `MEMORY_STORAGE_PATH` (see `help://hol/memory`).
41
+
34
42
  ## Architecture (mental model)
35
43
  ```
36
44
  Client (Cursor / Claude Code / Claude Desktop / Codex)
@@ -80,6 +88,31 @@ Use `"type": "sse"` if your build expects it.
80
88
  }
81
89
  ```
82
90
 
91
+ ## Usage Examples
92
+ ### Example 1 — Discover agents and MCP servers
93
+ **User prompt**
94
+ > Find 5 verified MCP servers related to “hashgraph” and summarize what each one does.
95
+
96
+ **Expected behavior**
97
+ - Calls `hol.search` (and/or `workflow.discovery`) with `type: "mcp-servers"` and `verified: true`
98
+ - Returns a list of candidates with UAIDs and short summaries, and includes suggested next calls
99
+
100
+ ### Example 2 — Start a chat with a UAID
101
+ **User prompt**
102
+ > Send “Can you help me index ERC-8004 agents?” to UAID `uaid:example...` and show the conversation history.
103
+
104
+ **Expected behavior**
105
+ - Calls `hol.chat.sendMessage { uaid, message }` (auto-creates a session if needed)
106
+ - Calls `hol.chat.history { sessionId }` and returns messages
107
+
108
+ ### Example 3 — Register an MCP server (authenticated)
109
+ **User prompt**
110
+ > Register this MCP server payload and wait for completion: { ...payload... }.
111
+
112
+ **Expected behavior**
113
+ - Calls `workflow.registerMcp { payload }` (quote → register → wait)
114
+ - If `REGISTRY_BROKER_API_KEY` is missing, asks you to configure it (or use `hol.ledger.challenge` + `hol.ledger.authenticate`)
115
+
83
116
  ## Commands
84
117
  - Dev transports: `pnpm dev:stdio` (stdio), `pnpm dev:sse` (HTTP stream/SSE)
85
118
  - Build / prod: `pnpm build` then `pnpm start`
@@ -178,3 +211,10 @@ Set in `.env` or your process:
178
211
  ## Logging & observability
179
212
  - `pino` structured logs; set `LOG_LEVEL=fatal|error|warn|info|debug|trace`.
180
213
  - Each tool call logs requestId + duration. SSE/HTTP transport logs requests. Credits/registration calls surface broker status/body on failure.
214
+
215
+ ## Privacy Policy
216
+ `@hol-org/hashnet-mcp` is operated by Hashgraph Online. Privacy policy: `https://hol.org/privacy-policy/`.
217
+
218
+ ## Support
219
+ - Email: `michael@hashgraphonline.com`
220
+ - Issues: `https://github.com/hashgraph-online/hashnet-mcp-js/issues`