@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server.mjs +19 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@philau2512/fast-context-mcp",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "AI-driven semantic code search MCP server (Node.js) — Windsurf/Devin protocol",
5
5
  "type": "module",
6
6
  "main": "src/server.mjs",
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
- "Fast semantic codebase search and context discovery. " +
95
- "Locates relevant files, exact line ranges, and code regions from natural language descriptions in a single step, " +
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
- "Recommended for:\n" +
98
- "- Finding feature implementations, business logic, and API flows (e.g. 'where is payment webhook handled', 'auth token refresh flow').\n" +
99
- "- Exploring unfamiliar codebases or locating where conceptual logic lives.\n" +
100
- "- Getting high-relevance entry points, line ranges, and suggested grep keywords before reading code.\n\n" +
101
- "Use exact-match grep instead only when searching for a known, specific symbol name or literal string.\n\n" +
102
- "For best semantic search quality, write the query primarily in English; add local-language business terms only when needed.\n" +
103
- "Use tree_depth/max_turns/max_results for task-level tuning; use exclude_paths to reduce payload or noise.\n" +
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
- "Example: /Users/username/projects/myproject or C:/Users/username/projects/myproject"
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()