@agentbrain/mcp-server 1.4.67 → 1.4.70

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.
@@ -1,7 +1,10 @@
1
1
  // MCP tool: setup_repo - scan repo and return data for agent to generate context
2
2
  import { scanRepository, readFileContent, installPostCommitHook, isGitRepository } from '@agentbrain/core';
3
+ import { detectLanguage } from '@agentbrain/parser';
3
4
  import { resolve } from 'node:path';
4
5
  import { homedir } from 'node:os';
6
+ import { existsSync, readFileSync } from 'node:fs';
7
+ import { join } from 'node:path';
5
8
  /**
6
9
  * Expand path: handles ~, relative paths, etc.
7
10
  */
@@ -39,19 +42,151 @@ export async function setupRepo(input) {
39
42
  try {
40
43
  await installPostCommitHook(expandedPath);
41
44
  hookInstalled = true;
42
- console.error('[setup_repo] Hook installed successfully');
45
+ // Silent success - only log errors
43
46
  }
44
47
  catch (err) {
45
48
  hookInstalled = false;
46
49
  console.error('[setup_repo] Hook installation failed:', err);
47
50
  }
48
51
  }
52
+ // Detect repo characteristics
53
+ const languages = Array.from(new Set(scanResult.relevantFiles
54
+ .map((f) => detectLanguage(f.path))
55
+ .filter((l) => l !== 'unknown')));
56
+ // Detect dependency files
57
+ const dependencyFileNames = ['package.json', 'requirements.txt', 'go.mod', 'Gemfile', 'Cargo.toml', 'pom.xml', 'build.gradle'];
58
+ const dependencyFiles = scanResult.relevantFiles
59
+ .filter((f) => dependencyFileNames.includes(f.path.split('/').pop() || ''))
60
+ .map((f) => f.path);
61
+ // Detect schema files
62
+ const schemaFiles = scanResult.relevantFiles
63
+ .filter((f) => f.path.includes('schema') ||
64
+ f.path.includes('prisma') ||
65
+ f.path.includes('migrations') ||
66
+ f.path.endsWith('.prisma') ||
67
+ f.path.includes('db/migrate'))
68
+ .map((f) => f.path);
69
+ // Check for test directories or test files
70
+ const hasTests = scanResult.relevantFiles.some((f) => f.path.includes('test') ||
71
+ f.path.includes('spec') ||
72
+ f.path.includes('__tests__') ||
73
+ f.path.endsWith('.test.ts') ||
74
+ f.path.endsWith('.test.js') ||
75
+ f.path.endsWith('.spec.ts') ||
76
+ f.path.endsWith('.spec.js'));
77
+ // Check for Docker
78
+ const hasDocker = existsSync(join(expandedPath, 'Dockerfile')) || existsSync(join(expandedPath, 'docker-compose.yml'));
79
+ // Check for CI/CD
80
+ const hasCICD = existsSync(join(expandedPath, '.github/workflows')) ||
81
+ existsSync(join(expandedPath, '.gitlab-ci.yml')) ||
82
+ existsSync(join(expandedPath, '.circleci/config.yml')) ||
83
+ existsSync(join(expandedPath, 'Jenkinsfile'));
84
+ // Check for .env.example
85
+ const hasEnvExample = existsSync(join(expandedPath, '.env.example'));
86
+ // Detect frameworks from package.json if it exists
87
+ const frameworks = [];
88
+ const packageJsonPath = join(expandedPath, 'package.json');
89
+ if (existsSync(packageJsonPath)) {
90
+ try {
91
+ const pkg = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
92
+ const deps = { ...pkg.dependencies, ...pkg.devDependencies };
93
+ if (deps['react'])
94
+ frameworks.push('React');
95
+ if (deps['next'])
96
+ frameworks.push('Next.js');
97
+ if (deps['vue'])
98
+ frameworks.push('Vue');
99
+ if (deps['@angular/core'])
100
+ frameworks.push('Angular');
101
+ if (deps['express'])
102
+ frameworks.push('Express');
103
+ if (deps['@nestjs/core'])
104
+ frameworks.push('NestJS');
105
+ if (deps['fastify'])
106
+ frameworks.push('Fastify');
107
+ if (deps['prisma'])
108
+ frameworks.push('Prisma');
109
+ if (deps['typeorm'])
110
+ frameworks.push('TypeORM');
111
+ }
112
+ catch (error) {
113
+ // Skip if can't parse package.json
114
+ }
115
+ }
116
+ // Detect Python frameworks from requirements.txt
117
+ const requirementsPath = join(expandedPath, 'requirements.txt');
118
+ if (existsSync(requirementsPath)) {
119
+ try {
120
+ const reqs = readFileSync(requirementsPath, 'utf-8').toLowerCase();
121
+ if (reqs.includes('django'))
122
+ frameworks.push('Django');
123
+ if (reqs.includes('flask'))
124
+ frameworks.push('Flask');
125
+ if (reqs.includes('fastapi'))
126
+ frameworks.push('FastAPI');
127
+ }
128
+ catch (error) {
129
+ // Skip
130
+ }
131
+ }
132
+ // Detect Go frameworks from go.mod
133
+ const goModPath = join(expandedPath, 'go.mod');
134
+ if (existsSync(goModPath)) {
135
+ try {
136
+ const goMod = readFileSync(goModPath, 'utf-8').toLowerCase();
137
+ if (goMod.includes('gin-gonic/gin'))
138
+ frameworks.push('Gin');
139
+ if (goMod.includes('gofiber/fiber'))
140
+ frameworks.push('Fiber');
141
+ if (goMod.includes('labstack/echo'))
142
+ frameworks.push('Echo');
143
+ }
144
+ catch (error) {
145
+ // Skip
146
+ }
147
+ }
148
+ // Detect Ruby frameworks from Gemfile
149
+ const gemfilePath = join(expandedPath, 'Gemfile');
150
+ if (existsSync(gemfilePath)) {
151
+ try {
152
+ const gemfile = readFileSync(gemfilePath, 'utf-8').toLowerCase();
153
+ if (gemfile.includes('rails'))
154
+ frameworks.push('Rails');
155
+ if (gemfile.includes('sinatra'))
156
+ frameworks.push('Sinatra');
157
+ }
158
+ catch (error) {
159
+ // Skip
160
+ }
161
+ }
162
+ const detected = {
163
+ languages,
164
+ frameworks,
165
+ hasTests,
166
+ dependencyFiles,
167
+ schemaFiles,
168
+ hasDocker,
169
+ hasCICD,
170
+ hasEnvExample,
171
+ };
172
+ const detectedInfo = `
173
+ DETECTED CHARACTERISTICS:
174
+ - Languages: ${detected.languages.join(', ') || 'none'}
175
+ - Frameworks: ${detected.frameworks.join(', ') || 'none'}
176
+ - Has tests: ${detected.hasTests ? 'yes' : 'no'}
177
+ - Dependency files: ${detected.dependencyFiles.join(', ') || 'none'}
178
+ - Schema files: ${detected.schemaFiles.join(', ') || 'none'}
179
+ - Docker: ${detected.hasDocker ? 'yes' : 'no'}
180
+ - CI/CD: ${detected.hasCICD ? 'yes' : 'no'}
181
+ - .env.example: ${detected.hasEnvExample ? 'yes' : 'no'}
182
+ `;
49
183
  const instructions = `You MUST follow these exact steps in order.
50
184
  Do not deviate. Do not skip steps. Do not generate files yourself.
51
-
185
+ ${detectedInfo}
52
186
  STEP 1: Read the file tree and key files above carefully.
53
187
 
54
- STEP 2: Generate exactly THREE documents based on what you read:
188
+ STEP 2: Generate context documents based on what you read.
189
+ Generate AT LEAST these three core documents:
55
190
 
56
191
  DOCUMENT 1 — context.md
57
192
  Write a concise architecture overview covering:
@@ -76,12 +211,21 @@ STEP 2: Generate exactly THREE documents based on what you read:
76
211
  - Authentication/authorization patterns
77
212
  - Anything a new developer must know to write code that fits
78
213
 
79
- STEP 3: Call save_context() with ALL THREE documents.
80
- Use these exact parameter names:
81
- - context: [your context.md content]
82
- - dependency_map: [your dependency-map.md content]
83
- - patterns: [your patterns.md content]
214
+ OPTIONAL: Generate additional documents based on detected characteristics:
215
+ ${detected.schemaFiles.length > 0 ? '- schema.md (detected schema files)' : ''}
216
+ ${detected.hasTests ? '- testing.md (detected test files)' : ''}
217
+ ${detected.hasEnvExample ? '- environment.md (detected .env.example)' : ''}
218
+ ${detected.dependencyFiles.length > 0 ? '- dependencies.md (detected dependency files)' : ''}
219
+
220
+ STEP 3: Call save_context() with your documents.
84
221
  - repo_path: "${expandedPath}"
222
+ - files: [
223
+ { name: "context.md", content: "..." },
224
+ { name: "dependency-map.md", content: "..." },
225
+ { name: "patterns.md", content: "..." },
226
+ { name: "schema.md", content: "..." }, // optional
227
+ { name: "testing.md", content: "..." } // optional
228
+ ]
85
229
 
86
230
  STEP 4: Call load_context() with repo_path: "${expandedPath}"
87
231
  to confirm context loads successfully from cache.
@@ -94,6 +238,7 @@ ${hookInstalled
94
238
  file_tree: fileTree,
95
239
  key_files: keyFiles,
96
240
  hook_installed: hookInstalled,
241
+ detected,
97
242
  instructions,
98
243
  };
99
244
  }
@@ -1 +1 @@
1
- {"version":3,"file":"setup-repo.js","sourceRoot":"","sources":["../../src/tools/setup-repo.ts"],"names":[],"mappings":"AAAA,iFAAiF;AAEjF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,qBAAqB,EAAE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S,EAAE,QAAQ;QACnB,cAAc,EAAE,aAAa;QAC7B,QAAQ;QACR,YAAY;KACb,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,YAAY;IAClB,WAAW,EACT,+LAA+L;IACjM,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentbrain/mcp-server",
3
- "version": "1.4.67",
3
+ "version": "1.4.70",
4
4
  "description": "Model Context Protocol server for AgentBrain - connect Claude, Cursor, and Windsurf to repository intelligence",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",