fast-cxt-mcp 1.1.4 → 1.3.0
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 +3 -3
- package/package.json +4 -2
- package/src/core.mjs +1005 -55
- package/src/directory-scorer.mjs +1084 -0
- package/src/executor.mjs +37 -9
- package/src/project-path.mjs +47 -0
- package/src/server.mjs +167 -37
package/README.md
CHANGED
|
@@ -130,7 +130,7 @@ AI-driven semantic code search with tunable parameters.
|
|
|
130
130
|
| Parameter | Type | Required | Default | Description |
|
|
131
131
|
|-----------|------|----------|---------|-------------|
|
|
132
132
|
| `query` | string | Yes | — | Natural language search query |
|
|
133
|
-
| `project_path` | string |
|
|
133
|
+
| `project_path` | string | **Yes** | — | Absolute path to project root directory |
|
|
134
134
|
| `tree_depth` | integer | No | `3` | Directory tree depth for repo map (1-6). Higher = more context but larger payload. Auto falls back to lower depth if tree exceeds 250KB. Use 1-2 for huge monorepos (>5000 files), 3 for most projects, 4-6 for small projects. |
|
|
135
135
|
| `max_turns` | integer | No | `3` | Search rounds (1-5). More = deeper search but slower. Use 1-2 for simple lookups, 3 for most queries, 4-5 for complex analysis. |
|
|
136
136
|
| `max_results` | integer | No | `10` | Maximum number of files to return (1-30). Smaller = more focused, larger = broader exploration. |
|
|
@@ -138,7 +138,7 @@ AI-driven semantic code search with tunable parameters.
|
|
|
138
138
|
Returns:
|
|
139
139
|
1. **Relevant files** with line ranges
|
|
140
140
|
2. **Suggested search keywords** (rg patterns used during AI search)
|
|
141
|
-
3. **Diagnostic metadata** (`[config]` line showing actual tree_depth used, tree size, and whether fallback occurred)
|
|
141
|
+
3. **Diagnostic metadata** (`[config]` line showing project_path, actual tree_depth used, tree size, and whether fallback occurred)
|
|
142
142
|
|
|
143
143
|
Example output:
|
|
144
144
|
```
|
|
@@ -150,7 +150,7 @@ Found 3 relevant files.
|
|
|
150
150
|
|
|
151
151
|
grep keywords: authenticate, jwt.*verify, session.*token
|
|
152
152
|
|
|
153
|
-
[config] tree_depth=3, tree_size=12.5KB, max_turns=3
|
|
153
|
+
[config] project_path=/project, tree_depth=3, tree_size=12.5KB, max_turns=3
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
Error output includes status-specific hints:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fast-cxt-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "AI-driven semantic code search MCP server (Node.js)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/server.mjs",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"LICENSE"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
-
"start": "node src/server.mjs"
|
|
16
|
+
"start": "node src/server.mjs",
|
|
17
|
+
"test": "node --test"
|
|
17
18
|
},
|
|
18
19
|
"engines": {
|
|
19
20
|
"node": ">=18"
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
23
24
|
"@vscode/ripgrep": "^1.15.9",
|
|
25
|
+
"scule": "^1.3.0",
|
|
24
26
|
"sql.js": "^1.14.0",
|
|
25
27
|
"tree-node-cli": "^1.6.0",
|
|
26
28
|
"zod": "^3.23.0"
|