@hol-org/hashnet-mcp 1.0.19 → 1.0.21
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 +12 -4
- package/dist/cli/up.cjs +1284 -0
- package/dist/index.cjs +1279 -0
- package/package.json +28 -26
- package/AGENTS.md +0 -133
- package/deploy/Dockerfile +0 -24
- package/deploy/README.md +0 -31
- package/deploy/fly.toml +0 -41
- package/dist/cli/up.js +0 -175
- package/dist/cli/up.js.map +0 -1
- package/dist/index.js +0 -2114
- package/dist/index.js.map +0 -1
- package/examples/agent-registration-request.json +0 -48
- package/examples/workflows/workflow.agentverseBridge.json +0 -15
- package/examples/workflows/workflow.chatSmoke.json +0 -8
- package/examples/workflows/workflow.discovery.json +0 -4
- package/examples/workflows/workflow.erc8004Discovery.json +0 -4
- package/examples/workflows/workflow.erc8004X402.json +0 -87
- package/examples/workflows/workflow.fullRegistration.json +0 -73
- package/examples/workflows/workflow.historyTopUp.json +0 -14
- package/examples/workflows/workflow.ledgerAuth.json +0 -8
- package/examples/workflows/workflow.openrouterChat.json +0 -7
- package/examples/workflows/workflow.opsCheck.json +0 -3
- package/examples/workflows/workflow.registerAgentAdvanced.json +0 -84
- package/examples/workflows/workflow.registerAgentErc8004.json +0 -82
- package/examples/workflows/workflow.registerMcp.json +0 -71
- package/examples/workflows/workflow.registryBrokerShowcase.json +0 -6
- package/examples/workflows/workflow.x402Registration.json +0 -83
- package/examples/workflows/workflow.x402TopUp.json +0 -13
- /package/dist/{index.d.ts → index.d.cts} +0 -0
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ Use `"type": "sse"` if your build expects it.
|
|
|
93
93
|
Categories are exposed as MCP tools (`hol.*`) plus workflows (`workflow.*`):
|
|
94
94
|
- **Discovery**: `hol.search`, `hol.vectorSearch`, `hol.registrySearchByNamespace`, `hol.resolveUaid`
|
|
95
95
|
- **Registration**: `hol.getRegistrationQuote`, `hol.registerAgent`, `hol.waitForRegistrationCompletion`, `hol.updateAgent`
|
|
96
|
-
- **Chat**: `hol.chat.createSession` (uaid), `hol.chat.sendMessage` (sessionId or uaid; auto-creates session), `hol.chat.history`, `hol.chat.compact`, `hol.chat.end`, `hol.closeUaidConnection`
|
|
96
|
+
- **Chat**: `hol.chat.createSession` (uaid or agentUrl), `hol.chat.sendMessage` (sessionId or uaid/agentUrl; auto-creates session), `hol.chat.history`, `hol.chat.compact`, `hol.chat.end`, `hol.closeUaidConnection`
|
|
97
97
|
- **Protocols/Ops**: `hol.listProtocols`, `hol.detectProtocol`, `hol.stats`, `hol.metricsSummary`, `hol.dashboardStats`, `hol.websocketStats`
|
|
98
98
|
- **Credits**: `hol.credits.balance`, `hol.purchaseCredits.hbar`, `hol.x402.minimums`, `hol.x402.buyCredits`
|
|
99
99
|
- **Ledger**: `hol.ledger.challenge`, `hol.ledger.authenticate`
|
|
@@ -105,6 +105,14 @@ Categories are exposed as MCP tools (`hol.*`) plus workflows (`workflow.*`):
|
|
|
105
105
|
- **Chat**: Start with `hol.chat.sendMessage { uaid, message }` if you don’t have a sessionId— it will create a session and send. Otherwise use `hol.chat.createSession` then `hol.chat.sendMessage { sessionId, message }`. Manage with `hol.chat.history/compact/end`.
|
|
106
106
|
- **Ops/Health**: `workflow.opsCheck` or the `hol.stats`/`hol.metricsSummary`/`hol.dashboardStats` trio.
|
|
107
107
|
- **Credits**: Always check `hol.credits.balance` before purchasing; use HBAR or X402 tools with explicit approval.
|
|
108
|
+
- **Memory**: When `MEMORY_ENABLED=1`, workflows (chatSmoke, openrouterChat, historyTopUp, registryBrokerShowcase, fullRegistration) will load scoped context and append chat/discovery traces; pass `disableMemory: true` to skip.
|
|
109
|
+
|
|
110
|
+
## Memory (how it works)
|
|
111
|
+
- Enable with `MEMORY_ENABLED=1` (defaults to a file-backed store at `MEMORY_STORAGE_PATH`; use `MEMORY_STORE=memory` for in-memory only, or `MEMORY_STORE=sqlite` if you want SQLite and have native build tools installed). Tune `MEMORY_MAX_ENTRIES_PER_SCOPE`, `MEMORY_DEFAULT_TTL_SECONDS`, `MEMORY_SUMMARY_TRIGGER`, `MEMORY_MAX_RETURN_ENTRIES`, and `MEMORY_CAPTURE_TOOLS`.
|
|
112
|
+
- MCP tools: `hol.memory.context`, `hol.memory.note`, `hol.memory.search`, `hol.memory.clear` (see `help://hol/memory`). Scopes use `uaid`, `sessionId`, `namespace`, or `userId`.
|
|
113
|
+
- Automatic capture: `hol.chat.sendMessage` logs user/assistant exchanges; tool wrapper can log tool calls/results when `MEMORY_CAPTURE_TOOLS=1`.
|
|
114
|
+
- Workflows: `chatSmoke`, `openrouterChat`, `historyTopUp`, `registryBrokerShowcase`, and `fullRegistration` load prior context and append transcripts/results when memory is enabled. Add `disableMemory: true` in workflow inputs to opt out.
|
|
115
|
+
- Guardrails: entries are truncated to stay within size budgets, secrets are redacted, TTL + max-entries bounds keep storage from growing unbounded. Summaries are generated heuristically once thresholds are exceeded.
|
|
108
116
|
|
|
109
117
|
## Tool catalog (what each does)
|
|
110
118
|
**Discovery**
|
|
@@ -122,12 +130,11 @@ Categories are exposed as MCP tools (`hol.*`) plus workflows (`workflow.*`):
|
|
|
122
130
|
- `hol.additionalRegistries` — catalog of additional registries/networks.
|
|
123
131
|
|
|
124
132
|
**Chat**
|
|
125
|
-
- `hol.chat.createSession` — open a session by `uaid`.
|
|
126
|
-
- `hol.chat.sendMessage` — send to an existing sessionId or auto-create via `uaid`.
|
|
133
|
+
- `hol.chat.createSession` — open a session by `uaid` or `agentUrl`.
|
|
134
|
+
- `hol.chat.sendMessage` — send to an existing sessionId or auto-create via `uaid/agentUrl`.
|
|
127
135
|
- `hol.chat.history` / `hol.chat.compact` / `hol.chat.end` — manage chat lifecycle.
|
|
128
136
|
|
|
129
137
|
**Protocols / Ops**
|
|
130
|
-
- `hol.listProtocols`, `hol.detectProtocol` — inspect/route inbound payloads.
|
|
131
138
|
- `hol.stats`, `hol.metricsSummary`, `hol.dashboardStats`, `hol.websocketStats` — broker health/metrics.
|
|
132
139
|
|
|
133
140
|
**Credits**
|
|
@@ -150,6 +157,7 @@ Set in `.env` or your process:
|
|
|
150
157
|
- `REGISTRY_BROKER_API_URL` (default `https://registry.hashgraphonline.com/api/v1`)
|
|
151
158
|
- `REGISTRY_BROKER_API_KEY` (required for live broker)
|
|
152
159
|
- Optional: `HEDERA_ACCOUNT_ID`, `HEDERA_PRIVATE_KEY` (auto top-up), `LOG_LEVEL`, `PORT`, `HTTP_STREAM_PORT`, `BROKER_*` rate limit vars, `WORKFLOW_DRY_RUN`, `BROKER_AUTO_TOP_UP`.
|
|
160
|
+
- Memory (optional): set `MEMORY_ENABLED=1` to enable local storage (defaults to file-backed JSON at `MEMORY_STORAGE_PATH`; use `MEMORY_STORE=memory` for in-memory only, or `MEMORY_STORE=sqlite` if you want SQLite with native deps). Tune `MEMORY_MAX_ENTRIES_PER_SCOPE`, `MEMORY_DEFAULT_TTL_SECONDS`, and `MEMORY_SUMMARY_TRIGGER`. See `help://hol/memory` for the `hol.memory.*` tools.
|
|
153
161
|
|
|
154
162
|
## Testing & quality
|
|
155
163
|
- Run once with coverage: `pnpm test --run --coverage`
|