midnight-mcp 0.1.3 → 0.1.5

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.
@@ -6,71 +6,62 @@ import { githubClient } from "../pipeline/index.js";
6
6
  import { logger } from "../utils/index.js";
7
7
  import { EMBEDDED_DOCS } from "./content/index.js";
8
8
  // Documentation resource URIs
9
+ // NOTE: Only resources with embedded content are listed here.
10
+ // For other docs (glossary, Zswap, Kachina, etc.), use search_docs tool
11
+ // which queries the indexed Vector DB for the full midnight-docs repo.
9
12
  export const documentationResources = [
10
13
  {
11
14
  uri: "midnight://docs/compact-reference",
12
15
  name: "Compact Language Reference",
13
- description: "Complete Compact language reference including syntax, types, built-in functions, and circuit definitions",
16
+ description: "Quick reference for Compact syntax, types, circuits, and witnesses",
14
17
  mimeType: "text/markdown",
15
18
  },
16
19
  {
17
20
  uri: "midnight://docs/sdk-api",
18
21
  name: "TypeScript SDK API",
19
- description: "TypeScript SDK API documentation with type signatures and usage examples",
20
- mimeType: "text/markdown",
21
- },
22
- {
23
- uri: "midnight://docs/concepts/zero-knowledge",
24
- name: "Zero-Knowledge Proofs",
25
- description: "Conceptual documentation about zero-knowledge proofs in Midnight",
26
- mimeType: "text/markdown",
27
- },
28
- {
29
- uri: "midnight://docs/concepts/shielded-state",
30
- name: "Shielded State",
31
- description: "Understanding shielded (private) vs unshielded (public) state in Midnight",
32
- mimeType: "text/markdown",
33
- },
34
- {
35
- uri: "midnight://docs/concepts/witnesses",
36
- name: "Witness Functions",
37
- description: "How witness functions work in Midnight for off-chain computation",
38
- mimeType: "text/markdown",
39
- },
40
- {
41
- uri: "midnight://docs/concepts/kachina",
42
- name: "Kachina Protocol",
43
- description: "The Kachina protocol underlying Midnight's privacy features",
22
+ description: "TypeScript SDK API reference with type signatures and usage examples",
44
23
  mimeType: "text/markdown",
45
24
  },
46
25
  {
47
26
  uri: "midnight://docs/openzeppelin",
48
27
  name: "OpenZeppelin Contracts for Compact",
49
- description: "Official OpenZeppelin library documentation - the recommended source for token contracts, access control, and security patterns",
28
+ description: "Official OpenZeppelin library - tokens, access control, security patterns",
50
29
  mimeType: "text/markdown",
51
30
  },
52
31
  {
53
32
  uri: "midnight://docs/openzeppelin/token",
54
33
  name: "OpenZeppelin FungibleToken",
55
- description: "Official token contract implementation - the recommended standard for tokens on Midnight",
34
+ description: "Privacy-preserving token standard for Midnight",
56
35
  mimeType: "text/markdown",
57
36
  },
58
37
  {
59
38
  uri: "midnight://docs/openzeppelin/access",
60
39
  name: "OpenZeppelin Access Control",
61
- description: "Ownable, roles, and access control patterns from OpenZeppelin",
40
+ description: "Ownable, roles, and access control patterns",
62
41
  mimeType: "text/markdown",
63
42
  },
64
43
  {
65
44
  uri: "midnight://docs/openzeppelin/security",
66
45
  name: "OpenZeppelin Security",
67
- description: "Pausable and other security patterns from OpenZeppelin",
46
+ description: "Pausable and security patterns",
68
47
  mimeType: "text/markdown",
69
48
  },
70
49
  {
71
50
  uri: "midnight://docs/tokenomics",
72
- name: "Midnight Tokenomics Whitepaper",
73
- description: "Complete tokenomics documentation covering NIGHT token, DUST resource, block rewards, token distribution (Glacier Drop), and cooperative tokenomics",
51
+ name: "Tokenomics Summary",
52
+ description: "Curated summary: NIGHT token, DUST resource, block rewards, Glacier Drop distribution",
53
+ mimeType: "text/markdown",
54
+ },
55
+ {
56
+ uri: "midnight://docs/wallet-integration",
57
+ name: "Wallet Integration Guide",
58
+ description: "DApp Connector API for Midnight Lace wallet - React hooks, TypeScript types",
59
+ mimeType: "text/markdown",
60
+ },
61
+ {
62
+ uri: "midnight://docs/common-errors",
63
+ name: "Common Errors & Solutions",
64
+ description: "Troubleshooting guide: compiler errors, SDK errors, deployment issues with fixes",
74
65
  mimeType: "text/markdown",
75
66
  },
76
67
  ];
package/dist/server.js CHANGED
@@ -7,10 +7,10 @@ import { allTools } from "./tools/index.js";
7
7
  import { allResources, getDocumentation, getCode, getSchema, } from "./resources/index.js";
8
8
  import { promptDefinitions, generatePrompt } from "./prompts/index.js";
9
9
  import { registerSamplingCallback } from "./services/index.js";
10
- // Server information
10
+ // Server information - version should match package.json
11
11
  const SERVER_INFO = {
12
12
  name: "midnight-mcp",
13
- version: "1.0.0",
13
+ version: "0.1.4",
14
14
  description: "MCP Server for Midnight Blockchain Development",
15
15
  };
16
16
  // Resource subscriptions tracking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "midnight-mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Model Context Protocol Server for Midnight Blockchain Development",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",