@kumikijs/mcp 0.2.1 → 0.3.1
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/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createServer } from "./src-
|
|
1
|
+
import { t as createServer } from "./src-DaH_LCHr.js";
|
|
2
2
|
export { createServer };
|
package/dist/server.js
CHANGED
|
@@ -7,11 +7,11 @@ import { CapabilityManifestError, nodeRuntimeBundleReader, resolveCapabilities }
|
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
9
|
//#region src/spec.ts
|
|
10
|
-
/** Resolve the repo's spec
|
|
10
|
+
/** Resolve the repo's docs/spec directory. Override with KUMIKI_SPEC_DIR. */
|
|
11
11
|
function specDir() {
|
|
12
12
|
const env = process.env.KUMIKI_SPEC_DIR;
|
|
13
13
|
if (env) return env;
|
|
14
|
-
return join(dirname(fileURLToPath(import.meta.url)), "..", "..", "..", "spec");
|
|
14
|
+
return join(dirname(fileURLToPath(import.meta.url)), "..", "..", "..", "docs", "spec");
|
|
15
15
|
}
|
|
16
16
|
function listSpecDocs() {
|
|
17
17
|
const dir = specDir();
|
|
@@ -107,7 +107,7 @@ function createServer() {
|
|
|
107
107
|
});
|
|
108
108
|
server.registerTool("kumiki_check", {
|
|
109
109
|
title: "Check Kumiki source",
|
|
110
|
-
description: "Parse and typecheck a Kumiki program. Pass `source` (text) or `path` (file). Returns ok or a list of diagnostics with codes (see spec/errors.md).",
|
|
110
|
+
description: "Parse and typecheck a Kumiki program. Pass `source` (text) or `path` (file). Returns ok or a list of diagnostics with codes (see docs/spec/errors.md).",
|
|
111
111
|
inputSchema: {
|
|
112
112
|
source: z.string().optional().describe("Full Kumiki source text"),
|
|
113
113
|
path: z.string().optional().describe("Path to a .kumiki file (relative to cwd)"),
|
|
@@ -308,16 +308,16 @@ function createServer() {
|
|
|
308
308
|
});
|
|
309
309
|
server.registerTool("kumiki_spec_search", {
|
|
310
310
|
title: "Search the spec",
|
|
311
|
-
description: "Keyword search across the normative spec
|
|
311
|
+
description: "Keyword search across the normative docs/spec documents. Returns doc:line matches.",
|
|
312
312
|
inputSchema: { query: z.string() }
|
|
313
313
|
}, async ({ query }) => {
|
|
314
314
|
return text(searchSpec(query).map((h) => `${h.doc}:${h.line} ${h.text}`).join("\n") || `(no matches for "${query}")`);
|
|
315
315
|
});
|
|
316
316
|
server.registerTool("kumiki_spec_list", {
|
|
317
317
|
title: "List spec documents",
|
|
318
|
-
description: "List the available normative spec
|
|
318
|
+
description: "List the available normative docs/spec documents.",
|
|
319
319
|
inputSchema: {}
|
|
320
|
-
}, async () => text(listSpecDocs().join("\n") || "(spec
|
|
320
|
+
}, async () => text(listSpecDocs().join("\n") || "(docs/spec not found)"));
|
|
321
321
|
server.registerTool("kumiki_spec_get", {
|
|
322
322
|
title: "Get a spec document",
|
|
323
323
|
description: "Fetch the full text of one spec document (e.g. 'language' or 'errors.md').",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumikijs/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Kumiki MCP server — exposes the compiler (check/build/list/view/add/replace/remove/fix) and spec search as MCP tools.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
43
43
|
"zod": "^4.4.3",
|
|
44
|
-
"@kumikijs/cli": "0.
|
|
45
|
-
"@kumikijs/compiler": "0.
|
|
44
|
+
"@kumikijs/cli": "0.3.1",
|
|
45
|
+
"@kumikijs/compiler": "0.3.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^25.9.1",
|