@delega-dev/mcp 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -107,7 +107,15 @@ function formatTask(t) {
107
107
  if (t.description) lines.push(` Description: ${t.description}`);
108
108
  if (t.project?.name ?? t.project_name)
109
109
  lines.push(` Project: ${t.project?.name ?? t.project_name}`);
110
- if (t.labels?.length) lines.push(` Labels: ${t.labels.join(", ")}`);
110
+ const labels = Array.isArray(t.labels) ? t.labels : typeof t.labels === "string" ? (() => {
111
+ try {
112
+ const p = JSON.parse(t.labels);
113
+ return Array.isArray(p) ? p : [];
114
+ } catch {
115
+ return [];
116
+ }
117
+ })() : [];
118
+ if (labels.length) lines.push(` Labels: ${labels.join(", ")}`);
111
119
  if (t.priority) lines.push(` Priority: ${t.priority}`);
112
120
  if (t.due_date) lines.push(` Due: ${t.due_date}`);
113
121
  lines.push(` Completed: ${t.completed ? "yes" : "no"}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delega-dev/mcp",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "mcpName": "io.github.delega-dev/delega",
5
5
  "description": "MCP server for Delega — task infrastructure for AI agents",
6
6
  "type": "module",