typegraph-mcp 0.9.23 → 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 +21 -1
  2. package/dist/cli.js +20 -2
  3. package/package.json +1 -1
  4. package/.mcp.json +0 -10
package/cli.ts CHANGED
@@ -57,11 +57,11 @@ 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",
64
63
  "commands/test.md",
64
+ "commands/bench.md",
65
65
  ],
66
66
  agentFile: "CLAUDE.md",
67
67
  needsAgentsSkills: false,
@@ -544,6 +544,26 @@ async function setup(yes: boolean): Promise<void> {
544
544
  }
545
545
  }
546
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
+
547
567
  s.message("Installing dependencies...");
548
568
  try {
549
569
  execSync("npm install", { cwd: targetDir, stdio: "pipe" });
package/dist/cli.js CHANGED
@@ -2813,11 +2813,11 @@ 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",
2820
- "commands/test.md"
2819
+ "commands/test.md",
2820
+ "commands/bench.md"
2821
2821
  ],
2822
2822
  agentFile: "CLAUDE.md",
2823
2823
  needsAgentsSkills: false,
@@ -3187,6 +3187,24 @@ async function setup(yes2) {
3187
3187
  p.log.warn(`Source file not found: ${file}`);
3188
3188
  }
3189
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
+ }
3190
3208
  s.message("Installing dependencies...");
3191
3209
  try {
3192
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.23",
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
- }