You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[improvement] Clarify Publisher async MCP semantics and canonicalize publishOptions input
Align Publisher vs Essentials tool descriptions to reduce sync/async ambiguity.
Expand knowledge-asset-publish controls via publishOptions (privacy/priority/epochs/maxAttempts) without retrieval-tool behavior changes.
@@ -141,9 +163,15 @@ export function registerMcpTools(
141
163
"knowledge-asset-status-by-content-id",
142
164
{
143
165
title: "Get Knowledge Asset Information by Content ID",
144
-
description: "Check, lookup, show, or query a knowledge asset by its JSON-LD @id (URN). Use this when the user provides a URN like 'urn:test:asset:...' or asks about a specific asset ID. Returns status, UAL, transaction hash, and publishing details.",
166
+
description:
167
+
"Check async publishing status for a specific JSON-LD @id (URN) that was submitted through the DKG Publisher plugin queue. "+
168
+
"Returns tracked Publisher status details (status, UAL if published, transaction hash, attempts, and errors).",
145
169
inputSchema: {
146
-
contentId: z.string().describe("The @id from the JSON-LD content (e.g., 'urn:test:asset:manual-test-1')"),
170
+
contentId: z
171
+
.string()
172
+
.describe(
173
+
"The @id from the JSON-LD content (e.g., 'urn:test:asset:manual-test-1')",
174
+
),
147
175
},
148
176
},
149
177
async(input: any,req: any)=>{
@@ -189,11 +217,26 @@ export function registerMcpTools(
189
217
"knowledge-asset-list-recent",
190
218
{
191
219
title: "List Recent Knowledge Assets",
192
-
description: "Show, list, or display recent knowledge assets. Use when user asks 'show me recent assets', 'what was published', 'last X assets', 'publishes 200-500', etc. Can filter by status (published, failed, publishing, queued). Supports pagination with offset for large queries.",
220
+
description:
221
+
"List recent async publishing records tracked by the DKG Publisher plugin. "+
222
+
"Use this for queue/history views (optionally filtered by status) with pagination support.",
193
223
inputSchema: {
194
-
limit: z.number().min(1).default(20).optional().describe("Number of assets to return (default: 20)"),
195
-
offset: z.number().min(0).default(0).optional().describe("Number of assets to skip (for pagination, default: 0)"),
196
-
status: z.enum(["published","failed","publishing","queued"]).optional().describe("Filter by status (optional)"),
224
+
limit: z
225
+
.number()
226
+
.min(1)
227
+
.default(20)
228
+
.optional()
229
+
.describe("Number of assets to return (default: 20)"),
230
+
offset: z
231
+
.number()
232
+
.min(0)
233
+
.default(0)
234
+
.optional()
235
+
.describe("Number of assets to skip (for pagination, default: 0)"),
@@ -282,11 +325,25 @@ export function registerMcpTools(
282
325
"knowledge-asset-query-by-status",
283
326
{
284
327
title: "Find Knowledge Assets by Status",
285
-
description: "Find, show, list, or query knowledge assets by publishing status. Use when user asks 'show me all published', 'failed assets', 'what's publishing', 'publishes 100-200', etc. Supports statuses: published (successfully published), failed (publishing failed), publishing (currently being published), queued (waiting to publish). Supports pagination with offset for large queries.",
328
+
description:
329
+
"Query async publishing records in the DKG Publisher plugin by a required status. "+
330
+
"Use this for focused queue/operations views (published, failed, publishing, queued) with pagination.",
286
331
inputSchema: {
287
-
status: z.enum(["published","failed","publishing","queued"]).describe("The status to filter by"),
288
-
limit: z.number().min(1).default(20).optional().describe("Maximum number of results (default: 20)"),
289
-
offset: z.number().min(0).default(0).optional().describe("Number of assets to skip (for pagination, default: 0)"),
0 commit comments