codedev-mcp 3.2.1 → 3.2.3
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/dist/analyzers/api-contract.d.ts +1 -1
- package/dist/analyzers/api-contract.d.ts.map +1 -1
- package/dist/analyzers/api-contract.js +839 -13
- package/dist/analyzers/api-contract.js.map +1 -1
- package/dist/analyzers/db-schema.d.ts.map +1 -1
- package/dist/analyzers/db-schema.js +88 -30
- package/dist/analyzers/db-schema.js.map +1 -1
- package/dist/analyzers/dep-vuln.d.ts +1 -0
- package/dist/analyzers/dep-vuln.d.ts.map +1 -1
- package/dist/analyzers/dep-vuln.js +163 -25
- package/dist/analyzers/dep-vuln.js.map +1 -1
- package/dist/db/sqlite-store.d.ts +7 -0
- package/dist/db/sqlite-store.d.ts.map +1 -1
- package/dist/db/sqlite-store.js +34 -13
- package/dist/db/sqlite-store.js.map +1 -1
- package/dist/tools/quality.d.ts.map +1 -1
- package/dist/tools/quality.js +392 -80
- package/dist/tools/quality.js.map +1 -1
- package/dist/tools/security.d.ts.map +1 -1
- package/dist/tools/security.js +9 -2
- package/dist/tools/security.js.map +1 -1
- 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
|
|
@@ -19,7 +19,7 @@ export interface ApiEndpoint {
|
|
|
19
19
|
requestBody?: string;
|
|
20
20
|
responseType?: string;
|
|
21
21
|
description?: string;
|
|
22
|
-
source: 'openapi' | 'graphql' | 'trpc' | 'express' | 'fastapi' | 'nestjs';
|
|
22
|
+
source: 'openapi' | 'graphql' | 'trpc' | 'express' | 'fastapi' | 'nestjs' | 'flask' | 'django' | 'rails' | 'sinatra' | 'laravel' | 'spring' | 'jaxrs' | 'gin' | 'echo' | 'fiber' | 'chi' | 'actix' | 'rocket' | 'axum' | 'aspnet' | 'koa' | 'fastify' | 'hapi';
|
|
23
23
|
}
|
|
24
24
|
export interface ApiContractResult {
|
|
25
25
|
endpoints: ApiEndpoint[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-contract.d.ts","sourceRoot":"","sources":["../../src/analyzers/api-contract.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,MAAM,WAAW,WAAW;IAC1B,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAC9E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"api-contract.d.ts","sourceRoot":"","sources":["../../src/analyzers/api-contract.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,MAAM,WAAW,WAAW;IAC1B,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAC9E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAA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