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.
- package/dist/resources/code.js +24 -0
- package/dist/resources/content/code-content.js +261 -0
- package/dist/resources/content/docs-content.d.ts +10 -2
- package/dist/resources/content/docs-content.js +545 -825
- package/dist/resources/docs.js +23 -32
- package/dist/server.js +2 -2
- package/package.json +1 -1
package/dist/resources/docs.js
CHANGED
|
@@ -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: "
|
|
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
|
|
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
|
|
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: "
|
|
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
|
|
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
|
|
46
|
+
description: "Pausable and security patterns",
|
|
68
47
|
mimeType: "text/markdown",
|
|
69
48
|
},
|
|
70
49
|
{
|
|
71
50
|
uri: "midnight://docs/tokenomics",
|
|
72
|
-
name: "
|
|
73
|
-
description: "
|
|
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.
|
|
13
|
+
version: "0.1.4",
|
|
14
14
|
description: "MCP Server for Midnight Blockchain Development",
|
|
15
15
|
};
|
|
16
16
|
// Resource subscriptions tracking
|