@ebowwa/dependency-graph-mcp 1.0.0

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/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@ebowwa/dependency-graph-mcp",
3
+ "version": "1.0.0",
4
+ "description": "MCP server for dependency graph analysis and visualization in monorepos",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "dependency-graph-mcp": "dist/cli.js"
10
+ },
11
+ "scripts": {
12
+ "build": "bun build src/cli.ts --outdir dist --target node && bun build src/index.ts --outdir dist --target node && chmod +x dist/cli.js",
13
+ "dev": "bun run src/index.ts",
14
+ "mcp-dev": "MCP_DEV=true bun run src/index.ts"
15
+ },
16
+ "dependencies": {
17
+ "@modelcontextprotocol/sdk": "^1.0.4",
18
+ "zod": "^3.24.1"
19
+ },
20
+ "devDependencies": {
21
+ "@types/bun": "latest",
22
+ "@types/node": "^20.0.0",
23
+ "typescript": "^5.0.0"
24
+ },
25
+ "keywords": [
26
+ "mcp",
27
+ "dependency",
28
+ "graph",
29
+ "monorepo",
30
+ "visualization",
31
+ "impact-analysis"
32
+ ],
33
+ "author": "ebowwa",
34
+ "license": "MIT",
35
+ "peerDependencies": {
36
+ "bun": ">=1.0.0"
37
+ }
38
+ }
package/src/cli.js ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env bun
2
+ "use strict";
3
+ /**
4
+ * CLI entry point for dependency-graph-mcp
5
+ */
6
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
8
+ if (ar || !(i in from)) {
9
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
10
+ ar[i] = from[i];
11
+ }
12
+ }
13
+ return to.concat(ar || Array.prototype.slice.call(from));
14
+ };
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ var node_child_process_1 = require("node:child_process");
17
+ var scriptPath = new URL("index.ts", import.meta.url).pathname;
18
+ // Signal handlers for graceful shutdown
19
+ process.on("SIGINT", function () {
20
+ process.exit(0);
21
+ });
22
+ process.on("SIGTERM", function () {
23
+ process.exit(0);
24
+ });
25
+ // Run the MCP server
26
+ var proc = (0, node_child_process_1.spawn)(process.argv[0], __spreadArray([scriptPath], process.argv.slice(2), true), {
27
+ stdio: "inherit",
28
+ });
29
+ proc.on("exit", function (code) {
30
+ process.exit(code !== null && code !== void 0 ? code : 0);
31
+ });
package/src/cli.ts ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * CLI entry point for dependency-graph-mcp
4
+ */
5
+
6
+ import { spawn } from "node:child_process";
7
+
8
+ const scriptPath = new URL("index.ts", import.meta.url).pathname;
9
+
10
+ // Signal handlers for graceful shutdown
11
+ process.on("SIGINT", () => {
12
+ process.exit(0);
13
+ });
14
+
15
+ process.on("SIGTERM", () => {
16
+ process.exit(0);
17
+ });
18
+
19
+ // Run the MCP server
20
+ const proc = spawn(process.argv[0], [scriptPath, ...process.argv.slice(2)], {
21
+ stdio: "inherit",
22
+ });
23
+
24
+ proc.on("exit", (code) => {
25
+ process.exit(code ?? 0);
26
+ });