codedev-mcp 3.2.1 → 3.2.2
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/README.md +83 -6
- package/package.json +3 -1
- package/scripts/postinstall.js +40 -0
package/README.md
CHANGED
|
@@ -205,7 +205,8 @@ Add to `~/.gemini/settings.json`:
|
|
|
205
205
|
> **Note**: If Gemini CLI can't find `npx`, use the full path: `"command": "/usr/local/bin/npx"` (run `which npx` to find yours). On Windows, use `npx.cmd` or the full path from `where npx`.
|
|
206
206
|
|
|
207
207
|
### Cursor
|
|
208
|
-
|
|
208
|
+
|
|
209
|
+
**Recommended**: Add to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project-specific):
|
|
209
210
|
```json
|
|
210
211
|
{
|
|
211
212
|
"mcpServers": {
|
|
@@ -217,6 +218,21 @@ Add to `~/.cursor/mcp.json`:
|
|
|
217
218
|
}
|
|
218
219
|
```
|
|
219
220
|
|
|
221
|
+
**Alternative** (if installed locally via `npm install codedev-mcp`):
|
|
222
|
+
```json
|
|
223
|
+
{
|
|
224
|
+
"mcpServers": {
|
|
225
|
+
"codedev": {
|
|
226
|
+
"command": "node",
|
|
227
|
+
"args": ["./node_modules/codedev-mcp/dist/index.js"],
|
|
228
|
+
"cwd": "${workspaceFolder}"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
> **Note**: Using `npx` is recommended because it works whether the package is installed locally or globally, and automatically resolves the correct path.
|
|
235
|
+
|
|
220
236
|
### VS Code / GitHub Copilot
|
|
221
237
|
Command Palette → "MCP: Add Server", or add to `.vscode/settings.json`:
|
|
222
238
|
```json
|
|
@@ -269,17 +285,78 @@ Or with docker-compose:
|
|
|
269
285
|
PROJECT_DIR=/path/to/project docker-compose up
|
|
270
286
|
```
|
|
271
287
|
|
|
272
|
-
###
|
|
288
|
+
### Installation Methods
|
|
289
|
+
|
|
290
|
+
#### Method 1: Using npx (Recommended)
|
|
291
|
+
`npx -y codedev-mcp` automatically downloads and runs the latest version. No installation needed:
|
|
292
|
+
```json
|
|
293
|
+
{
|
|
294
|
+
"mcpServers": {
|
|
295
|
+
"codedev": {
|
|
296
|
+
"command": "npx",
|
|
297
|
+
"args": ["-y", "codedev-mcp"]
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
#### Method 2: Local Installation (Project-specific)
|
|
304
|
+
Install in your project for version control:
|
|
305
|
+
```bash
|
|
306
|
+
npm install codedev-mcp
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
Then configure using `npx` (works with local installs too):
|
|
310
|
+
```json
|
|
311
|
+
{
|
|
312
|
+
"mcpServers": {
|
|
313
|
+
"codedev": {
|
|
314
|
+
"command": "npx",
|
|
315
|
+
"args": ["-y", "codedev-mcp"]
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
Or reference directly (project-specific config):
|
|
322
|
+
```json
|
|
323
|
+
{
|
|
324
|
+
"mcpServers": {
|
|
325
|
+
"codedev": {
|
|
326
|
+
"command": "node",
|
|
327
|
+
"args": ["./node_modules/codedev-mcp/dist/index.js"],
|
|
328
|
+
"cwd": "${workspaceFolder}"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
#### Method 3: Global Installation
|
|
335
|
+
Install globally for system-wide access:
|
|
336
|
+
```bash
|
|
337
|
+
npm install -g codedev-mcp
|
|
338
|
+
```
|
|
273
339
|
|
|
274
|
-
|
|
340
|
+
Then configure:
|
|
341
|
+
```json
|
|
342
|
+
{
|
|
343
|
+
"mcpServers": {
|
|
344
|
+
"codedev": {
|
|
345
|
+
"command": "codedev-mcp"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
```
|
|
275
350
|
|
|
351
|
+
#### Version Pinning
|
|
352
|
+
To pin a specific version with npx:
|
|
276
353
|
```bash
|
|
277
|
-
npx -y codedev-mcp@3.1
|
|
354
|
+
npx -y codedev-mcp@3.2.1
|
|
278
355
|
```
|
|
279
356
|
|
|
280
|
-
Or install
|
|
357
|
+
Or install a specific version locally:
|
|
281
358
|
```bash
|
|
282
|
-
npm install
|
|
359
|
+
npm install codedev-mcp@3.2.1
|
|
283
360
|
```
|
|
284
361
|
|
|
285
362
|
## Working Directory
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codedev-mcp",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Universal code development MCP server — search, analyze, navigate, review any codebase. 29 tools, semantic search, AST parsing, security scanning, dead code detection, complexity heatmaps, DB schema parsing, API discovery, IaC analysis, CI/CD parsing, monorepo support. Zero API keys.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
+
"scripts",
|
|
12
13
|
"README.md",
|
|
13
14
|
"LICENSE",
|
|
14
15
|
"CHANGELOG.md",
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
"start": "node dist/index.js",
|
|
21
22
|
"inspect": "npx @modelcontextprotocol/inspector dist/index.js",
|
|
22
23
|
"prepublishOnly": "npm run build && npm audit --audit-level=high",
|
|
24
|
+
"postinstall": "node scripts/postinstall.js",
|
|
23
25
|
"test": "vitest",
|
|
24
26
|
"test:coverage": "vitest run --coverage",
|
|
25
27
|
"lint": "eslint \"src/**/*.{ts,tsx}\"",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Postinstall script to help users configure codedev-mcp
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { readFileSync } from 'fs';
|
|
8
|
+
import { join, dirname } from 'path';
|
|
9
|
+
import { fileURLToPath } from 'url';
|
|
10
|
+
|
|
11
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
+
const __dirname = dirname(__filename);
|
|
13
|
+
|
|
14
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf-8'));
|
|
15
|
+
|
|
16
|
+
console.log('\n✨ codedev-mcp installed successfully!\n');
|
|
17
|
+
console.log('📝 Next step: Add to your MCP configuration file:\n');
|
|
18
|
+
|
|
19
|
+
console.log('For Cursor (~/.cursor/mcp.json or .cursor/mcp.json):');
|
|
20
|
+
console.log(JSON.stringify({
|
|
21
|
+
mcpServers: {
|
|
22
|
+
codedev: {
|
|
23
|
+
command: 'npx',
|
|
24
|
+
args: ['-y', 'codedev-mcp'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
}, null, 2));
|
|
28
|
+
|
|
29
|
+
console.log('\nFor Claude Desktop (claude_desktop_config.json):');
|
|
30
|
+
console.log(JSON.stringify({
|
|
31
|
+
mcpServers: {
|
|
32
|
+
codedev: {
|
|
33
|
+
command: 'npx',
|
|
34
|
+
args: ['-y', 'codedev-mcp'],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
}, null, 2));
|
|
38
|
+
|
|
39
|
+
console.log('\n💡 Tip: Using `npx` works for both local and global installations.');
|
|
40
|
+
console.log('📚 Full documentation: https://github.com/Kranthithota/codedev-mcp\n');
|