@dudamel/mcp-knowledge 2026.928.1 → 2026.930.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/index.js +9 -6
- package/dist/stdio-server.js +9 -6
- package/dist/tools/knowledge.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -158,7 +158,7 @@ function registerKnowledgeTools(server, client, ctx) {
|
|
|
158
158
|
server.registerTool(
|
|
159
159
|
"list-knowledge-sources",
|
|
160
160
|
{
|
|
161
|
-
description: "List knowledge sources configured for agents
|
|
161
|
+
description: "List knowledge sources configured for agents: name, sync type, integration, sync interval and last-sync info. A source is failing when lastSyncError is set, syncing while syncing is true, and never syncs automatically when syncIntervalSeconds is null.",
|
|
162
162
|
annotations: { readOnlyHint: true }
|
|
163
163
|
},
|
|
164
164
|
async () => {
|
|
@@ -213,7 +213,7 @@ function registerKnowledgeTools(server, client, ctx) {
|
|
|
213
213
|
server.registerTool(
|
|
214
214
|
"sync-knowledge-source",
|
|
215
215
|
{
|
|
216
|
-
description: "Trigger a sync for a knowledge source.
|
|
216
|
+
description: "Trigger a sync for a knowledge source. Returns as soon as the sync is queued; it runs in the background (minutes for a large repo). Check the outcome afterwards with get-knowledge-source (syncing, lastSyncAt, lastSyncError).",
|
|
217
217
|
inputSchema: {
|
|
218
218
|
id: z.string().describe("Knowledge source ID (UUID)")
|
|
219
219
|
},
|
|
@@ -254,16 +254,19 @@ function registerKnowledgeTools(server, client, ctx) {
|
|
|
254
254
|
server.registerTool(
|
|
255
255
|
"update-knowledge-source",
|
|
256
256
|
{
|
|
257
|
-
description: "Update a knowledge source
|
|
257
|
+
description: "Update a knowledge source: toggle useAll, or set how often it syncs automatically (syncIntervalSeconds; null = never, manual syncs only).",
|
|
258
258
|
inputSchema: {
|
|
259
259
|
id: z.string().describe("Knowledge source ID (UUID)"),
|
|
260
260
|
useAll: z.boolean().optional().describe("Whether to include all files"),
|
|
261
|
-
|
|
261
|
+
syncIntervalSeconds: z.number().int().min(60).nullable().optional().describe("Seconds between automatic syncs (min 60); null = never sync automatically")
|
|
262
262
|
},
|
|
263
263
|
annotations: { readOnlyHint: false, destructiveHint: false }
|
|
264
264
|
},
|
|
265
|
-
async ({ id, useAll,
|
|
266
|
-
const result = await client.put(`/api/knowledge-sources/${id}`, {
|
|
265
|
+
async ({ id, useAll, syncIntervalSeconds }) => {
|
|
266
|
+
const result = await client.put(`/api/knowledge-sources/${id}`, {
|
|
267
|
+
useAll,
|
|
268
|
+
syncIntervalSeconds
|
|
269
|
+
});
|
|
267
270
|
return jsonResult(result);
|
|
268
271
|
}
|
|
269
272
|
);
|
package/dist/stdio-server.js
CHANGED
|
@@ -201,7 +201,7 @@ function registerKnowledgeTools(server2, client, ctx2) {
|
|
|
201
201
|
server2.registerTool(
|
|
202
202
|
"list-knowledge-sources",
|
|
203
203
|
{
|
|
204
|
-
description: "List knowledge sources configured for agents
|
|
204
|
+
description: "List knowledge sources configured for agents: name, sync type, integration, sync interval and last-sync info. A source is failing when lastSyncError is set, syncing while syncing is true, and never syncs automatically when syncIntervalSeconds is null.",
|
|
205
205
|
annotations: { readOnlyHint: true }
|
|
206
206
|
},
|
|
207
207
|
async () => {
|
|
@@ -256,7 +256,7 @@ function registerKnowledgeTools(server2, client, ctx2) {
|
|
|
256
256
|
server2.registerTool(
|
|
257
257
|
"sync-knowledge-source",
|
|
258
258
|
{
|
|
259
|
-
description: "Trigger a sync for a knowledge source.
|
|
259
|
+
description: "Trigger a sync for a knowledge source. Returns as soon as the sync is queued; it runs in the background (minutes for a large repo). Check the outcome afterwards with get-knowledge-source (syncing, lastSyncAt, lastSyncError).",
|
|
260
260
|
inputSchema: {
|
|
261
261
|
id: z.string().describe("Knowledge source ID (UUID)")
|
|
262
262
|
},
|
|
@@ -297,16 +297,19 @@ function registerKnowledgeTools(server2, client, ctx2) {
|
|
|
297
297
|
server2.registerTool(
|
|
298
298
|
"update-knowledge-source",
|
|
299
299
|
{
|
|
300
|
-
description: "Update a knowledge source
|
|
300
|
+
description: "Update a knowledge source: toggle useAll, or set how often it syncs automatically (syncIntervalSeconds; null = never, manual syncs only).",
|
|
301
301
|
inputSchema: {
|
|
302
302
|
id: z.string().describe("Knowledge source ID (UUID)"),
|
|
303
303
|
useAll: z.boolean().optional().describe("Whether to include all files"),
|
|
304
|
-
|
|
304
|
+
syncIntervalSeconds: z.number().int().min(60).nullable().optional().describe("Seconds between automatic syncs (min 60); null = never sync automatically")
|
|
305
305
|
},
|
|
306
306
|
annotations: { readOnlyHint: false, destructiveHint: false }
|
|
307
307
|
},
|
|
308
|
-
async ({ id, useAll,
|
|
309
|
-
const result = await client.put(`/api/knowledge-sources/${id}`, {
|
|
308
|
+
async ({ id, useAll, syncIntervalSeconds }) => {
|
|
309
|
+
const result = await client.put(`/api/knowledge-sources/${id}`, {
|
|
310
|
+
useAll,
|
|
311
|
+
syncIntervalSeconds
|
|
312
|
+
});
|
|
310
313
|
return jsonResult(result);
|
|
311
314
|
}
|
|
312
315
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knowledge.d.ts","sourceRoot":"","sources":["../../src/tools/knowledge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,gBAAgB,EACxB,GAAG,EAAE,WAAW,GACf,IAAI,
|
|
1
|
+
{"version":3,"file":"knowledge.d.ts","sourceRoot":"","sources":["../../src/tools/knowledge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,gBAAgB,EACxB,GAAG,EAAE,WAAW,GACf,IAAI,CAoMN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudamel/mcp-knowledge",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.930.1",
|
|
4
4
|
"description": "Dudamel knowledge MCP — stdio client for Dudamel's knowledge management surface over its REST API.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"type": "module",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"esbuild": "^0.25.0",
|
|
35
|
-
"@dudamel/contracts": "0.1.0",
|
|
36
35
|
"@dudamel/mcp-common": "0.1.0",
|
|
36
|
+
"@dudamel/contracts": "0.1.0",
|
|
37
37
|
"@dudamel/mcp-tool-contract": "0.1.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|