kanban-zone-mcp-server 0.1.3 → 0.1.4
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 +1 -1
- package/src/constants.js +1 -1
- package/src/tools/cards.js +2 -1
- package/src/tools/tasks.js +2 -1
package/package.json
CHANGED
package/src/constants.js
CHANGED
package/src/tools/cards.js
CHANGED
|
@@ -378,7 +378,8 @@ const registerCardsTools = server => {
|
|
|
378
378
|
response_format === ResponseFormat.JSON
|
|
379
379
|
? toJsonString(data)
|
|
380
380
|
: `# Metrics for card ${id}\n${toJsonString(data)}`;
|
|
381
|
-
|
|
381
|
+
// The metrics endpoint returns an array; MCP structuredContent must be an object.
|
|
382
|
+
return { content: [{ type: 'text', text }], structuredContent: { metrics: data } };
|
|
382
383
|
})
|
|
383
384
|
);
|
|
384
385
|
|
package/src/tools/tasks.js
CHANGED
|
@@ -117,9 +117,10 @@ const registerTasksTools = server => {
|
|
|
117
117
|
method: 'POST',
|
|
118
118
|
body: { checklistFrom, checklistTo, position },
|
|
119
119
|
});
|
|
120
|
+
// The move endpoint returns a plain string; MCP structuredContent must be an object.
|
|
120
121
|
return {
|
|
121
122
|
content: [{ type: 'text', text: `Moved task ${id}.` }],
|
|
122
|
-
structuredContent:
|
|
123
|
+
structuredContent: { ok: true },
|
|
123
124
|
};
|
|
124
125
|
})
|
|
125
126
|
);
|