@pxlabz/tasq-mcp 0.1.10 → 0.1.12
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 +4 -2
- package/dist/tasq-mcp.js +44 -18
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -56,8 +56,10 @@ moves together.
|
|
|
56
56
|
|
|
57
57
|
## Tools
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
tool that sends a project update: an agent drafts, and a person sends.
|
|
59
|
+
Seventeen tools, stdio transport only. No resources, no prompts. There is no
|
|
60
|
+
tool that sends a project update: an agent drafts, and a person sends. There
|
|
61
|
+
is no tool that shares a project with a guest either: no agent may share,
|
|
62
|
+
so `tasq project share` and the web Share dialog are the only ways in.
|
|
61
63
|
|
|
62
64
|
| Tool | Mirrors | Inputs |
|
|
63
65
|
| ---------------- | ---------------------- | ---------------------------------------------------------------------------- |
|
package/dist/tasq-mcp.js
CHANGED
|
@@ -22448,7 +22448,14 @@ var TasqClient = class _TasqClient {
|
|
|
22448
22448
|
* key is refused by policy whatever its preset.
|
|
22449
22449
|
*/
|
|
22450
22450
|
star: (slug, input) => this.dispatch("project.star", slug, input),
|
|
22451
|
-
unstar: (slug, input) => this.dispatch("project.unstar", slug, input)
|
|
22451
|
+
unstar: (slug, input) => this.dispatch("project.unstar", slug, input),
|
|
22452
|
+
/**
|
|
22453
|
+
* Share a project with a guest already in the workspace (6.2). Admins
|
|
22454
|
+
* and the project lead only; an agent key is always refused.
|
|
22455
|
+
*/
|
|
22456
|
+
grantGuest: (slug, input) => this.dispatch("project.grantGuest", slug, input),
|
|
22457
|
+
setGuestAccess: (slug, input) => this.dispatch("project.setGuestAccess", slug, input),
|
|
22458
|
+
revokeGuest: (slug, input) => this.dispatch("project.revokeGuest", slug, input)
|
|
22452
22459
|
};
|
|
22453
22460
|
/**
|
|
22454
22461
|
* Initiatives group projects across teams. Any member reads them; every
|
|
@@ -30635,7 +30642,7 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
30635
30642
|
// package.json
|
|
30636
30643
|
var package_default = {
|
|
30637
30644
|
name: "@pxlabz/tasq-mcp",
|
|
30638
|
-
version: "0.1.
|
|
30645
|
+
version: "0.1.12",
|
|
30639
30646
|
description: "MCP stdio server for Tasq: tasks, threads, comments and mentions for MCP-capable agents",
|
|
30640
30647
|
keywords: [
|
|
30641
30648
|
"tasq",
|
|
@@ -30788,6 +30795,8 @@ function reasonPhrase(reason) {
|
|
|
30788
30795
|
return `loop stopped after ${MAX_CONSECUTIVE_AGENT_MESSAGES} agent messages in a row; waiting for a person`;
|
|
30789
30796
|
case "fanout_cap":
|
|
30790
30797
|
return `fan-out cap of ${MAX_AGENT_WAKES_PER_MESSAGE} reached`;
|
|
30798
|
+
case "guest_actor":
|
|
30799
|
+
return "a guest wrote it; guests never wake agents";
|
|
30791
30800
|
default:
|
|
30792
30801
|
return null;
|
|
30793
30802
|
}
|
|
@@ -30819,10 +30828,13 @@ function threadLine(outcomes) {
|
|
|
30819
30828
|
const why = phrases.length === 0 ? "" : ` (${phrases.join("; ")})`;
|
|
30820
30829
|
return `thread: delivered to ${agentCount(delivered)}, ${suppressed} suppressed${why}`;
|
|
30821
30830
|
}
|
|
30822
|
-
function deliveryLines(outcomes, nameByAgentId) {
|
|
30831
|
+
function deliveryLines(outcomes, nameByAgentId, nameByMemberId = /* @__PURE__ */ new Map()) {
|
|
30823
30832
|
const lines = (outcomes.mentions ?? []).map(
|
|
30824
30833
|
(mention) => mentionLine(mention, nameByAgentId.get(mention.agentId))
|
|
30825
30834
|
);
|
|
30835
|
+
for (const memberId of outcomes.memberMentions ?? []) {
|
|
30836
|
+
lines.push(`mentioned ${nameByMemberId.get(memberId) ?? "a person"}`);
|
|
30837
|
+
}
|
|
30826
30838
|
const threadMessages = outcomes.threadMessages ?? [];
|
|
30827
30839
|
if (threadMessages.length > 0) lines.push(threadLine(threadMessages));
|
|
30828
30840
|
return lines;
|
|
@@ -30980,27 +30992,35 @@ async function resolveProjectId(client, slug, ref) {
|
|
|
30980
30992
|
}
|
|
30981
30993
|
return matched[0]?.id ?? "";
|
|
30982
30994
|
}
|
|
30995
|
+
function mentionCandidate(member) {
|
|
30996
|
+
const name = member.name ?? "(no name)";
|
|
30997
|
+
return member.type === "agent" ? `${name} (agent)` : `${name} <${member.email ?? "no email"}> (person)`;
|
|
30998
|
+
}
|
|
30983
30999
|
function resolveMentions(members, names) {
|
|
30984
|
-
const
|
|
30985
|
-
|
|
30986
|
-
);
|
|
30987
|
-
return names.map((name) => {
|
|
31000
|
+
const resolved = { agentIds: [], memberIds: [] };
|
|
31001
|
+
for (const name of names) {
|
|
30988
31002
|
const wanted = name.trim().toLowerCase();
|
|
30989
|
-
const matched =
|
|
30990
|
-
(
|
|
31003
|
+
const matched = members.filter(
|
|
31004
|
+
(member) => member.type === "agent" ? member.agentId !== null && (member.name ?? "").toLowerCase() === wanted : (member.name ?? "").toLowerCase() === wanted || (member.email ?? "").toLowerCase() === wanted
|
|
30991
31005
|
);
|
|
30992
|
-
|
|
31006
|
+
const [only] = matched;
|
|
31007
|
+
if (only === void 0) {
|
|
30993
31008
|
throw new UsageError(
|
|
30994
|
-
`No agent named "${name}" in this workspace.`
|
|
31009
|
+
`No person or agent named "${name}" in this workspace.`
|
|
30995
31010
|
);
|
|
30996
31011
|
}
|
|
30997
31012
|
if (matched.length > 1) {
|
|
30998
31013
|
throw new UsageError(
|
|
30999
|
-
`"${name}" matches ${matched.
|
|
31014
|
+
`"${name}" is ambiguous: it matches ${matched.map(mentionCandidate).join(", ")}. Mention a person by email, or rename one.`
|
|
31000
31015
|
);
|
|
31001
31016
|
}
|
|
31002
|
-
|
|
31003
|
-
|
|
31017
|
+
if (only.type === "agent" && only.agentId !== null) {
|
|
31018
|
+
resolved.agentIds.push(only.agentId);
|
|
31019
|
+
} else {
|
|
31020
|
+
resolved.memberIds.push(only.id);
|
|
31021
|
+
}
|
|
31022
|
+
}
|
|
31023
|
+
return resolved;
|
|
31004
31024
|
}
|
|
31005
31025
|
async function resolveApproverId(client, slug, ref) {
|
|
31006
31026
|
const trimmed = ref.trim();
|
|
@@ -31347,7 +31367,7 @@ var definitions = [
|
|
|
31347
31367
|
}),
|
|
31348
31368
|
define({
|
|
31349
31369
|
name: "comment_add",
|
|
31350
|
-
description: "Comment on a task or a project, optionally replying and mentioning agents.",
|
|
31370
|
+
description: "Comment on a task or a project, optionally replying and mentioning people or agents.",
|
|
31351
31371
|
schema: external_exports.object({
|
|
31352
31372
|
...workspaceFields,
|
|
31353
31373
|
body: external_exports.string().describe("Comment body."),
|
|
@@ -31355,7 +31375,7 @@ var definitions = [
|
|
|
31355
31375
|
project: external_exports.string().optional().describe("Project id or name, instead of a task."),
|
|
31356
31376
|
replyTo: external_exports.string().optional().describe("Comment id to reply to."),
|
|
31357
31377
|
thread: external_exports.string().optional().describe("Thread root id; an alias for replyTo."),
|
|
31358
|
-
mentions: external_exports.array(external_exports.string()).optional().describe("
|
|
31378
|
+
mentions: external_exports.array(external_exports.string()).optional().describe("Names of people or agents to mention.")
|
|
31359
31379
|
}),
|
|
31360
31380
|
run: async ({ client, config: config2 }, input) => {
|
|
31361
31381
|
const slug = requireWorkspace(config2, input);
|
|
@@ -31375,16 +31395,22 @@ var definitions = [
|
|
|
31375
31395
|
parent
|
|
31376
31396
|
);
|
|
31377
31397
|
}
|
|
31378
|
-
if (mentions.length > 0) action.mentions = mentions;
|
|
31398
|
+
if (mentions.agentIds.length > 0) action.mentions = mentions.agentIds;
|
|
31399
|
+
if (mentions.memberIds.length > 0) {
|
|
31400
|
+
action.memberMentions = mentions.memberIds;
|
|
31401
|
+
}
|
|
31379
31402
|
const added = await client.dispatch("comment.add", slug, action);
|
|
31380
31403
|
const nameByAgentId = new Map(
|
|
31381
31404
|
members.map((member) => [member.agentId, member.name])
|
|
31382
31405
|
);
|
|
31406
|
+
const nameByMemberId = new Map(
|
|
31407
|
+
members.map((member) => [member.id, member.name])
|
|
31408
|
+
);
|
|
31383
31409
|
return {
|
|
31384
31410
|
data: added.result,
|
|
31385
31411
|
lines: [
|
|
31386
31412
|
`Comment added to ${target.label}.`,
|
|
31387
|
-
...deliveryLines(added.result, nameByAgentId)
|
|
31413
|
+
...deliveryLines(added.result, nameByAgentId, nameByMemberId)
|
|
31388
31414
|
]
|
|
31389
31415
|
};
|
|
31390
31416
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pxlabz/tasq-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "MCP stdio server for Tasq: tasks, threads, comments and mentions for MCP-capable agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tasq",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"zod": "4.3.6"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@pxlabz/tasq-sdk": "0.1.
|
|
51
|
+
"@pxlabz/tasq-sdk": "0.1.15",
|
|
52
52
|
"@types/bun": "^1.3.12",
|
|
53
53
|
"tsup": "^8.5.0",
|
|
54
54
|
"typescript": "^5.7.2"
|