codebase-analyzer-mcp 2.0.2 → 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.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +18 -31
- package/dist/cli/index.js +10 -14
- package/dist/mcp/server.js +3 -8
- package/package.json +3 -8
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Multi-layer codebase analysis tools",
|
|
9
|
-
"version": "2.0.
|
|
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.
|
|
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
|
+
"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 `~/.
|
|
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"
|
|
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
|
|
@@ -85,32 +98,6 @@ npm install -g codebase-analyzer-mcp
|
|
|
85
98
|
# Then use: cba analyze .
|
|
86
99
|
```
|
|
87
100
|
|
|
88
|
-
### Standalone Binary
|
|
89
|
-
|
|
90
|
-
No Node/Bun required. Download from [Releases](https://github.com/jaykaycodes/codebase-analyzer-mcp/releases):
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
# macOS Apple Silicon
|
|
94
|
-
curl -L https://github.com/jaykaycodes/codebase-analyzer-mcp/releases/latest/download/cba-macos-arm64 -o cba
|
|
95
|
-
chmod +x cba && sudo mv cba /usr/local/bin/
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
<details>
|
|
99
|
-
<summary>Other platforms</summary>
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
# macOS Intel
|
|
103
|
-
curl -L https://github.com/jaykaycodes/codebase-analyzer-mcp/releases/latest/download/cba-macos-x64 -o cba
|
|
104
|
-
|
|
105
|
-
# Linux x64
|
|
106
|
-
curl -L https://github.com/jaykaycodes/codebase-analyzer-mcp/releases/latest/download/cba-linux-x64 -o cba
|
|
107
|
-
|
|
108
|
-
# Linux ARM64
|
|
109
|
-
curl -L https://github.com/jaykaycodes/codebase-analyzer-mcp/releases/latest/download/cba-linux-arm64 -o cba
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
</details>
|
|
113
|
-
|
|
114
101
|
## Development
|
|
115
102
|
|
|
116
103
|
```bash
|
|
@@ -118,7 +105,7 @@ git clone https://github.com/jaykaycodes/codebase-analyzer-mcp.git
|
|
|
118
105
|
cd codebase-analyzer-mcp
|
|
119
106
|
bun install
|
|
120
107
|
bun run dev # Watch mode
|
|
121
|
-
bun run build
|
|
108
|
+
bun run build:js # Build JS
|
|
122
109
|
bun run cba analyze . # Test CLI
|
|
123
110
|
```
|
|
124
111
|
|
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.
|
|
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",
|
|
@@ -44095,13 +44095,8 @@ var init_package = __esm(() => {
|
|
|
44095
44095
|
"AGENTS.md"
|
|
44096
44096
|
],
|
|
44097
44097
|
scripts: {
|
|
44098
|
-
build: "bun run build:js
|
|
44099
|
-
"build:js":
|
|
44100
|
-
"build:bin": "bun build src/cli/index.ts --compile --outfile dist/cba",
|
|
44101
|
-
"build:bin:all": "bun run build:bin:macos && bun run build:bin:linux && bun run build:bin:windows",
|
|
44102
|
-
"build:bin:macos": "bun build src/cli/index.ts --compile --target=bun-darwin-arm64 --outfile dist/cba-macos-arm64 && bun build src/cli/index.ts --compile --target=bun-darwin-x64 --outfile dist/cba-macos-x64",
|
|
44103
|
-
"build:bin:linux": "bun build src/cli/index.ts --compile --target=bun-linux-x64 --outfile dist/cba-linux-x64 && bun build src/cli/index.ts --compile --target=bun-linux-arm64 --outfile dist/cba-linux-arm64",
|
|
44104
|
-
"build:bin:windows": "bun build src/cli/index.ts --compile --target=bun-windows-x64 --outfile dist/cba-windows-x64.exe",
|
|
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 && 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)"`,
|
|
44105
44100
|
dev: "bun --watch src/cli/index.ts",
|
|
44106
44101
|
start: "bun dist/mcp/server.js",
|
|
44107
44102
|
typecheck: "tsc --noEmit",
|
|
@@ -73607,9 +73602,7 @@ function extractSourceName2(source) {
|
|
|
73607
73602
|
return basename5(source) || source;
|
|
73608
73603
|
}
|
|
73609
73604
|
var program2 = new Command;
|
|
73610
|
-
program2.name("cba").description(
|
|
73611
|
-
|
|
73612
|
-
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);
|
|
73613
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) => {
|
|
73614
73607
|
try {
|
|
73615
73608
|
if (options.verbose)
|
|
@@ -73752,11 +73745,14 @@ function formatAnalysisAsMarkdown(result) {
|
|
|
73752
73745
|
return lines.join(`
|
|
73753
73746
|
`);
|
|
73754
73747
|
}
|
|
73755
|
-
|
|
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 {
|
|
73756
73754
|
Promise.resolve().then(() => (init_server2(), exports_server)).catch((err) => {
|
|
73757
73755
|
console.error("Failed to start MCP server:", err);
|
|
73758
73756
|
process.exit(1);
|
|
73759
73757
|
});
|
|
73760
|
-
} else {
|
|
73761
|
-
program2.parse();
|
|
73762
73758
|
}
|
package/dist/mcp/server.js
CHANGED
|
@@ -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.
|
|
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",
|
|
@@ -70704,13 +70704,8 @@ var package_default = {
|
|
|
70704
70704
|
"AGENTS.md"
|
|
70705
70705
|
],
|
|
70706
70706
|
scripts: {
|
|
70707
|
-
build: "bun run build:js
|
|
70708
|
-
"build:js":
|
|
70709
|
-
"build:bin": "bun build src/cli/index.ts --compile --outfile dist/cba",
|
|
70710
|
-
"build:bin:all": "bun run build:bin:macos && bun run build:bin:linux && bun run build:bin:windows",
|
|
70711
|
-
"build:bin:macos": "bun build src/cli/index.ts --compile --target=bun-darwin-arm64 --outfile dist/cba-macos-arm64 && bun build src/cli/index.ts --compile --target=bun-darwin-x64 --outfile dist/cba-macos-x64",
|
|
70712
|
-
"build:bin:linux": "bun build src/cli/index.ts --compile --target=bun-linux-x64 --outfile dist/cba-linux-x64 && bun build src/cli/index.ts --compile --target=bun-linux-arm64 --outfile dist/cba-linux-arm64",
|
|
70713
|
-
"build:bin:windows": "bun build src/cli/index.ts --compile --target=bun-windows-x64 --outfile dist/cba-windows-x64.exe",
|
|
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 && 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)"`,
|
|
70714
70709
|
dev: "bun --watch src/cli/index.ts",
|
|
70715
70710
|
start: "bun dist/mcp/server.js",
|
|
70716
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
|
+
"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",
|
|
@@ -19,13 +19,8 @@
|
|
|
19
19
|
"AGENTS.md"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
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 &&
|
|
24
|
-
"build:bin": "bun build src/cli/index.ts --compile --outfile dist/cba",
|
|
25
|
-
"build:bin:all": "bun run build:bin:macos && bun run build:bin:linux && bun run build:bin:windows",
|
|
26
|
-
"build:bin:macos": "bun build src/cli/index.ts --compile --target=bun-darwin-arm64 --outfile dist/cba-macos-arm64 && bun build src/cli/index.ts --compile --target=bun-darwin-x64 --outfile dist/cba-macos-x64",
|
|
27
|
-
"build:bin:linux": "bun build src/cli/index.ts --compile --target=bun-linux-x64 --outfile dist/cba-linux-x64 && bun build src/cli/index.ts --compile --target=bun-linux-arm64 --outfile dist/cba-linux-arm64",
|
|
28
|
-
"build:bin:windows": "bun build src/cli/index.ts --compile --target=bun-windows-x64 --outfile dist/cba-windows-x64.exe",
|
|
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 && 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)\"",
|
|
29
24
|
"dev": "bun --watch src/cli/index.ts",
|
|
30
25
|
"start": "bun dist/mcp/server.js",
|
|
31
26
|
"typecheck": "tsc --noEmit",
|