midnight-mcp 0.1.6 → 0.1.8
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 +77 -7
- package/dist/tools/repository/constants.js +25 -0
- package/dist/utils/config.js +51 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,6 +41,7 @@ Add to your `claude_desktop_config.json`:
|
|
|
41
41
|
[](https://cursor.com/en-US/install-mcp?name=midnight&config=eyJjb21tYW5kIjoibnB4IC15IG1pZG5pZ2h0LW1jcCJ9)
|
|
42
42
|
|
|
43
43
|
---
|
|
44
|
+
|
|
44
45
|
**Manual setup instructions are below if you need them:**
|
|
45
46
|
|
|
46
47
|
Add to Cursor's MCP settings (Settings → MCP → Add Server):
|
|
@@ -69,8 +70,6 @@ Or add to `.cursor/mcp.json` in your project:
|
|
|
69
70
|
}
|
|
70
71
|
```
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
73
|
### Windsurf
|
|
75
74
|
|
|
76
75
|
Add to `~/.codeium/windsurf/mcp_config.json`:
|
|
@@ -86,6 +85,23 @@ Add to `~/.codeium/windsurf/mcp_config.json`:
|
|
|
86
85
|
}
|
|
87
86
|
```
|
|
88
87
|
|
|
88
|
+
### VS Code Copilot
|
|
89
|
+
|
|
90
|
+
Add to your VS Code settings (`.vscode/mcp.json` in your workspace or user settings):
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"mcpServers": {
|
|
95
|
+
"midnight": {
|
|
96
|
+
"command": "npx",
|
|
97
|
+
"args": ["-y", "midnight-mcp"]
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Or via Command Palette: `MCP: Add Server` → select "command (stdio)" → enter `npx -y midnight-mcp`
|
|
104
|
+
|
|
89
105
|
---
|
|
90
106
|
|
|
91
107
|
Restart your editor after adding the config. All features work out of the box—no API keys or setup required.
|
|
@@ -169,11 +185,23 @@ Dynamic access to any resource using URI templates:
|
|
|
169
185
|
| `midnight://examples/{category}/{name}` | Example contracts by category |
|
|
170
186
|
| `midnight://schema/{type}` | JSON schemas (AST, tx, proofs) |
|
|
171
187
|
|
|
172
|
-
### Resources (
|
|
188
|
+
### Embedded Resources (9)
|
|
189
|
+
|
|
190
|
+
Curated documentation that's always available without network calls:
|
|
173
191
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
192
|
+
| URI | Description |
|
|
193
|
+
| --------------------------------------- | --------------------------------------- |
|
|
194
|
+
| `midnight://docs/compact-reference` | Compact syntax quick reference |
|
|
195
|
+
| `midnight://docs/sdk-api` | TypeScript SDK API reference |
|
|
196
|
+
| `midnight://docs/openzeppelin` | OpenZeppelin Compact contracts overview |
|
|
197
|
+
| `midnight://docs/openzeppelin/token` | FungibleToken standard |
|
|
198
|
+
| `midnight://docs/openzeppelin/access` | Access control patterns |
|
|
199
|
+
| `midnight://docs/openzeppelin/security` | Security patterns (Pausable) |
|
|
200
|
+
| `midnight://docs/tokenomics` | NIGHT/DUST tokenomics summary |
|
|
201
|
+
| `midnight://docs/wallet-integration` | DApp Connector API guide |
|
|
202
|
+
| `midnight://docs/common-errors` | Common errors & troubleshooting |
|
|
203
|
+
|
|
204
|
+
> **Note:** For comprehensive docs (glossary, Zswap, Kachina, etc.), use the `midnight-search-docs` tool which queries the full indexed documentation.
|
|
177
205
|
|
|
178
206
|
### Prompts (5)
|
|
179
207
|
|
|
@@ -217,7 +245,26 @@ The hosted API runs on Cloudflare Workers + Vectorize. See [api/README.md](./api
|
|
|
217
245
|
|
|
218
246
|
### Search Quality
|
|
219
247
|
|
|
220
|
-
The API indexes **
|
|
248
|
+
The API indexes **16 Midnight repositories** including core infrastructure, SDK, examples, and developer tools:
|
|
249
|
+
|
|
250
|
+
| Repository | Description |
|
|
251
|
+
| -------------------------------- | ---------------------------------------------- |
|
|
252
|
+
| `compact` | Compact language compiler and standard library |
|
|
253
|
+
| `midnight-js` | TypeScript SDK |
|
|
254
|
+
| `midnight-docs` | Official documentation |
|
|
255
|
+
| `example-counter` | Simple counter DApp example |
|
|
256
|
+
| `example-bboard` | Bulletin board DApp example |
|
|
257
|
+
| `example-dex` | DEX DApp example |
|
|
258
|
+
| `create-mn-app` | Project scaffolding CLI |
|
|
259
|
+
| `midnight-wallet` | Wallet implementation |
|
|
260
|
+
| `midnight-indexer` | Blockchain indexer |
|
|
261
|
+
| `midnight-node-docker` | Node Docker setup |
|
|
262
|
+
| `midnight-dapp-connector-api` | Wallet connector API |
|
|
263
|
+
| `compact-tree-sitter` | Syntax highlighting support |
|
|
264
|
+
| `setup-compact-action` | GitHub Action for CI/CD |
|
|
265
|
+
| `midnight-awesome-dapps` | Curated DApp list |
|
|
266
|
+
| `contributor-hub` | Contributor resources |
|
|
267
|
+
| `OpenZeppelin/compact-contracts` | OpenZeppelin Compact library |
|
|
221
268
|
|
|
222
269
|
Search quality techniques:
|
|
223
270
|
|
|
@@ -231,6 +278,29 @@ View live metrics at the [Dashboard](https://midnight-mcp-api.midnightmcp.worker
|
|
|
231
278
|
|
|
232
279
|
MIT
|
|
233
280
|
|
|
281
|
+
## Changelog
|
|
282
|
+
|
|
283
|
+
### v0.1.7
|
|
284
|
+
|
|
285
|
+
- Added `setup-compact-action` repository to indexed sources
|
|
286
|
+
- New aliases: `setup-compact`, `compact-action`, `tree-sitter`
|
|
287
|
+
|
|
288
|
+
### v0.1.6
|
|
289
|
+
|
|
290
|
+
- Fixed bug where tools crashed with "Cannot read properties of undefined" when repo param was omitted
|
|
291
|
+
|
|
292
|
+
### v0.1.5
|
|
293
|
+
|
|
294
|
+
- Added `common-errors` embedded resource with verified troubleshooting guide
|
|
295
|
+
- Added comprehensive search tool tests
|
|
296
|
+
- Refactored to follow MCP best practices (tools over embedded knowledge)
|
|
297
|
+
|
|
298
|
+
### v0.1.4
|
|
299
|
+
|
|
300
|
+
- Initial stable release with 19 tools, 9 embedded resources, 5 prompts
|
|
301
|
+
- Hosted API with zero-config semantic search
|
|
302
|
+
- Support for Claude Desktop, Cursor, and Windsurf
|
|
303
|
+
|
|
234
304
|
## Links
|
|
235
305
|
|
|
236
306
|
- [Midnight Docs](https://docs.midnight.network)
|
|
@@ -42,6 +42,13 @@ export const REPO_ALIASES = {
|
|
|
42
42
|
owner: "midnightntwrk",
|
|
43
43
|
repo: "compact-tree-sitter",
|
|
44
44
|
},
|
|
45
|
+
"tree-sitter": { owner: "midnightntwrk", repo: "compact-tree-sitter" },
|
|
46
|
+
"setup-compact-action": {
|
|
47
|
+
owner: "midnightntwrk",
|
|
48
|
+
repo: "setup-compact-action",
|
|
49
|
+
},
|
|
50
|
+
"setup-compact": { owner: "midnightntwrk", repo: "setup-compact-action" },
|
|
51
|
+
"compact-action": { owner: "midnightntwrk", repo: "setup-compact-action" },
|
|
45
52
|
// Community
|
|
46
53
|
"midnight-awesome-dapps": {
|
|
47
54
|
owner: "midnightntwrk",
|
|
@@ -53,6 +60,24 @@ export const REPO_ALIASES = {
|
|
|
53
60
|
"compact-contracts": { owner: "OpenZeppelin", repo: "compact-contracts" },
|
|
54
61
|
openzeppelin: { owner: "OpenZeppelin", repo: "compact-contracts" },
|
|
55
62
|
oz: { owner: "OpenZeppelin", repo: "compact-contracts" },
|
|
63
|
+
"midnight-apps": { owner: "OpenZeppelin", repo: "midnight-apps" },
|
|
64
|
+
lunarswap: { owner: "OpenZeppelin", repo: "midnight-apps" },
|
|
65
|
+
// Official Partners (from awesome-dapps)
|
|
66
|
+
"midnight-seabattle": { owner: "bricktowers", repo: "midnight-seabattle" },
|
|
67
|
+
seabattle: { owner: "bricktowers", repo: "midnight-seabattle" },
|
|
68
|
+
battleship: { owner: "bricktowers", repo: "midnight-seabattle" },
|
|
69
|
+
"midnight-identity": { owner: "bricktowers", repo: "midnight-identity" },
|
|
70
|
+
identity: { owner: "bricktowers", repo: "midnight-identity" },
|
|
71
|
+
"midnight-rwa": { owner: "bricktowers", repo: "midnight-rwa" },
|
|
72
|
+
rwa: { owner: "bricktowers", repo: "midnight-rwa" },
|
|
73
|
+
"midnight-starter-template": {
|
|
74
|
+
owner: "MeshJS",
|
|
75
|
+
repo: "midnight-starter-template",
|
|
76
|
+
},
|
|
77
|
+
meshjs: { owner: "MeshJS", repo: "midnight-starter-template" },
|
|
78
|
+
starter: { owner: "MeshJS", repo: "midnight-starter-template" },
|
|
79
|
+
midnames: { owner: "midnames", repo: "core" },
|
|
80
|
+
did: { owner: "midnames", repo: "core" },
|
|
56
81
|
};
|
|
57
82
|
export const EXAMPLES = [
|
|
58
83
|
{
|
package/dist/utils/config.js
CHANGED
|
@@ -151,6 +151,13 @@ export const DEFAULT_REPOSITORIES = [
|
|
|
151
151
|
patterns: ["**/*.js", "**/*.md", "**/*.scm"],
|
|
152
152
|
exclude: ["node_modules/**"],
|
|
153
153
|
},
|
|
154
|
+
{
|
|
155
|
+
owner: "midnightntwrk",
|
|
156
|
+
repo: "setup-compact-action",
|
|
157
|
+
branch: "main",
|
|
158
|
+
patterns: ["**/*.ts", "**/*.js", "**/*.md", "**/*.yml", "**/*.yaml"],
|
|
159
|
+
exclude: ["node_modules/**", "dist/**"],
|
|
160
|
+
},
|
|
154
161
|
// Community
|
|
155
162
|
{
|
|
156
163
|
owner: "midnightntwrk",
|
|
@@ -166,7 +173,7 @@ export const DEFAULT_REPOSITORIES = [
|
|
|
166
173
|
patterns: ["**/*.md"],
|
|
167
174
|
exclude: [],
|
|
168
175
|
},
|
|
169
|
-
// Partner Libraries
|
|
176
|
+
// Partner Libraries (OpenZeppelin)
|
|
170
177
|
{
|
|
171
178
|
owner: "OpenZeppelin",
|
|
172
179
|
repo: "compact-contracts",
|
|
@@ -174,5 +181,48 @@ export const DEFAULT_REPOSITORIES = [
|
|
|
174
181
|
patterns: ["**/*.compact", "**/*.ts", "**/*.md"],
|
|
175
182
|
exclude: ["node_modules/**", "dist/**"],
|
|
176
183
|
},
|
|
184
|
+
{
|
|
185
|
+
owner: "OpenZeppelin",
|
|
186
|
+
repo: "midnight-apps",
|
|
187
|
+
branch: "main",
|
|
188
|
+
patterns: ["**/*.compact", "**/*.ts", "**/*.md"],
|
|
189
|
+
exclude: ["node_modules/**", "dist/**"],
|
|
190
|
+
},
|
|
191
|
+
// Official Partners (from awesome-dapps)
|
|
192
|
+
{
|
|
193
|
+
owner: "bricktowers",
|
|
194
|
+
repo: "midnight-seabattle",
|
|
195
|
+
branch: "main",
|
|
196
|
+
patterns: ["**/*.compact", "**/*.ts", "**/*.md"],
|
|
197
|
+
exclude: ["node_modules/**", "dist/**"],
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
owner: "bricktowers",
|
|
201
|
+
repo: "midnight-identity",
|
|
202
|
+
branch: "main",
|
|
203
|
+
patterns: ["**/*.compact", "**/*.ts", "**/*.md"],
|
|
204
|
+
exclude: ["node_modules/**", "dist/**"],
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
owner: "bricktowers",
|
|
208
|
+
repo: "midnight-rwa",
|
|
209
|
+
branch: "main",
|
|
210
|
+
patterns: ["**/*.compact", "**/*.ts", "**/*.md"],
|
|
211
|
+
exclude: ["node_modules/**", "dist/**"],
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
owner: "MeshJS",
|
|
215
|
+
repo: "midnight-starter-template",
|
|
216
|
+
branch: "main",
|
|
217
|
+
patterns: ["**/*.compact", "**/*.ts", "**/*.md"],
|
|
218
|
+
exclude: ["node_modules/**", "dist/**"],
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
owner: "midnames",
|
|
222
|
+
repo: "core",
|
|
223
|
+
branch: "main",
|
|
224
|
+
patterns: ["**/*.compact", "**/*.ts", "**/*.md"],
|
|
225
|
+
exclude: ["node_modules/**", "dist/**"],
|
|
226
|
+
},
|
|
177
227
|
];
|
|
178
228
|
//# sourceMappingURL=config.js.map
|