@paretools/bazel 0.12.0 → 0.13.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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/tools/index.d.ts +3 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +24 -4
- package/dist/tools/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { createServer } from "@paretools/shared";
|
|
2
|
+
import { createServer, readPackageVersion } from "@paretools/shared";
|
|
3
3
|
import { registerAllTools } from "./tools/index.js";
|
|
4
4
|
await createServer({
|
|
5
5
|
name: "@paretools/bazel",
|
|
6
|
-
version:
|
|
6
|
+
version: readPackageVersion(import.meta.url),
|
|
7
7
|
instructions: "Structured Bazel build system operations (build, test, query, info, run, clean, fetch). Returns typed JSON.",
|
|
8
8
|
registerTools: registerAllTools,
|
|
9
9
|
});
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,YAAY,CAAC;IACjB,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;IAC5C,YAAY,EACV,6GAA6G;IAC/G,aAAa,EAAE,gBAAgB;CAChC,CAAC,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
-
|
|
2
|
+
import { type LazyToolManager } from "@paretools/shared";
|
|
3
|
+
/** Registers all Bazel tools on the given MCP server, filtered by policy. */
|
|
4
|
+
export declare function registerAllTools(server: McpServer, lazyManager?: LazyToolManager): void;
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,mBAAmB,CAAC;AAe3B,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,eAAe,QAiBhF"}
|
package/dist/tools/index.js
CHANGED
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
import { shouldRegisterTool } from "@paretools/shared";
|
|
1
|
+
import { shouldRegisterTool, isCoreToolForServer, registerDiscoverTool, } from "@paretools/shared";
|
|
2
2
|
import { registerBazelTool } from "./bazel.js";
|
|
3
|
-
|
|
3
|
+
const TOOL_DEFS = [
|
|
4
|
+
{
|
|
5
|
+
name: "bazel",
|
|
6
|
+
description: "Bazel build system operations: build, test, query, info, run, clean, fetch.",
|
|
7
|
+
register: registerBazelTool,
|
|
8
|
+
},
|
|
9
|
+
];
|
|
10
|
+
/** Registers all Bazel tools on the given MCP server, filtered by policy. */
|
|
11
|
+
export function registerAllTools(server, lazyManager) {
|
|
4
12
|
const s = (name) => shouldRegisterTool("bazel", name);
|
|
5
|
-
|
|
6
|
-
|
|
13
|
+
const isCore = (name) => isCoreToolForServer("bazel", name);
|
|
14
|
+
for (const def of TOOL_DEFS) {
|
|
15
|
+
if (!s(def.name))
|
|
16
|
+
continue;
|
|
17
|
+
if (lazyManager && !isCore(def.name)) {
|
|
18
|
+
lazyManager.registerLazy(def);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
def.register(server);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (lazyManager && lazyManager.hasDeferredTools()) {
|
|
25
|
+
registerDiscoverTool(server, lazyManager, "bazel");
|
|
26
|
+
}
|
|
7
27
|
}
|
|
8
28
|
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,GAErB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,SAAS,GAIV;IACH;QACE,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,6EAA6E;QAC1F,QAAQ,EAAE,iBAAiB;KAC5B;CACF,CAAC;AAEF,6EAA6E;AAC7E,MAAM,UAAU,gBAAgB,CAAC,MAAiB,EAAE,WAA6B;IAC/E,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAEpE,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,SAAS;QAE3B,IAAI,WAAW,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACrC,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QAChC,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IAED,IAAI,WAAW,IAAI,WAAW,CAAC,gBAAgB,EAAE,EAAE,CAAC;QAClD,oBAAoB,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paretools/bazel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"mcpName": "io.github.Dave-London/pare-bazel",
|
|
5
5
|
"description": "MCP server for Bazel build system operations with structured, token-efficient output",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"dist"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
46
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
47
47
|
"zod": "^4.3.6",
|
|
48
|
-
"@paretools/shared": "0.
|
|
48
|
+
"@paretools/shared": "0.13.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/node": "^25.
|
|
51
|
+
"@types/node": "^25.3.3",
|
|
52
52
|
"typescript": "^5.7.0",
|
|
53
53
|
"vitest": "^4.0.18",
|
|
54
54
|
"@paretools/tsconfig": "0.0.0"
|