codebase-analyzer-mcp 1.0.1 → 2.0.1
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 +9 -15
- package/.claude-plugin/plugin.json +5 -7
- package/LICENSE +1 -1
- package/README.md +39 -43
- package/dist/cli/index.js +3 -85
- package/dist/mcp/server.js +2 -79
- package/package.json +5 -5
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "jkcorrea-plugins",
|
|
3
3
|
"owner": {
|
|
4
|
-
"name": "
|
|
5
|
-
"url": "https://github.com/
|
|
4
|
+
"name": "jkcorrea",
|
|
5
|
+
"url": "https://github.com/jkcorrea"
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
|
-
"description": "AI-powered development tools by
|
|
8
|
+
"description": "AI-powered development tools by jkcorrea",
|
|
9
9
|
"version": "1.0.0"
|
|
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": "
|
|
15
|
+
"version": "2.0.0",
|
|
16
16
|
"author": {
|
|
17
|
-
"name": "
|
|
18
|
-
"url": "https://github.com/
|
|
17
|
+
"name": "jkcorrea",
|
|
18
|
+
"url": "https://github.com/jkcorrea"
|
|
19
19
|
},
|
|
20
|
-
"homepage": "https://github.com/
|
|
21
|
-
"tags": [
|
|
22
|
-
"codebase-analysis",
|
|
23
|
-
"architecture",
|
|
24
|
-
"patterns",
|
|
25
|
-
"gemini",
|
|
26
|
-
"mcp"
|
|
27
|
-
],
|
|
20
|
+
"homepage": "https://github.com/jkcorrea/codebase-analyzer-mcp",
|
|
21
|
+
"tags": ["codebase-analysis", "architecture", "patterns", "gemini", "mcp"],
|
|
28
22
|
"source": "."
|
|
29
23
|
}
|
|
30
24
|
]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebase-analyzer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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
|
-
"name": "
|
|
7
|
-
"url": "https://github.com/
|
|
6
|
+
"name": "jkcorrea",
|
|
7
|
+
"url": "https://github.com/jkcorrea"
|
|
8
8
|
},
|
|
9
|
-
"homepage": "https://github.com/
|
|
9
|
+
"homepage": "https://github.com/jkcorrea/codebase-analyzer-mcp",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"keywords": [
|
|
12
12
|
"codebase-analysis",
|
|
@@ -20,9 +20,7 @@
|
|
|
20
20
|
"mcpServers": {
|
|
21
21
|
"codebase-analyzer": {
|
|
22
22
|
"command": "node",
|
|
23
|
-
"args": [
|
|
24
|
-
"dist/mcp/server.js"
|
|
25
|
-
],
|
|
23
|
+
"args": ["dist/mcp/server.js"],
|
|
26
24
|
"cwd": "."
|
|
27
25
|
}
|
|
28
26
|
}
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# Codebase Analyzer MCP
|
|
2
2
|
|
|
3
|
-
[](https://github.com/
|
|
3
|
+
[](https://github.com/jkcorrea/codebase-analyzer-mcp)
|
|
4
4
|
[](https://www.npmjs.com/package/codebase-analyzer-mcp)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
7
7
|
Multi-layer codebase analysis with Gemini AI. Both an MCP server for Claude and a standalone CLI.
|
|
8
8
|
|
|
9
9
|
**Features:**
|
|
10
|
-
|
|
11
10
|
- Progressive disclosure - start cheap, drill down as needed
|
|
12
11
|
- Tree-sitter structural analysis (no LLM cost)
|
|
13
12
|
- Gemini semantic analysis (opt-in)
|
|
@@ -17,45 +16,42 @@ Multi-layer codebase analysis with Gemini AI. Both an MCP server for Claude and
|
|
|
17
16
|
|
|
18
17
|
## Installation
|
|
19
18
|
|
|
20
|
-
###
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npm install -g codebase-analyzer-mcp
|
|
24
|
-
bun install -g codebase-analyzer-mcp
|
|
25
|
-
pnpm install -g codebase-analyzer-mcp
|
|
26
|
-
yarn add -g codebase-analyzer-mcp
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Standalone Binary
|
|
19
|
+
### Standalone Binary (Recommended)
|
|
30
20
|
|
|
31
|
-
Download the binary for your platform from [Releases](https://github.com/
|
|
21
|
+
Download the binary for your platform from [Releases](https://github.com/jkcorrea/codebase-analyzer-mcp/releases):
|
|
32
22
|
|
|
33
23
|
```bash
|
|
34
24
|
# macOS (Apple Silicon)
|
|
35
|
-
curl -L https://github.com/
|
|
25
|
+
curl -L https://github.com/jkcorrea/codebase-analyzer-mcp/releases/latest/download/cba-macos-arm64 -o cba
|
|
36
26
|
chmod +x cba
|
|
37
27
|
sudo mv cba /usr/local/bin/
|
|
38
28
|
|
|
39
29
|
# macOS (Intel)
|
|
40
|
-
curl -L https://github.com/
|
|
30
|
+
curl -L https://github.com/jkcorrea/codebase-analyzer-mcp/releases/latest/download/cba-macos-x64 -o cba
|
|
41
31
|
chmod +x cba
|
|
42
32
|
sudo mv cba /usr/local/bin/
|
|
43
33
|
|
|
44
34
|
# Linux (x64)
|
|
45
|
-
curl -L https://github.com/
|
|
35
|
+
curl -L https://github.com/jkcorrea/codebase-analyzer-mcp/releases/latest/download/cba-linux-x64 -o cba
|
|
46
36
|
chmod +x cba
|
|
47
37
|
sudo mv cba /usr/local/bin/
|
|
48
38
|
|
|
49
39
|
# Linux (ARM64)
|
|
50
|
-
curl -L https://github.com/
|
|
40
|
+
curl -L https://github.com/jkcorrea/codebase-analyzer-mcp/releases/latest/download/cba-linux-arm64 -o cba
|
|
51
41
|
chmod +x cba
|
|
52
42
|
sudo mv cba /usr/local/bin/
|
|
53
43
|
```
|
|
54
44
|
|
|
45
|
+
### npm
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm install -g codebase-analyzer-mcp
|
|
49
|
+
```
|
|
50
|
+
|
|
55
51
|
### From Source (with Bun)
|
|
56
52
|
|
|
57
53
|
```bash
|
|
58
|
-
git clone https://github.com/
|
|
54
|
+
git clone https://github.com/jkcorrea/codebase-analyzer-mcp.git
|
|
59
55
|
cd codebase-analyzer-mcp
|
|
60
56
|
bun install && bun run build
|
|
61
57
|
```
|
|
@@ -102,11 +98,11 @@ cba capabilities
|
|
|
102
98
|
|
|
103
99
|
### Analysis Depths
|
|
104
100
|
|
|
105
|
-
| Depth
|
|
106
|
-
|
|
107
|
-
| `surface`
|
|
108
|
-
| `standard` | Medium | Low
|
|
109
|
-
| `deep`
|
|
101
|
+
| Depth | Speed | LLM Cost | Includes |
|
|
102
|
+
|-------|-------|----------|----------|
|
|
103
|
+
| `surface` | Fast | ~0 | Files, languages, entry points, modules |
|
|
104
|
+
| `standard` | Medium | Low | + symbols, imports, complexity metrics |
|
|
105
|
+
| `deep` | Slow | High | + semantic analysis, architecture insights |
|
|
110
106
|
|
|
111
107
|
## MCP Server Usage
|
|
112
108
|
|
|
@@ -166,13 +162,13 @@ npm install -g codebase-analyzer-mcp
|
|
|
166
162
|
|
|
167
163
|
### MCP Tools
|
|
168
164
|
|
|
169
|
-
| Tool
|
|
170
|
-
|
|
171
|
-
| `analyze_repo`
|
|
172
|
-
| `expand_section`
|
|
173
|
-
| `find_patterns`
|
|
174
|
-
| `trace_dataflow`
|
|
175
|
-
| `get_analysis_capabilities` | List available options
|
|
165
|
+
| Tool | Description |
|
|
166
|
+
|------|-------------|
|
|
167
|
+
| `analyze_repo` | Full analysis with progressive disclosure |
|
|
168
|
+
| `expand_section` | Drill into specific sections |
|
|
169
|
+
| `find_patterns` | Detect design/architecture patterns |
|
|
170
|
+
| `trace_dataflow` | Trace data flow through the system |
|
|
171
|
+
| `get_analysis_capabilities` | List available options |
|
|
176
172
|
|
|
177
173
|
## Output Structure
|
|
178
174
|
|
|
@@ -215,31 +211,31 @@ This package also works as a Claude Code plugin with agents, commands, and skill
|
|
|
215
211
|
|
|
216
212
|
```bash
|
|
217
213
|
# Direct install
|
|
218
|
-
claude /plugin install https://github.com/
|
|
214
|
+
claude /plugin install https://github.com/jkcorrea/codebase-analyzer-mcp
|
|
219
215
|
|
|
220
216
|
# Or add as marketplace first (if you want to browse/manage multiple plugins)
|
|
221
|
-
claude /plugin marketplace add https://github.com/
|
|
217
|
+
claude /plugin marketplace add https://github.com/jkcorrea/codebase-analyzer-mcp
|
|
222
218
|
claude /plugin install codebase-analyzer
|
|
223
219
|
```
|
|
224
220
|
|
|
225
221
|
### Plugin Commands
|
|
226
222
|
|
|
227
|
-
| Command
|
|
228
|
-
|
|
229
|
-
| `/analyze`
|
|
223
|
+
| Command | Description |
|
|
224
|
+
|---------|-------------|
|
|
225
|
+
| `/analyze` | Analyze a codebase |
|
|
230
226
|
| `/patterns` | Find design patterns |
|
|
231
|
-
| `/trace`
|
|
232
|
-
| `/explore`
|
|
233
|
-
| `/compare`
|
|
227
|
+
| `/trace` | Trace data flow |
|
|
228
|
+
| `/explore` | Quick exploration |
|
|
229
|
+
| `/compare` | Compare repositories |
|
|
234
230
|
|
|
235
231
|
### Plugin Agents
|
|
236
232
|
|
|
237
|
-
| Agent
|
|
238
|
-
|
|
233
|
+
| Agent | Purpose |
|
|
234
|
+
|-------|---------|
|
|
239
235
|
| `architecture-analyzer` | Full architecture analysis |
|
|
240
|
-
| `pattern-detective`
|
|
241
|
-
| `dataflow-tracer`
|
|
242
|
-
| `codebase-explorer`
|
|
236
|
+
| `pattern-detective` | Pattern detection |
|
|
237
|
+
| `dataflow-tracer` | Data flow tracing |
|
|
238
|
+
| `codebase-explorer` | Quick exploration |
|
|
243
239
|
|
|
244
240
|
## Development
|
|
245
241
|
|
package/dist/cli/index.js
CHANGED
|
@@ -44071,86 +44071,6 @@ var init_repo_loader = __esm(() => {
|
|
|
44071
44071
|
init_file_filter();
|
|
44072
44072
|
});
|
|
44073
44073
|
|
|
44074
|
-
// package.json
|
|
44075
|
-
var package_default;
|
|
44076
|
-
var init_package = __esm(() => {
|
|
44077
|
-
package_default = {
|
|
44078
|
-
name: "codebase-analyzer-mcp",
|
|
44079
|
-
version: "1.0.1",
|
|
44080
|
-
description: "Multi-layer codebase analysis with Gemini AI. MCP server + Claude plugin with progressive disclosure.",
|
|
44081
|
-
type: "module",
|
|
44082
|
-
main: "dist/mcp/server.js",
|
|
44083
|
-
bin: {
|
|
44084
|
-
cba: "dist/cli/index.js",
|
|
44085
|
-
"codebase-analyzer": "dist/cli/index.js"
|
|
44086
|
-
},
|
|
44087
|
-
files: [
|
|
44088
|
-
"dist/cli",
|
|
44089
|
-
"dist/mcp",
|
|
44090
|
-
"agents",
|
|
44091
|
-
"commands",
|
|
44092
|
-
"skills",
|
|
44093
|
-
".claude-plugin",
|
|
44094
|
-
"CLAUDE.md",
|
|
44095
|
-
"AGENTS.md"
|
|
44096
|
-
],
|
|
44097
|
-
scripts: {
|
|
44098
|
-
build: "bun run build:js && bun run build:bin",
|
|
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",
|
|
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",
|
|
44105
|
-
dev: "bun --watch src/cli/index.ts",
|
|
44106
|
-
start: "bun dist/mcp/server.js",
|
|
44107
|
-
typecheck: "tsc --noEmit",
|
|
44108
|
-
test: "bun test",
|
|
44109
|
-
cli: "bun src/cli/index.ts",
|
|
44110
|
-
cba: "bun src/cli/index.ts",
|
|
44111
|
-
prepublishOnly: "bun run build:js"
|
|
44112
|
-
},
|
|
44113
|
-
repository: {
|
|
44114
|
-
type: "git",
|
|
44115
|
-
url: "git+https://github.com/jaykaycodes/codebase-analyzer-mcp.git"
|
|
44116
|
-
},
|
|
44117
|
-
homepage: "https://github.com/jaykaycodes/codebase-analyzer-mcp#readme",
|
|
44118
|
-
bugs: {
|
|
44119
|
-
url: "https://github.com/jaykaycodes/codebase-analyzer-mcp/issues"
|
|
44120
|
-
},
|
|
44121
|
-
author: "Jake Correa",
|
|
44122
|
-
keywords: [
|
|
44123
|
-
"mcp",
|
|
44124
|
-
"gemini",
|
|
44125
|
-
"codebase",
|
|
44126
|
-
"analyzer",
|
|
44127
|
-
"architecture",
|
|
44128
|
-
"patterns",
|
|
44129
|
-
"claude",
|
|
44130
|
-
"ai",
|
|
44131
|
-
"progressive-disclosure",
|
|
44132
|
-
"tree-sitter"
|
|
44133
|
-
],
|
|
44134
|
-
license: "MIT",
|
|
44135
|
-
engines: {
|
|
44136
|
-
node: ">=20"
|
|
44137
|
-
},
|
|
44138
|
-
dependencies: {
|
|
44139
|
-
"@google/genai": "^1.38.0",
|
|
44140
|
-
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
44141
|
-
commander: "^14.0.2",
|
|
44142
|
-
glob: "^13.0.0",
|
|
44143
|
-
"web-tree-sitter": "^0.26.3",
|
|
44144
|
-
zod: "^4.3.6"
|
|
44145
|
-
},
|
|
44146
|
-
devDependencies: {
|
|
44147
|
-
"@types/bun": "latest",
|
|
44148
|
-
"@types/node": "^25.1.0",
|
|
44149
|
-
typescript: "^5.9.3"
|
|
44150
|
-
}
|
|
44151
|
-
};
|
|
44152
|
-
});
|
|
44153
|
-
|
|
44154
44074
|
// node_modules/zod/v4/core/core.js
|
|
44155
44075
|
function $constructor(name, initializer, params) {
|
|
44156
44076
|
function init(inst, def) {
|
|
@@ -73399,17 +73319,16 @@ var exports_server = {};
|
|
|
73399
73319
|
async function main() {
|
|
73400
73320
|
const transport = new StdioServerTransport;
|
|
73401
73321
|
await server.connect(transport);
|
|
73402
|
-
console.error(
|
|
73322
|
+
console.error("Codebase Analyzer MCP server v2.0.1 running on stdio");
|
|
73403
73323
|
}
|
|
73404
73324
|
var server;
|
|
73405
73325
|
var init_server2 = __esm(() => {
|
|
73406
73326
|
init_mcp();
|
|
73407
73327
|
init_stdio2();
|
|
73408
73328
|
init_tools();
|
|
73409
|
-
init_package();
|
|
73410
73329
|
server = new McpServer({
|
|
73411
73330
|
name: "codebase-analyzer",
|
|
73412
|
-
version:
|
|
73331
|
+
version: "2.0.1"
|
|
73413
73332
|
});
|
|
73414
73333
|
server.tool("get_analysis_capabilities", "Discover available analysis types, supported languages, and cost estimates. Call this first to understand what analysis options are available.", {}, async () => {
|
|
73415
73334
|
try {
|
|
@@ -73593,7 +73512,6 @@ var {
|
|
|
73593
73512
|
init_orchestrator();
|
|
73594
73513
|
init_repo_loader();
|
|
73595
73514
|
init_logger();
|
|
73596
|
-
init_package();
|
|
73597
73515
|
import { basename as basename5 } from "path";
|
|
73598
73516
|
function extractSourceName2(source) {
|
|
73599
73517
|
const githubMatch = source.match(/github\.com\/([^\/]+\/[^\/]+)/);
|
|
@@ -73605,7 +73523,7 @@ function extractSourceName2(source) {
|
|
|
73605
73523
|
var program2 = new Command;
|
|
73606
73524
|
program2.name("cba").description(`Codebase Analyzer - Multi-layer repository analysis with Gemini AI
|
|
73607
73525
|
|
|
73608
|
-
Use --mcp to run as MCP server for Claude Code`).version(
|
|
73526
|
+
Use --mcp to run as MCP server for Claude Code`).version("2.0.1");
|
|
73609
73527
|
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) => {
|
|
73610
73528
|
try {
|
|
73611
73529
|
if (options.verbose)
|
package/dist/mcp/server.js
CHANGED
|
@@ -70682,87 +70682,10 @@ If you cannot find the entry point, explain what you looked for in the summary a
|
|
|
70682
70682
|
}
|
|
70683
70683
|
}
|
|
70684
70684
|
}
|
|
70685
|
-
// package.json
|
|
70686
|
-
var package_default = {
|
|
70687
|
-
name: "codebase-analyzer-mcp",
|
|
70688
|
-
version: "1.0.1",
|
|
70689
|
-
description: "Multi-layer codebase analysis with Gemini AI. MCP server + Claude plugin with progressive disclosure.",
|
|
70690
|
-
type: "module",
|
|
70691
|
-
main: "dist/mcp/server.js",
|
|
70692
|
-
bin: {
|
|
70693
|
-
cba: "dist/cli/index.js",
|
|
70694
|
-
"codebase-analyzer": "dist/cli/index.js"
|
|
70695
|
-
},
|
|
70696
|
-
files: [
|
|
70697
|
-
"dist/cli",
|
|
70698
|
-
"dist/mcp",
|
|
70699
|
-
"agents",
|
|
70700
|
-
"commands",
|
|
70701
|
-
"skills",
|
|
70702
|
-
".claude-plugin",
|
|
70703
|
-
"CLAUDE.md",
|
|
70704
|
-
"AGENTS.md"
|
|
70705
|
-
],
|
|
70706
|
-
scripts: {
|
|
70707
|
-
build: "bun run build:js && bun run build:bin",
|
|
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",
|
|
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",
|
|
70714
|
-
dev: "bun --watch src/cli/index.ts",
|
|
70715
|
-
start: "bun dist/mcp/server.js",
|
|
70716
|
-
typecheck: "tsc --noEmit",
|
|
70717
|
-
test: "bun test",
|
|
70718
|
-
cli: "bun src/cli/index.ts",
|
|
70719
|
-
cba: "bun src/cli/index.ts",
|
|
70720
|
-
prepublishOnly: "bun run build:js"
|
|
70721
|
-
},
|
|
70722
|
-
repository: {
|
|
70723
|
-
type: "git",
|
|
70724
|
-
url: "git+https://github.com/jaykaycodes/codebase-analyzer-mcp.git"
|
|
70725
|
-
},
|
|
70726
|
-
homepage: "https://github.com/jaykaycodes/codebase-analyzer-mcp#readme",
|
|
70727
|
-
bugs: {
|
|
70728
|
-
url: "https://github.com/jaykaycodes/codebase-analyzer-mcp/issues"
|
|
70729
|
-
},
|
|
70730
|
-
author: "Jake Correa",
|
|
70731
|
-
keywords: [
|
|
70732
|
-
"mcp",
|
|
70733
|
-
"gemini",
|
|
70734
|
-
"codebase",
|
|
70735
|
-
"analyzer",
|
|
70736
|
-
"architecture",
|
|
70737
|
-
"patterns",
|
|
70738
|
-
"claude",
|
|
70739
|
-
"ai",
|
|
70740
|
-
"progressive-disclosure",
|
|
70741
|
-
"tree-sitter"
|
|
70742
|
-
],
|
|
70743
|
-
license: "MIT",
|
|
70744
|
-
engines: {
|
|
70745
|
-
node: ">=20"
|
|
70746
|
-
},
|
|
70747
|
-
dependencies: {
|
|
70748
|
-
"@google/genai": "^1.38.0",
|
|
70749
|
-
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
70750
|
-
commander: "^14.0.2",
|
|
70751
|
-
glob: "^13.0.0",
|
|
70752
|
-
"web-tree-sitter": "^0.26.3",
|
|
70753
|
-
zod: "^4.3.6"
|
|
70754
|
-
},
|
|
70755
|
-
devDependencies: {
|
|
70756
|
-
"@types/bun": "latest",
|
|
70757
|
-
"@types/node": "^25.1.0",
|
|
70758
|
-
typescript: "^5.9.3"
|
|
70759
|
-
}
|
|
70760
|
-
};
|
|
70761
|
-
|
|
70762
70685
|
// src/mcp/server.ts
|
|
70763
70686
|
var server = new McpServer({
|
|
70764
70687
|
name: "codebase-analyzer",
|
|
70765
|
-
version:
|
|
70688
|
+
version: "2.0.1"
|
|
70766
70689
|
});
|
|
70767
70690
|
server.tool("get_analysis_capabilities", "Discover available analysis types, supported languages, and cost estimates. Call this first to understand what analysis options are available.", {}, async () => {
|
|
70768
70691
|
try {
|
|
@@ -70923,7 +70846,7 @@ server.tool("trace_dataflow", "Trace data flow through the codebase from an entr
|
|
|
70923
70846
|
async function main() {
|
|
70924
70847
|
const transport = new StdioServerTransport;
|
|
70925
70848
|
await server.connect(transport);
|
|
70926
|
-
console.error(
|
|
70849
|
+
console.error("Codebase Analyzer MCP server v2.0.1 running on stdio");
|
|
70927
70850
|
}
|
|
70928
70851
|
main().catch((error48) => {
|
|
70929
70852
|
console.error("Fatal error:", error48);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebase-analyzer-mcp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
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",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
},
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
|
39
|
-
"url": "git+https://github.com/
|
|
39
|
+
"url": "git+https://github.com/jkcorrea/codebase-analyzer-mcp.git"
|
|
40
40
|
},
|
|
41
|
-
"homepage": "https://github.com/
|
|
41
|
+
"homepage": "https://github.com/jkcorrea/codebase-analyzer-mcp#readme",
|
|
42
42
|
"bugs": {
|
|
43
|
-
"url": "https://github.com/
|
|
43
|
+
"url": "https://github.com/jkcorrea/codebase-analyzer-mcp/issues"
|
|
44
44
|
},
|
|
45
|
-
"author": "
|
|
45
|
+
"author": "jkcorrea",
|
|
46
46
|
"keywords": [
|
|
47
47
|
"mcp",
|
|
48
48
|
"gemini",
|