typegraph-mcp 0.9.24 → 0.9.25

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.
Files changed (4) hide show
  1. package/cli.ts +20 -1
  2. package/dist/cli.js +18 -1
  3. package/package.json +1 -1
  4. package/.mcp.json +0 -10
package/cli.ts CHANGED
@@ -57,7 +57,6 @@ const AGENTS: Record<AgentId, AgentDef> = {
57
57
  name: "Claude Code",
58
58
  pluginFiles: [
59
59
  ".claude-plugin/plugin.json",
60
- ".mcp.json",
61
60
  "hooks/hooks.json",
62
61
  "scripts/ensure-deps.sh",
63
62
  "commands/check.md",
@@ -545,6 +544,26 @@ async function setup(yes: boolean): Promise<void> {
545
544
  }
546
545
  }
547
546
 
547
+ // Generate .mcp.json for Claude Code plugin discovery
548
+ if (selectedAgents.includes("claude-code")) {
549
+ const mcpConfig = {
550
+ mcpServers: {
551
+ typegraph: {
552
+ command: "npx",
553
+ args: ["tsx", "${CLAUDE_PLUGIN_ROOT}/server.ts"],
554
+ env: {
555
+ TYPEGRAPH_PROJECT_ROOT: ".",
556
+ TYPEGRAPH_TSCONFIG: "./tsconfig.json",
557
+ },
558
+ },
559
+ },
560
+ };
561
+ const mcpPath = path.join(targetDir, ".mcp.json");
562
+ fs.mkdirSync(path.dirname(mcpPath), { recursive: true });
563
+ fs.writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 2) + "\n");
564
+ copied++;
565
+ }
566
+
548
567
  s.message("Installing dependencies...");
549
568
  try {
550
569
  execSync("npm install", { cwd: targetDir, stdio: "pipe" });
package/dist/cli.js CHANGED
@@ -2813,7 +2813,6 @@ var AGENTS = {
2813
2813
  name: "Claude Code",
2814
2814
  pluginFiles: [
2815
2815
  ".claude-plugin/plugin.json",
2816
- ".mcp.json",
2817
2816
  "hooks/hooks.json",
2818
2817
  "scripts/ensure-deps.sh",
2819
2818
  "commands/check.md",
@@ -3188,6 +3187,24 @@ async function setup(yes2) {
3188
3187
  p.log.warn(`Source file not found: ${file}`);
3189
3188
  }
3190
3189
  }
3190
+ if (selectedAgents.includes("claude-code")) {
3191
+ const mcpConfig = {
3192
+ mcpServers: {
3193
+ typegraph: {
3194
+ command: "npx",
3195
+ args: ["tsx", "${CLAUDE_PLUGIN_ROOT}/server.ts"],
3196
+ env: {
3197
+ TYPEGRAPH_PROJECT_ROOT: ".",
3198
+ TYPEGRAPH_TSCONFIG: "./tsconfig.json"
3199
+ }
3200
+ }
3201
+ }
3202
+ };
3203
+ const mcpPath = path9.join(targetDir, ".mcp.json");
3204
+ fs8.mkdirSync(path9.dirname(mcpPath), { recursive: true });
3205
+ fs8.writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 2) + "\n");
3206
+ copied++;
3207
+ }
3191
3208
  s.message("Installing dependencies...");
3192
3209
  try {
3193
3210
  execSync2("npm install", { cwd: targetDir, stdio: "pipe" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typegraph-mcp",
3
- "version": "0.9.24",
3
+ "version": "0.9.25",
4
4
  "description": "Type-aware codebase navigation for AI coding agents — 14 MCP tools powered by tsserver + oxc",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/.mcp.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "typegraph": {
3
- "command": "npx",
4
- "args": ["tsx", "${CLAUDE_PLUGIN_ROOT}/server.ts"],
5
- "env": {
6
- "TYPEGRAPH_PROJECT_ROOT": ".",
7
- "TYPEGRAPH_TSCONFIG": "./tsconfig.json"
8
- }
9
- }
10
- }