@pxlabz/tasq-mcp 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/dist/tasq-mcp.js +28 -5
- package/package.json +1 -1
package/dist/tasq-mcp.js
CHANGED
|
@@ -30544,7 +30544,7 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
30544
30544
|
// package.json
|
|
30545
30545
|
var package_default = {
|
|
30546
30546
|
name: "@pxlabz/tasq-mcp",
|
|
30547
|
-
version: "0.1.
|
|
30547
|
+
version: "0.1.4",
|
|
30548
30548
|
description: "MCP stdio server for Tasq: tasks, threads, comments and mentions for MCP-capable agents",
|
|
30549
30549
|
keywords: [
|
|
30550
30550
|
"tasq",
|
|
@@ -31070,10 +31070,19 @@ var definitions = [
|
|
|
31070
31070
|
project: external_exports.string().optional().describe("Project id or name."),
|
|
31071
31071
|
labels: external_exports.string().optional().describe("Comma-separated label names."),
|
|
31072
31072
|
due: DATE_INPUT.optional().describe("Due date, YYYY-MM-DD."),
|
|
31073
|
-
start: DATE_INPUT.optional().describe("Start date, YYYY-MM-DD.")
|
|
31073
|
+
start: DATE_INPUT.optional().describe("Start date, YYYY-MM-DD."),
|
|
31074
|
+
parent: external_exports.string().optional().describe(
|
|
31075
|
+
"Parent task key such as ENG-42, or a task id, to create this as its subtask."
|
|
31076
|
+
)
|
|
31074
31077
|
}),
|
|
31075
31078
|
run: async ({ client, config: config2 }, input) => {
|
|
31076
31079
|
const slug = requireWorkspace(config2, input);
|
|
31080
|
+
if (input.parent !== void 0 && input.project !== void 0) {
|
|
31081
|
+
throw new UsageError(
|
|
31082
|
+
"parent and project cannot be combined: a subtask takes its parent's project."
|
|
31083
|
+
);
|
|
31084
|
+
}
|
|
31085
|
+
const parentTaskId = input.parent === void 0 ? void 0 : await resolveTaskId(client, slug, input.parent);
|
|
31077
31086
|
const teamIdentifier = await resolveTeamIdentifier(
|
|
31078
31087
|
client,
|
|
31079
31088
|
slug,
|
|
@@ -31092,6 +31101,7 @@ var definitions = [
|
|
|
31092
31101
|
if (input.project !== void 0) {
|
|
31093
31102
|
action.projectId = await resolveProjectId(client, slug, input.project);
|
|
31094
31103
|
}
|
|
31104
|
+
if (parentTaskId !== void 0) action.parentTaskId = parentTaskId;
|
|
31095
31105
|
const steps = new StepRunner();
|
|
31096
31106
|
const created = await steps.run(
|
|
31097
31107
|
"create",
|
|
@@ -31118,7 +31128,7 @@ var definitions = [
|
|
|
31118
31128
|
}),
|
|
31119
31129
|
define({
|
|
31120
31130
|
name: "task_update",
|
|
31121
|
-
description: "Update a task's title, description, priority, status or
|
|
31131
|
+
description: "Update a task's title, description, priority, status, dates or parent.",
|
|
31122
31132
|
schema: external_exports.object({
|
|
31123
31133
|
...workspaceFields,
|
|
31124
31134
|
id: external_exports.string().describe("Task key such as ENG-42, or a task id."),
|
|
@@ -31131,15 +31141,19 @@ var definitions = [
|
|
|
31131
31141
|
),
|
|
31132
31142
|
start: DATE_OR_NONE.optional().describe(
|
|
31133
31143
|
'Start date, YYYY-MM-DD, or "none" to clear it.'
|
|
31144
|
+
),
|
|
31145
|
+
parent: external_exports.string().optional().describe(
|
|
31146
|
+
'Parent task key such as ENG-42 or a task id, or "none" to detach it.'
|
|
31134
31147
|
)
|
|
31135
31148
|
}),
|
|
31136
31149
|
run: async ({ client, config: config2 }, input) => {
|
|
31137
31150
|
const slug = requireWorkspace(config2, input);
|
|
31138
|
-
if (input.title === void 0 && input.description === void 0 && input.priority === void 0 && input.status === void 0 && input.due === void 0 && input.start === void 0) {
|
|
31151
|
+
if (input.title === void 0 && input.description === void 0 && input.priority === void 0 && input.status === void 0 && input.due === void 0 && input.start === void 0 && input.parent === void 0) {
|
|
31139
31152
|
throw new UsageError(
|
|
31140
|
-
"Nothing to update. Pass at least one of title, description, priority, status, due, start."
|
|
31153
|
+
"Nothing to update. Pass at least one of title, description, priority, status, due, start, parent."
|
|
31141
31154
|
);
|
|
31142
31155
|
}
|
|
31156
|
+
const parentTaskId = input.parent === void 0 ? void 0 : input.parent === "none" ? null : await resolveTaskId(client, slug, input.parent);
|
|
31143
31157
|
const taskId = await resolveTaskId(client, slug, input.id);
|
|
31144
31158
|
const task = await client.tasks.get(slug, taskId);
|
|
31145
31159
|
const steps = new StepRunner();
|
|
@@ -31172,6 +31186,15 @@ var definitions = [
|
|
|
31172
31186
|
() => client.dispatch("task.setDates", slug, dates)
|
|
31173
31187
|
);
|
|
31174
31188
|
}
|
|
31189
|
+
if (parentTaskId !== void 0) {
|
|
31190
|
+
await steps.run(
|
|
31191
|
+
"parent",
|
|
31192
|
+
() => client.dispatch("task.setParent", slug, {
|
|
31193
|
+
taskId: task.id,
|
|
31194
|
+
parentTaskId
|
|
31195
|
+
})
|
|
31196
|
+
);
|
|
31197
|
+
}
|
|
31175
31198
|
if (input.status !== void 0) {
|
|
31176
31199
|
const statusName = input.status;
|
|
31177
31200
|
await steps.run("status", async () => {
|