@pxlabz/tasq-mcp 0.1.24 → 0.1.26
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/README.md +1 -1
- package/dist/tasq-mcp.js +30 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ so `tasq project share` and the web Share dialog are the only ways in.
|
|
|
81
81
|
| `billing_period_close` | `tasq clients close` | `workspace`, `client`, `month` (admins) |
|
|
82
82
|
| `billing_period_mark_invoiced` | `tasq clients invoice` | `workspace`, `client`, `month`, `invoiceRef` (admins) |
|
|
83
83
|
| `billing_period_reopen` | `tasq clients reopen` | `workspace`, `client`, `month` (admins) |
|
|
84
|
-
| `comment_add` | `tasq comment add` | `workspace`, `body`, `task`, `project`, `replyTo`, `thread`, `mentions`
|
|
84
|
+
| `comment_add` | `tasq comment add` | `workspace`, `body`, `task`, `project`, `doc`, `propose`, `replyTo`, `thread`, `mentions` |
|
|
85
85
|
| `thread_view` | `tasq thread view` | `workspace`, `threadId` |
|
|
86
86
|
| `thread_context` | `tasq thread context` | `workspace`, `threadId`, `format` (`markdown` by default) |
|
|
87
87
|
| `project_list` | `tasq project list` | `workspace` |
|
package/dist/tasq-mcp.js
CHANGED
|
@@ -30767,7 +30767,7 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
30767
30767
|
// package.json
|
|
30768
30768
|
var package_default = {
|
|
30769
30769
|
name: "@pxlabz/tasq-mcp",
|
|
30770
|
-
version: "0.1.
|
|
30770
|
+
version: "0.1.26",
|
|
30771
30771
|
description: "MCP stdio server for Tasq: tasks, threads, comments and mentions for MCP-capable agents",
|
|
30772
30772
|
keywords: [
|
|
30773
30773
|
"tasq",
|
|
@@ -31049,6 +31049,11 @@ function entityFacts(entity) {
|
|
|
31049
31049
|
facts.push(`- Project: ${entity.project?.name ?? "\u2014"}`);
|
|
31050
31050
|
return facts;
|
|
31051
31051
|
}
|
|
31052
|
+
if (entity.type === "document") {
|
|
31053
|
+
facts.push(`- Version: ${entity.version}`);
|
|
31054
|
+
if (entity.passage !== null) facts.push(`- Passage: \u201C${entity.passage}\u201D`);
|
|
31055
|
+
return facts;
|
|
31056
|
+
}
|
|
31052
31057
|
const teams = entity.teams.map((team) => `${team.name} (${team.identifier})`).join(", ");
|
|
31053
31058
|
facts.push(`- Teams: ${teams === "" ? "\u2014" : teams}`);
|
|
31054
31059
|
return facts;
|
|
@@ -31385,8 +31390,18 @@ function replyRef(input) {
|
|
|
31385
31390
|
return replyTo;
|
|
31386
31391
|
}
|
|
31387
31392
|
async function resolveCommentTarget(client, slug, input) {
|
|
31388
|
-
|
|
31389
|
-
|
|
31393
|
+
const targets = [input.task, input.project, input.doc].filter(
|
|
31394
|
+
(value) => value !== void 0
|
|
31395
|
+
);
|
|
31396
|
+
if (targets.length > 1) {
|
|
31397
|
+
throw new UsageError("Pass one of task, project or doc.");
|
|
31398
|
+
}
|
|
31399
|
+
if (input.doc !== void 0) {
|
|
31400
|
+
return {
|
|
31401
|
+
action: { documentId: input.doc },
|
|
31402
|
+
label: "the doc",
|
|
31403
|
+
comments: null
|
|
31404
|
+
};
|
|
31390
31405
|
}
|
|
31391
31406
|
if (input.project !== void 0) {
|
|
31392
31407
|
const projectId = await resolveProjectId(client, slug, input.project);
|
|
@@ -31999,12 +32014,16 @@ var definitions = [
|
|
|
31999
32014
|
}),
|
|
32000
32015
|
define({
|
|
32001
32016
|
name: "comment_add",
|
|
32002
|
-
description: "Comment on a task or
|
|
32017
|
+
description: "Comment on a task, project or doc, optionally replying, mentioning people or agents, or proposing a rewrite of a doc thread's passage.",
|
|
32003
32018
|
schema: external_exports.object({
|
|
32004
32019
|
...workspaceFields,
|
|
32005
32020
|
body: external_exports.string().describe("Comment body."),
|
|
32006
32021
|
task: external_exports.string().optional().describe("Task key such as ENG-42, or a task id."),
|
|
32007
32022
|
project: external_exports.string().optional().describe("Project id or name, instead of a task."),
|
|
32023
|
+
doc: external_exports.string().optional().describe("Doc id (an agent event's documentId), instead of a task."),
|
|
32024
|
+
propose: external_exports.string().optional().describe(
|
|
32025
|
+
"A rewrite of the doc thread's passage: the text to put in its place, empty to delete it."
|
|
32026
|
+
),
|
|
32008
32027
|
replyTo: external_exports.string().optional().describe("Comment id to reply to."),
|
|
32009
32028
|
thread: external_exports.string().optional().describe("Thread root id; an alias for replyTo."),
|
|
32010
32029
|
mentions: external_exports.array(external_exports.string()).optional().describe("Names of people or agents to mention.")
|
|
@@ -32021,11 +32040,13 @@ var definitions = [
|
|
|
32021
32040
|
};
|
|
32022
32041
|
const parent = replyRef(input);
|
|
32023
32042
|
if (parent !== void 0) {
|
|
32024
|
-
action.parentId = resolveParentId(
|
|
32025
|
-
|
|
32026
|
-
|
|
32027
|
-
|
|
32028
|
-
|
|
32043
|
+
action.parentId = target.comments === null ? commentIdOf(parent) : resolveParentId(target.comments, target.label, parent);
|
|
32044
|
+
}
|
|
32045
|
+
if (input.propose !== void 0) {
|
|
32046
|
+
if (input.doc === void 0) {
|
|
32047
|
+
throw new UsageError("Only a doc comment can propose an edit.");
|
|
32048
|
+
}
|
|
32049
|
+
action.proposal = { replacement: input.propose };
|
|
32029
32050
|
}
|
|
32030
32051
|
if (mentions.agentIds.length > 0) action.mentions = mentions.agentIds;
|
|
32031
32052
|
if (mentions.memberIds.length > 0) {
|