codesearch-mcp 0.0.11-alpha → 0.0.12-alpha
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/dist/app.js +1 -1
- package/docker/docker-compose.yml +4 -1
- package/package.json +4 -2
package/dist/app.js
CHANGED
|
@@ -47,7 +47,7 @@ async function main() {
|
|
|
47
47
|
const isIndex = argv1 === 'rag-index' || process.argv[2] === 'index';
|
|
48
48
|
const isMcp = argv1 === 'rag-mcp' || process.argv[2] === 'mcp';
|
|
49
49
|
const isSetup = argv1 === 'rag-setup' || process.argv[2] === 'setup';
|
|
50
|
-
const isBackfill = argv1 === 'rag-index' && process.argv[2] === 'backfill';
|
|
50
|
+
const isBackfill = (argv1 === 'rag-index' || process.argv[2] === 'backfill') && process.argv[2] === 'backfill';
|
|
51
51
|
const mode = isBackfill ? 'backfill' : isIndex ? 'index' : isMcp ? 'mcp' : isSetup ? 'setup' : (process.argv[2] ?? '');
|
|
52
52
|
if (process.argv.includes('--help') || process.argv.includes('-h')) {
|
|
53
53
|
(0, help_1.printHelp)(argv1 !== 'app.js' ? argv1 : mode);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
name: codesearch-mcp
|
|
2
|
+
|
|
1
3
|
services:
|
|
2
4
|
db:
|
|
3
5
|
image: pgvector/pgvector:pg17
|
|
@@ -8,7 +10,7 @@ services:
|
|
|
8
10
|
ports:
|
|
9
11
|
- "5433:5432"
|
|
10
12
|
volumes:
|
|
11
|
-
-
|
|
13
|
+
- pgdata:/var/lib/postgresql/data
|
|
12
14
|
|
|
13
15
|
ollama:
|
|
14
16
|
image: ollama/ollama
|
|
@@ -18,4 +20,5 @@ services:
|
|
|
18
20
|
- ollama_data:/root/.ollama
|
|
19
21
|
|
|
20
22
|
volumes:
|
|
23
|
+
pgdata:
|
|
21
24
|
ollama_data:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codesearch-mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12-alpha",
|
|
4
4
|
"description": "Local semantic codebase search via MCP — indexes projects into pgvector, exposes search to Claude",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/app.js",
|
|
@@ -21,9 +21,11 @@
|
|
|
21
21
|
"start:mcp": "ts-node app.ts mcp",
|
|
22
22
|
"index:workspace": "ts-node app.ts index",
|
|
23
23
|
"index:reindex": "ts-node app.ts index --reindex",
|
|
24
|
+
"index:backfill": "ts-node app.ts backfill",
|
|
24
25
|
"typecheck": "tsc --noEmit",
|
|
25
26
|
"test": "vitest run",
|
|
26
|
-
"test:watch": "vitest"
|
|
27
|
+
"test:watch": "vitest",
|
|
28
|
+
"verify": "tsc --noEmit && vitest run"
|
|
27
29
|
},
|
|
28
30
|
"dependencies": {
|
|
29
31
|
"@inquirer/prompts": "^8.4.1",
|