dero-mcp-server 0.1.1 → 0.1.2
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 +79 -6
- package/data/docs-index.json +5694 -0
- package/dist/docs-parse.d.ts +30 -0
- package/dist/docs-parse.d.ts.map +1 -0
- package/dist/docs-parse.js +147 -0
- package/dist/docs-parse.js.map +1 -0
- package/dist/docs.d.ts +101 -0
- package/dist/docs.d.ts.map +1 -0
- package/dist/docs.js +172 -0
- package/dist/docs.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +97 -2
- package/dist/server.js.map +1 -1
- package/package.json +11 -3
- package/.github/workflows/ci.yml +0 -62
- package/docs/example-agent-flows.md +0 -236
- package/docs/mcp-agent-ready-evidence.md +0 -108
- package/glama.json +0 -6
- package/scripts/doctor.sh +0 -85
- package/scripts/flow-test.ts +0 -257
- package/scripts/mcp-smoke-probes.ts +0 -168
- package/server.json +0 -23
- package/src/index.ts +0 -30
- package/src/rpc.ts +0 -60
- package/src/server.ts +0 -636
- package/tsconfig.json +0 -16
package/README.md
CHANGED
|
@@ -1,14 +1,50 @@
|
|
|
1
1
|
# DERO MCP server
|
|
2
2
|
|
|
3
|
+
> **Model Context Protocol server for DERO chain inspection** — query daemon state, inspect smart contracts, trace transactions, and run read-only diagnostics from Cursor, OpenCode, Claude Desktop, or any MCP host.
|
|
4
|
+
|
|
5
|
+
[](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.DHEBP/dero-mcp-server)
|
|
3
6
|
[](https://github.com/DHEBP/dero-mcp-server/actions/workflows/ci.yml)
|
|
4
7
|
[](https://glama.ai/mcp/servers/DHEBP/dero-mcp-server)
|
|
5
8
|
|
|
6
|
-
|
|
9
|
+
**Registry listing:** `io.github.DHEBP/dero-mcp-server` · **Version:** `0.1.2` · **Transport:** `stdio` (npm package)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
[Model Context Protocol](https://modelcontextprotocol.io) (MCP) server that exposes **read-only and analysis** calls against a DERO Stargate **daemon** JSON-RPC endpoint. Use it from **Claude Desktop**, **Cursor**, **OpenCode**, or any MCP client that launches a local process over stdio.
|
|
14
|
+
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
### 1. Add this to your MCP host config
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"mcpServers": {
|
|
22
|
+
"dero-daemon": {
|
|
23
|
+
"command": "npx",
|
|
24
|
+
"args": ["-y", "dero-mcp-server"],
|
|
25
|
+
"env": {
|
|
26
|
+
"DERO_DAEMON_URL": "http://127.0.0.1:10102"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Use your own daemon URL when possible. If `DERO_DAEMON_URL` is omitted, the server uses the default public RPC.
|
|
34
|
+
|
|
35
|
+
### 2. Restart your MCP host
|
|
36
|
+
|
|
37
|
+
### 3. Try a prompt
|
|
38
|
+
|
|
39
|
+
> "Check if my DERO node is synced and summarize chain health."
|
|
40
|
+
|
|
41
|
+
---
|
|
7
42
|
|
|
8
43
|
## What it does
|
|
9
44
|
|
|
10
45
|
- Connects to `{DERO_DAEMON_URL}/json_rpc` (default `http://82.65.143.182:10102`).
|
|
11
46
|
- Registers one MCP tool per common daemon method (`DERO.GetInfo`, `DERO.GetHeight`, `DERO.GetSC`, etc.).
|
|
47
|
+
- Adds bundled docs retrieval tools for `derod`, `tela`, `hologram`, and `deropay` (ships inside the npm package — no local clone required).
|
|
12
48
|
- Exposes MCP resources and prompts for consistent investigation workflows.
|
|
13
49
|
- Returns JSON results as MCP text content.
|
|
14
50
|
- Returns structured tool errors with `_meta.error` (`code`, `hint`, `retryable`) to help agents self-correct.
|
|
@@ -44,7 +80,7 @@ The baked-in default is a **third-party** public RPC (`82.65.143.182:10102`) —
|
|
|
44
80
|
|
|
45
81
|
Strip a trailing `/json_rpc` if you paste a full JSON-RPC URL — this server appends `/json_rpc`.
|
|
46
82
|
|
|
47
|
-
## Claude Desktop
|
|
83
|
+
## Claude Desktop (same pattern for OpenCode and Cursor)
|
|
48
84
|
|
|
49
85
|
Add to `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`):
|
|
50
86
|
|
|
@@ -61,17 +97,35 @@ Add to `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claud
|
|
|
61
97
|
|
|
62
98
|
Optional: add `"env": { "DERO_DAEMON_URL": "http://127.0.0.1:10102" }` if you use a **local** daemon instead of the default public RPC.
|
|
63
99
|
|
|
64
|
-
Restart Claude Desktop.
|
|
100
|
+
Restart Claude Desktop (or your OpenCode/Cursor host).
|
|
65
101
|
|
|
66
|
-
## Cursor
|
|
102
|
+
## Cursor (or OpenCode)
|
|
67
103
|
|
|
68
|
-
In **Cursor Settings → MCP
|
|
104
|
+
In **Cursor Settings → MCP** (or OpenCode MCP settings), add a server that runs the same `command` / `args` / `env` as above.
|
|
105
|
+
|
|
106
|
+
## OpenCode
|
|
107
|
+
|
|
108
|
+
In **OpenCode MCP settings**, add a server with the same `command` / `args` / `env` as above.
|
|
69
109
|
|
|
70
110
|
## Environment
|
|
71
111
|
|
|
72
112
|
| Variable | Default | Description |
|
|
73
113
|
|----------|---------|-------------|
|
|
74
114
|
| `DERO_DAEMON_URL` | `http://82.65.143.182:10102` | Daemon **base** URL (no `/json_rpc` required). Set to `http://127.0.0.1:10102` for a local daemon. |
|
|
115
|
+
| `DERO_DOCS_ROOT` | bundled index | Optional dev override: path to a local `dero-docs` clone to index live MDX instead of the shipped bundle. |
|
|
116
|
+
|
|
117
|
+
## Maintainer: refresh bundled docs
|
|
118
|
+
|
|
119
|
+
Before publishing a new npm version when `dero-docs` changed:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
DERO_DOCS_ROOT=/path/to/dero-docs npm run build:docs
|
|
123
|
+
npm run build
|
|
124
|
+
npm publish
|
|
125
|
+
mcp-publisher publish
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
`prepack` runs `build:docs` automatically when `dero-docs` is available at `../dero-docs` or via `DERO_DOCS_ROOT`.
|
|
75
129
|
|
|
76
130
|
## Testing
|
|
77
131
|
|
|
@@ -82,6 +136,9 @@ npm run doctor
|
|
|
82
136
|
# MCP surface contract checks (tools/resources/prompts + error probe)
|
|
83
137
|
npm run smoke:mcp
|
|
84
138
|
|
|
139
|
+
# Docs retrieval checks (bundled index — no clone required)
|
|
140
|
+
npm run smoke:docs
|
|
141
|
+
|
|
85
142
|
# Run flow tests (10 RPC checks)
|
|
86
143
|
npm run test:flows
|
|
87
144
|
|
|
@@ -93,9 +150,25 @@ Flow tests run against the default public RPC. Set `DERO_DAEMON_URL` to test aga
|
|
|
93
150
|
|
|
94
151
|
CI runs on every push and PR — see `.github/workflows/ci.yml`.
|
|
95
152
|
|
|
153
|
+
## Official MCP Registry
|
|
154
|
+
|
|
155
|
+
Publish flow (maintainers):
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
mcp-publisher validate
|
|
159
|
+
mcp-publisher login github
|
|
160
|
+
mcp-publisher publish
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Verify listing:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.DHEBP/dero-mcp-server"
|
|
167
|
+
```
|
|
168
|
+
|
|
96
169
|
## MCP Surface
|
|
97
170
|
|
|
98
|
-
- **Tools (
|
|
171
|
+
- **Tools (20):** daemon read/analysis methods + docs retrieval (`dero_docs_search`, `dero_docs_get_page`, `dero_docs_list`)
|
|
99
172
|
- **Resources (3):** `dero://mcp/server-info`, `dero://mcp/safety-boundary`, `dero://mcp/example-flows`
|
|
100
173
|
- **Prompts (3):** `network_health_check`, `inspect_smart_contract`, `trace_transaction`
|
|
101
174
|
|