midnight-mcp 0.2.17 → 0.2.19
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 +11 -4
- package/dist/bin.js +3 -3
- package/dist/{chunk-GDUMSS3E.js → chunk-4CUN6SQZ.js} +2315 -2234
- package/dist/{chunk-S33OTE35.js → chunk-OYH7MAIC.js} +23 -4
- package/dist/db-3CCKZDB7.js +7 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/db-SWEQRS2S.js +0 -7
package/README.md
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
MCP server that gives AI assistants access to Midnight blockchain—search contracts, analyze code, and explore documentation.
|
|
10
10
|
|
|
11
|
+
This project extends the Midnight Network with additional developer tooling.
|
|
12
|
+
|
|
11
13
|
## Requirements
|
|
12
14
|
|
|
13
15
|
- **Node.js 20+** (LTS recommended)
|
|
@@ -124,7 +126,7 @@ All tools are prefixed with `midnight-` (e.g., `midnight-search-compact`).
|
|
|
124
126
|
The `midnight-compile-contract` tool validates Compact code using a hosted compiler service:
|
|
125
127
|
|
|
126
128
|
```
|
|
127
|
-
✅ Compilation successful (Compiler v0.
|
|
129
|
+
✅ Compilation successful (Compiler v0.29.0) in 2841ms
|
|
128
130
|
```
|
|
129
131
|
|
|
130
132
|
- **Fast mode** (`skipZk=true`): Syntax validation in ~1-2 seconds
|
|
@@ -137,7 +139,7 @@ This catches semantic errors that static analysis misses (sealed fields, disclos
|
|
|
137
139
|
|
|
138
140
|
| Capability | Feature |
|
|
139
141
|
| --------------- | ----------------------------------------------- |
|
|
140
|
-
| **Tools** |
|
|
142
|
+
| **Tools** | 29 tools with `listChanged` notifications |
|
|
141
143
|
| **Resources** | 9 embedded resources with subscription support |
|
|
142
144
|
| **Prompts** | 5 workflow prompts |
|
|
143
145
|
| **Logging** | Client-controllable log level |
|
|
@@ -149,7 +151,7 @@ This catches semantic errors that static analysis misses (sealed fields, disclos
|
|
|
149
151
|
|
|
150
152
|
Quick references available offline:
|
|
151
153
|
|
|
152
|
-
- Compact syntax guide (v0.16-0.
|
|
154
|
+
- Compact syntax guide (v0.16-0.21)
|
|
153
155
|
- SDK API reference
|
|
154
156
|
- OpenZeppelin contracts
|
|
155
157
|
- Tokenomics overview
|
|
@@ -164,7 +166,7 @@ Quick references available offline:
|
|
|
164
166
|
| ------------------------- | -------- | ------------------------------------------------------- |
|
|
165
167
|
| `deprecated_ledger_block` | P0 | Catches `ledger { }` → use `export ledger field: Type;` |
|
|
166
168
|
| `invalid_void_type` | P0 | Catches `Void` → use `[]` (empty tuple) |
|
|
167
|
-
| `invalid_pragma_format` | P0 | Catches old pragma → use `>= 0.16 && <= 0.
|
|
169
|
+
| `invalid_pragma_format` | P0 | Catches old pragma → use `>= 0.16 && <= 0.21` |
|
|
168
170
|
| `unexported_enum` | P1 | Enums need `export` for TypeScript access |
|
|
169
171
|
| `module_level_const` | P0 | Use `pure circuit` instead |
|
|
170
172
|
| + 10 more checks | P1-P2 | Overflow, division, assertions, etc. |
|
|
@@ -269,6 +271,11 @@ Add `"GITHUB_TOKEN": "ghp_..."` for higher GitHub API rate limits (60 → 5000 r
|
|
|
269
271
|
```bash
|
|
270
272
|
git clone https://github.com/Olanetsoft/midnight-mcp.git && cd midnight-mcp
|
|
271
273
|
npm install && npm run build && npm test
|
|
274
|
+
|
|
275
|
+
# Lint & format
|
|
276
|
+
npm run lint # ESLint (typescript-eslint)
|
|
277
|
+
npm run lint:fix # Auto-fix lint issues
|
|
278
|
+
npm run format # Prettier
|
|
272
279
|
```
|
|
273
280
|
|
|
274
281
|
The hosted API runs on Cloudflare Workers + Vectorize. See [api/README.md](./api/README.md) for backend details.
|
package/dist/bin.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
startHttpServer,
|
|
4
4
|
startServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4CUN6SQZ.js";
|
|
6
6
|
import {
|
|
7
7
|
setOutputFormat
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OYH7MAIC.js";
|
|
9
9
|
|
|
10
10
|
// src/bin.ts
|
|
11
11
|
import { config } from "dotenv";
|
|
@@ -13,7 +13,7 @@ import { resolve } from "path";
|
|
|
13
13
|
import yargs from "yargs";
|
|
14
14
|
import { hideBin } from "yargs/helpers";
|
|
15
15
|
config({ path: resolve(process.cwd(), ".env") });
|
|
16
|
-
var CURRENT_VERSION = "0.2.
|
|
16
|
+
var CURRENT_VERSION = "0.2.19";
|
|
17
17
|
process.on("uncaughtException", (error) => {
|
|
18
18
|
console.error("Uncaught exception:", error);
|
|
19
19
|
process.exit(1);
|