midnight-mcp 0.1.7 → 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 CHANGED
@@ -41,6 +41,7 @@ Add to your `claude_desktop_config.json`:
41
41
  [![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](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 (20)
188
+ ### Embedded Resources (9)
189
+
190
+ Curated documentation that's always available without network calls:
173
191
 
174
- - `midnight://docs/*` — Documentation (Compact reference, SDK API, ZK concepts)
175
- - `midnight://code/*` Examples, patterns, and templates
176
- - `midnight://schema/*` AST, transaction, and proof schemas
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 **25 Midnight repositories** including core infrastructure, SDK, examples, ZK libraries, and developer tools.
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)
@@ -60,6 +60,24 @@ export const REPO_ALIASES = {
60
60
  "compact-contracts": { owner: "OpenZeppelin", repo: "compact-contracts" },
61
61
  openzeppelin: { owner: "OpenZeppelin", repo: "compact-contracts" },
62
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" },
63
81
  };
64
82
  export const EXAMPLES = [
65
83
  {
@@ -173,7 +173,7 @@ export const DEFAULT_REPOSITORIES = [
173
173
  patterns: ["**/*.md"],
174
174
  exclude: [],
175
175
  },
176
- // Partner Libraries
176
+ // Partner Libraries (OpenZeppelin)
177
177
  {
178
178
  owner: "OpenZeppelin",
179
179
  repo: "compact-contracts",
@@ -181,5 +181,48 @@ export const DEFAULT_REPOSITORIES = [
181
181
  patterns: ["**/*.compact", "**/*.ts", "**/*.md"],
182
182
  exclude: ["node_modules/**", "dist/**"],
183
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
+ },
184
227
  ];
185
228
  //# sourceMappingURL=config.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "midnight-mcp",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Model Context Protocol Server for Midnight Blockchain Development",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",