codebase-analyzer-mcp 2.0.3 → 2.0.4

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.
@@ -6,13 +6,13 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Multi-layer codebase analysis tools",
9
- "version": "2.0.3"
9
+ "version": "2.0.4"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "codebase-analyzer",
14
14
  "description": "Multi-layer codebase analysis with Gemini AI. 4 agents, 5 commands, 3 skills for architecture analysis, pattern detection, and dataflow tracing.",
15
- "version": "2.0.3",
15
+ "version": "2.0.4",
16
16
  "author": {
17
17
  "name": "Jake Correa",
18
18
  "url": "https://github.com/jaykaycodes"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebase-analyzer",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Multi-layer codebase analysis with Gemini AI. 4 agents, 5 commands, 3 skills for architecture analysis, pattern detection, and dataflow tracing.",
5
5
  "author": {
6
6
  "name": "Jake Correa",
package/README.md CHANGED
@@ -17,14 +17,29 @@ Then use `/analyze`, `/patterns`, `/trace`, or `/explore` commands.
17
17
 
18
18
  ### MCP Server
19
19
 
20
- Add to `~/.claude/settings.json`:
20
+ Add to `~/.mcp.json` (create if it doesn't exist):
21
21
 
22
22
  ```json
23
23
  {
24
24
  "mcpServers": {
25
25
  "codebase-analyzer": {
26
26
  "command": "npx",
27
- "args": ["-y", "codebase-analyzer-mcp", "--mcp"],
27
+ "args": ["-y", "codebase-analyzer-mcp"]
28
+ }
29
+ }
30
+ }
31
+ ```
32
+
33
+ Restart Claude Code, then use the `analyze_repo`, `find_patterns`, or `trace_dataflow` tools.
34
+
35
+ **Optional:** For semantic analysis with Gemini AI, get an API key at https://aistudio.google.com/apikey and add it:
36
+
37
+ ```json
38
+ {
39
+ "mcpServers": {
40
+ "codebase-analyzer": {
41
+ "command": "npx",
42
+ "args": ["-y", "codebase-analyzer-mcp"],
28
43
  "env": {
29
44
  "GEMINI_API_KEY": "your_api_key"
30
45
  }
@@ -33,8 +48,6 @@ Add to `~/.claude/settings.json`:
33
48
  }
34
49
  ```
35
50
 
36
- Get a Gemini API key at https://aistudio.google.com/apikey
37
-
38
51
  ### CLI
39
52
 
40
53
  ```bash
package/dist/cli/index.js CHANGED
@@ -44076,7 +44076,7 @@ var package_default;
44076
44076
  var init_package = __esm(() => {
44077
44077
  package_default = {
44078
44078
  name: "codebase-analyzer-mcp",
44079
- version: "2.0.3",
44079
+ version: "2.0.4",
44080
44080
  description: "Multi-layer codebase analysis with Gemini AI. MCP server + Claude plugin with progressive disclosure.",
44081
44081
  type: "module",
44082
44082
  main: "dist/mcp/server.js",
@@ -44096,7 +44096,7 @@ var init_package = __esm(() => {
44096
44096
  ],
44097
44097
  scripts: {
44098
44098
  build: "bun run build:js",
44099
- "build:js": "bun build src/mcp/server.ts --outfile dist/mcp/server.js --target node && bun build src/cli/index.ts --outfile dist/cli/index.js --target node && echo '#!/usr/bin/env node' | cat - dist/cli/index.js > /tmp/cba.js && mv /tmp/cba.js dist/cli/index.js",
44099
+ "build:js": `bun build src/mcp/server.ts --outfile dist/mcp/server.js --target node && bun build src/cli/index.ts --outfile dist/cli/index.js --target node && node -e "const fs=require('fs');const c=fs.readFileSync('dist/cli/index.js','utf8');fs.writeFileSync('dist/cli/index.js','#!/usr/bin/env node\\n'+c)"`,
44100
44100
  dev: "bun --watch src/cli/index.ts",
44101
44101
  start: "bun dist/mcp/server.js",
44102
44102
  typecheck: "tsc --noEmit",
@@ -73602,9 +73602,7 @@ function extractSourceName2(source) {
73602
73602
  return basename5(source) || source;
73603
73603
  }
73604
73604
  var program2 = new Command;
73605
- program2.name("cba").description(`Codebase Analyzer - Multi-layer repository analysis with Gemini AI
73606
-
73607
- Use --mcp to run as MCP server for Claude Code`).version(package_default.version);
73605
+ program2.name("cba").description("Codebase Analyzer - Multi-layer repository analysis with Gemini AI").version(package_default.version);
73608
73606
  program2.command("analyze").description("Perform architectural analysis of a repository").argument("<source>", "Local path or GitHub URL").option("-d, --depth <depth>", "Analysis depth: surface, standard, deep", "standard").option("-f, --focus <areas...>", "Specific areas to focus on").option("-e, --exclude <patterns...>", "Glob patterns to exclude").option("-t, --token-budget <tokens>", "Maximum token budget", "800000").option("-s, --semantics", "Include deep semantic analysis (uses LLM)").option("-v, --verbose", "Show detailed progress and subagent activity").option("-q, --quiet", "Only output the final result (no progress)").option("--format <format>", "Output format (json or markdown)", "json").action(async (source, options) => {
73609
73607
  try {
73610
73608
  if (options.verbose)
@@ -73747,11 +73745,14 @@ function formatAnalysisAsMarkdown(result) {
73747
73745
  return lines.join(`
73748
73746
  `);
73749
73747
  }
73750
- if (process.argv.includes("--mcp")) {
73748
+ var cliCommands = ["analyze", "patterns", "dataflow", "capabilities", "help", "-h", "--help", "-V", "--version"];
73749
+ var firstArg = process.argv[2];
73750
+ var isCliMode = firstArg && cliCommands.some((cmd) => firstArg === cmd || firstArg.startsWith("-"));
73751
+ if (isCliMode) {
73752
+ program2.parse();
73753
+ } else {
73751
73754
  Promise.resolve().then(() => (init_server2(), exports_server)).catch((err) => {
73752
73755
  console.error("Failed to start MCP server:", err);
73753
73756
  process.exit(1);
73754
73757
  });
73755
- } else {
73756
- program2.parse();
73757
73758
  }
@@ -70685,7 +70685,7 @@ If you cannot find the entry point, explain what you looked for in the summary a
70685
70685
  // package.json
70686
70686
  var package_default = {
70687
70687
  name: "codebase-analyzer-mcp",
70688
- version: "2.0.3",
70688
+ version: "2.0.4",
70689
70689
  description: "Multi-layer codebase analysis with Gemini AI. MCP server + Claude plugin with progressive disclosure.",
70690
70690
  type: "module",
70691
70691
  main: "dist/mcp/server.js",
@@ -70705,7 +70705,7 @@ var package_default = {
70705
70705
  ],
70706
70706
  scripts: {
70707
70707
  build: "bun run build:js",
70708
- "build:js": "bun build src/mcp/server.ts --outfile dist/mcp/server.js --target node && bun build src/cli/index.ts --outfile dist/cli/index.js --target node && echo '#!/usr/bin/env node' | cat - dist/cli/index.js > /tmp/cba.js && mv /tmp/cba.js dist/cli/index.js",
70708
+ "build:js": `bun build src/mcp/server.ts --outfile dist/mcp/server.js --target node && bun build src/cli/index.ts --outfile dist/cli/index.js --target node && node -e "const fs=require('fs');const c=fs.readFileSync('dist/cli/index.js','utf8');fs.writeFileSync('dist/cli/index.js','#!/usr/bin/env node\\n'+c)"`,
70709
70709
  dev: "bun --watch src/cli/index.ts",
70710
70710
  start: "bun dist/mcp/server.js",
70711
70711
  typecheck: "tsc --noEmit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebase-analyzer-mcp",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Multi-layer codebase analysis with Gemini AI. MCP server + Claude plugin with progressive disclosure.",
5
5
  "type": "module",
6
6
  "main": "dist/mcp/server.js",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "build": "bun run build:js",
23
- "build:js": "bun build src/mcp/server.ts --outfile dist/mcp/server.js --target node && bun build src/cli/index.ts --outfile dist/cli/index.js --target node && echo '#!/usr/bin/env node' | cat - dist/cli/index.js > /tmp/cba.js && mv /tmp/cba.js dist/cli/index.js",
23
+ "build:js": "bun build src/mcp/server.ts --outfile dist/mcp/server.js --target node && bun build src/cli/index.ts --outfile dist/cli/index.js --target node && node -e \"const fs=require('fs');const c=fs.readFileSync('dist/cli/index.js','utf8');fs.writeFileSync('dist/cli/index.js','#!/usr/bin/env node\\n'+c)\"",
24
24
  "dev": "bun --watch src/cli/index.ts",
25
25
  "start": "bun dist/mcp/server.js",
26
26
  "typecheck": "tsc --noEmit",