codebase-analyzer-mcp 1.0.0 → 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 +2 -8
- package/.claude-plugin/plugin.json +2 -4
- package/dist/cli/index.js +3 -85
- package/dist/mcp/server.js +2 -79
- package/package.json +1 -1
|
@@ -12,19 +12,13 @@
|
|
|
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
17
|
"name": "jkcorrea",
|
|
18
18
|
"url": "https://github.com/jkcorrea"
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/jkcorrea/codebase-analyzer-mcp",
|
|
21
|
-
"tags": [
|
|
22
|
-
"codebase-analysis",
|
|
23
|
-
"architecture",
|
|
24
|
-
"patterns",
|
|
25
|
-
"gemini",
|
|
26
|
-
"mcp"
|
|
27
|
-
],
|
|
21
|
+
"tags": ["codebase-analysis", "architecture", "patterns", "gemini", "mcp"],
|
|
28
22
|
"source": "."
|
|
29
23
|
}
|
|
30
24
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
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
6
|
"name": "jkcorrea",
|
|
@@ -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/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.0",
|
|
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/jkcorrea/codebase-analyzer-mcp.git"
|
|
44116
|
-
},
|
|
44117
|
-
homepage: "https://github.com/jkcorrea/codebase-analyzer-mcp#readme",
|
|
44118
|
-
bugs: {
|
|
44119
|
-
url: "https://github.com/jkcorrea/codebase-analyzer-mcp/issues"
|
|
44120
|
-
},
|
|
44121
|
-
author: "jkcorrea",
|
|
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.0",
|
|
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/jkcorrea/codebase-analyzer-mcp.git"
|
|
70725
|
-
},
|
|
70726
|
-
homepage: "https://github.com/jkcorrea/codebase-analyzer-mcp#readme",
|
|
70727
|
-
bugs: {
|
|
70728
|
-
url: "https://github.com/jkcorrea/codebase-analyzer-mcp/issues"
|
|
70729
|
-
},
|
|
70730
|
-
author: "jkcorrea",
|
|
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