agentic-knowledge-mcp 1.2.1 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-knowledge-mcp",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "A Model Context Protocol server for agentic knowledge guidance with web-based documentation loading and intelligent search instructions",
5
5
  "type": "module",
6
6
  "main": "packages/cli/dist/index.js",
@@ -29,9 +29,9 @@
29
29
  "commander": "^12.0.0",
30
30
  "js-yaml": "4.1.0",
31
31
  "ora": "^8.0.1",
32
- "@codemcp/knowledge": "1.2.1",
33
- "@codemcp/knowledge-content-loader": "1.2.1",
34
- "@codemcp/knowledge-core": "1.2.1"
32
+ "@codemcp/knowledge": "1.4.0",
33
+ "@codemcp/knowledge-content-loader": "1.4.0",
34
+ "@codemcp/knowledge-core": "1.4.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@eslint/js": "^9.34.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/knowledge-cli",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "Command-line interface for agentic knowledge web content management",
5
5
  "type": "module",
6
6
  "main": "dist/exports.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/knowledge-content-loader",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "Web content loading and metadata management for agentic knowledge system",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -142,7 +142,7 @@ export declare class KnowledgeError extends Error {
142
142
  /**
143
143
  * Default instruction template
144
144
  */
145
- export declare const DEFAULT_TEMPLATE = "Use text search tools (grep, rg, ripgrep) to search for {{keywords}} in {{local_path}}. Try broader terms if needed. Skip: node_modules/, .git/, build/, dist/.";
145
+ export declare const DEFAULT_TEMPLATE = "Use available text search tools to search for {{keywords}} in {{local_path}} and its sub folders. Try broader terms if needed. Skip: node_modules/, .git/, build/, dist/.";
146
146
  /**
147
147
  * Allowed template variables that can be used in instruction templates
148
148
  */
@@ -31,7 +31,7 @@ export class KnowledgeError extends Error {
31
31
  /**
32
32
  * Default instruction template
33
33
  */
34
- export const DEFAULT_TEMPLATE = `Use text search tools (grep, rg, ripgrep) to search for {{keywords}} in {{local_path}}. Try broader terms if needed. Skip: node_modules/, .git/, build/, dist/.`;
34
+ export const DEFAULT_TEMPLATE = `Use available text search tools to search for {{keywords}} in {{local_path}} and its sub folders. Try broader terms if needed. Skip: node_modules/, .git/, build/, dist/.`;
35
35
  /**
36
36
  * Allowed template variables that can be used in instruction templates
37
37
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/knowledge-core",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "Core functionality for agentic knowledge guidance system",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -145,15 +145,7 @@ After configuring, the tool will show available docsets here.`,
145
145
 
146
146
  📚 **AVAILABLE DOCSETS:**
147
147
  ${docsetInfo}
148
-
149
- 🔍 **STRUCTURED RESPONSE:**
150
- Returns JSON object with:
151
- - instructions: Search guidance text
152
- - search_terms: Primary keywords to search for
153
- - generalized_search_terms: Broader terms for context
154
- - path: Local directory path to search in
155
-
156
- Use the path and search terms with your text search tools (grep, rg, ripgrep, find).`;
148
+ `;
157
149
  return {
158
150
  tools: [
159
151
  {
@@ -223,10 +215,7 @@ Use the path and search terms with your text search tools (grep, rg, ripgrep, fi
223
215
  if (!docset) {
224
216
  const availableIds = config.docsets.map((d) => d.id).join(", ");
225
217
  throw new Error(`Docset '${docset_id}' not found.\n\n` +
226
- `Available docsets: ${availableIds}\n\n` +
227
- `To create a new docset:\n` +
228
- `agentic-knowledge create --preset git-repo --id ${docset_id} --name "My Docs" --url <repo-url>\n` +
229
- `agentic-knowledge init ${docset_id}`);
218
+ `Available docsets: ${availableIds}\n\n`);
230
219
  }
231
220
  // Determine path calculation method and validate initialization
232
221
  const primarySource = docset.sources?.[0];
@@ -242,9 +231,7 @@ Use the path and search terms with your text search tools (grep, rg, ripgrep, fi
242
231
  throw new Error(`Docset '${docset_id}' is not initialized.\n\n` +
243
232
  `The docset is configured but hasn't been initialized yet.\n\n` +
244
233
  `To initialize this docset:\n` +
245
- `agentic-knowledge init ${docset_id}\n\n` +
246
- `To check status of all docsets:\n` +
247
- `agentic-knowledge status`);
234
+ `npx agentic-knowledge-mcp init ${docset_id}\n\n`);
248
235
  }
249
236
  // Return the symlinked path for consistency
250
237
  localPath = resolve(configDir, "docsets", docset.id);
@@ -263,9 +250,7 @@ Use the path and search terms with your text search tools (grep, rg, ripgrep, fi
263
250
  throw new Error(`Docset '${docset_id}' is not initialized.\n\n` +
264
251
  `The docset is configured but hasn't been initialized yet.\n\n` +
265
252
  `To initialize this docset:\n` +
266
- `agentic-knowledge init ${docset_id}\n\n` +
267
- `To check status of all docsets:\n` +
268
- `agentic-knowledge status`);
253
+ `npx agentic-knowledge-mcp init ${docset_id}\n\n`);
269
254
  }
270
255
  }
271
256
  else {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/knowledge",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "MCP server implementation for agentic knowledge guidance system",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",