lexic-mcp 0.1.26 → 0.2.1
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/bundle.cjs +39 -39
- package/dist/index.js +11 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,13 +48,13 @@ async function registerTools(lexicClient, triggers, domains) {
|
|
|
48
48
|
};
|
|
49
49
|
// Register core tools
|
|
50
50
|
const queryTool = createQueryTool(lexicClient, {
|
|
51
|
-
description: getDescription('
|
|
51
|
+
description: getDescription('knowledge.query')
|
|
52
52
|
});
|
|
53
53
|
const storeTool = createStoreTool(lexicClient, {
|
|
54
|
-
description: getDescription('
|
|
54
|
+
description: getDescription('knowledge.store')
|
|
55
55
|
});
|
|
56
56
|
const contextTool = createContextTool(lexicClient, {
|
|
57
|
-
description: getDescription('
|
|
57
|
+
description: getDescription('knowledge.get_context')
|
|
58
58
|
});
|
|
59
59
|
tools.set(queryTool.name, queryTool);
|
|
60
60
|
tools.set(storeTool.name, storeTool);
|
|
@@ -65,13 +65,13 @@ async function registerTools(lexicClient, triggers, domains) {
|
|
|
65
65
|
// Register admin tools (only if PAT is user-scoped)
|
|
66
66
|
if (lexicClient.isUserScoped()) {
|
|
67
67
|
const createProjectTool = createCreateProjectTool(lexicClient, {
|
|
68
|
-
description: getDescription('
|
|
68
|
+
description: getDescription('lexic.create_project')
|
|
69
69
|
});
|
|
70
70
|
const listProjectsTool = createListProjectsTool(lexicClient, {
|
|
71
|
-
description: getDescription('
|
|
71
|
+
description: getDescription('lexic.list_projects')
|
|
72
72
|
});
|
|
73
73
|
const getProjectInfoTool = createGetProjectInfoTool(lexicClient, {
|
|
74
|
-
description: getDescription('
|
|
74
|
+
description: getDescription('lexic.get_project_info')
|
|
75
75
|
});
|
|
76
76
|
tools.set(createProjectTool.name, createProjectTool);
|
|
77
77
|
tools.set(listProjectsTool.name, listProjectsTool);
|
|
@@ -271,9 +271,9 @@ async function runStdioServer() {
|
|
|
271
271
|
for (const [name, tool] of newTools) {
|
|
272
272
|
tools.set(name, tool);
|
|
273
273
|
}
|
|
274
|
-
// 6. Always ensure
|
|
275
|
-
if (!tools.has('
|
|
276
|
-
tools.set('
|
|
274
|
+
// 6. Always ensure reload.tools survives the reload
|
|
275
|
+
if (!tools.has('reload.tools')) {
|
|
276
|
+
tools.set('reload.tools', reloadTool);
|
|
277
277
|
}
|
|
278
278
|
// 7. Notify MCP client that tools changed
|
|
279
279
|
await server.sendToolListChanged();
|
|
@@ -298,9 +298,9 @@ async function runStdioServer() {
|
|
|
298
298
|
reloadInProgress = false;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
// Register
|
|
301
|
+
// Register reload.tools as a hardcoded core tool
|
|
302
302
|
const reloadTool = {
|
|
303
|
-
name: '
|
|
303
|
+
name: 'reload.tools',
|
|
304
304
|
description: 'Force reload of all MCP tool definitions from the Lexic API. Use this after tool configurations have been updated in the database, or if tools seem missing or outdated. Returns a summary of changes.',
|
|
305
305
|
inputSchema: {
|
|
306
306
|
type: 'object',
|