@philau2512/fast-context-mcp 1.5.4 → 1.5.5
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/package.json +1 -1
- package/src/server.mjs +19 -11
package/package.json
CHANGED
package/src/server.mjs
CHANGED
|
@@ -91,16 +91,23 @@ export function buildFastContextSearchTool({
|
|
|
91
91
|
const runSearchWithContent = deps.searchWithContent || searchWithContent;
|
|
92
92
|
const validatePath = deps.validateProjectPath || validateProjectPath;
|
|
93
93
|
const description =
|
|
94
|
-
"
|
|
95
|
-
"Locates relevant files, exact line ranges, and code regions from natural language
|
|
94
|
+
"Primary tool for semantic codebase search, context discovery, and verifying logic existence. " +
|
|
95
|
+
"Locates relevant files, exact line ranges, and code regions from natural language or domain concepts in a single step, " +
|
|
96
96
|
"without needing manual grep trials or knowing exact filenames.\n\n" +
|
|
97
|
-
"
|
|
98
|
-
"-
|
|
99
|
-
"
|
|
100
|
-
"-
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
97
|
+
"MANDATORY REQUIREMENT:\n" +
|
|
98
|
+
"- 'project_path' is strictly REQUIRED. You MUST provide the absolute path to the project root directory when calling this tool.\n\n" +
|
|
99
|
+
"RECOMMENDED FOR:\n" +
|
|
100
|
+
"- Verifying feature/data existence: Checking whether a business rule, model, seed data, configuration, or API already exists (e.g. 'check if warrior coefficient seed data exists', 'has rate limiting been added').\n" +
|
|
101
|
+
"- Finding conceptual business logic: Locating where behavior lives across the codebase without guessing file names.\n" +
|
|
102
|
+
"- Tracing multi-file flows: Getting high-relevance entry points, line ranges, and suggested grep keywords before reading code.\n\n" +
|
|
103
|
+
"DO NOT USE WHEN (Avoid Overuse):\n" +
|
|
104
|
+
"- Target file is already known, opened, or specified by the user (use view_file / read_file directly).\n" +
|
|
105
|
+
"- Exact symbol search: Searching for an exact, known function/class/variable name (use grep instead).\n" +
|
|
106
|
+
"- Directory exploration: Simply listing files in a directory (use list_dir/glob instead).\n" +
|
|
107
|
+
"- Single-file localized edits or lint fixes.\n\n" +
|
|
108
|
+
"QUERY TIPS:\n" +
|
|
109
|
+
"- For best semantic search quality, write the query primarily in English; keep local-language domain terms when needed (e.g. 'seed data for sale he so chien binh').\n" +
|
|
110
|
+
"- Use tree_depth/max_turns/max_results for task-level tuning; use exclude_paths to reduce payload or noise.\n" +
|
|
104
111
|
(config.includeSnippetsExplicitlySet
|
|
105
112
|
? `- include_code_snippets: Server-configured default is ${config.includeSnippets}. Do NOT override unless explicitly asked by the user.\n`
|
|
106
113
|
: "- include_code_snippets: Default false (lightweight mode, ~2-5KB output). " +
|
|
@@ -115,8 +122,9 @@ export function buildFastContextSearchTool({
|
|
|
115
122
|
'Add local-language business terms only when needed.'
|
|
116
123
|
),
|
|
117
124
|
project_path: projectPathSchema.describe(
|
|
118
|
-
"Absolute path to project root directory (required). " +
|
|
119
|
-
"
|
|
125
|
+
"MANDATORY: Absolute path to project root directory (required). " +
|
|
126
|
+
"You MUST supply this parameter explicitly on every call (e.g. /Users/username/projects/myproject or C:/Users/username/projects/myproject). " +
|
|
127
|
+
"Never leave empty or omit."
|
|
120
128
|
),
|
|
121
129
|
tree_depth: z
|
|
122
130
|
.number()
|