@pxlabz/tasq-mcp 0.1.8 → 0.1.10
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 +66 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ tool that sends a project update: an agent drafts, and a person sends.
|
|
|
70
70
|
| `thread_context` | `tasq thread context` | `workspace`, `threadId`, `format` (`markdown` by default) |
|
|
71
71
|
| `project_list` | `tasq project list` | `workspace` |
|
|
72
72
|
| `initiative_list` | `tasq initiative list` | `workspace` |
|
|
73
|
-
| `project_update_list` | `tasq update list` | `workspace`, `project`
|
|
73
|
+
| `project_update_list` | `tasq update list` | `workspace`, `project`, `limit` |
|
|
74
74
|
| `project_update_draft` | `tasq update draft` | `workspace`, `project`, `health`, `body` |
|
|
75
75
|
| `cycle_current` | `tasq cycle current` | `workspace`, `team` |
|
|
76
76
|
| `events_listen` | `tasq events listen` | `workspace`, `wait` (seconds, 0–25) |
|
package/dist/tasq-mcp.js
CHANGED
|
@@ -22299,6 +22299,7 @@ function toTasqError(status, body, retryAfterHeader) {
|
|
|
22299
22299
|
}
|
|
22300
22300
|
|
|
22301
22301
|
// ../sdk/src/client.ts
|
|
22302
|
+
var PROJECT_UPDATES_PAGE_MAX = 100;
|
|
22302
22303
|
function assertPrefix(token, prefix, label) {
|
|
22303
22304
|
if (!token.startsWith(prefix)) {
|
|
22304
22305
|
throw new Error(
|
|
@@ -22472,10 +22473,32 @@ var TasqClient = class _TasqClient {
|
|
|
22472
22473
|
* approving it.
|
|
22473
22474
|
*/
|
|
22474
22475
|
projectUpdates = {
|
|
22475
|
-
/**
|
|
22476
|
-
|
|
22477
|
-
|
|
22478
|
-
|
|
22476
|
+
/**
|
|
22477
|
+
* Every update on the project, drafts included, newest first. Follows
|
|
22478
|
+
* `nextCursor` until the last page; use `listPage` for one page.
|
|
22479
|
+
*/
|
|
22480
|
+
list: async (slug, projectId) => {
|
|
22481
|
+
const updates = [];
|
|
22482
|
+
let before;
|
|
22483
|
+
do {
|
|
22484
|
+
const page = await this.projectUpdates.listPage(slug, projectId, {
|
|
22485
|
+
limit: PROJECT_UPDATES_PAGE_MAX,
|
|
22486
|
+
before
|
|
22487
|
+
});
|
|
22488
|
+
updates.push(...page.updates);
|
|
22489
|
+
before = page.nextCursor ?? void 0;
|
|
22490
|
+
} while (before !== void 0);
|
|
22491
|
+
return updates;
|
|
22492
|
+
},
|
|
22493
|
+
/**
|
|
22494
|
+
* One page of the project's updates, drafts included, newest first; pass
|
|
22495
|
+
* `nextCursor` as `before` for the next. The API returns 20 by default,
|
|
22496
|
+
* at most 100.
|
|
22497
|
+
*/
|
|
22498
|
+
listPage: (slug, projectId, query = {}) => this.#get(
|
|
22499
|
+
`/workspaces/${encodeURIComponent(slug)}/projects/${encodeURIComponent(projectId)}/updates`,
|
|
22500
|
+
{ limit: query.limit, before: query.before }
|
|
22501
|
+
),
|
|
22479
22502
|
draft: (slug, input) => this.dispatch("projectUpdate.create", slug, input),
|
|
22480
22503
|
create: (slug, input) => this.dispatch("projectUpdate.create", slug, input),
|
|
22481
22504
|
update: (slug, input) => this.dispatch("projectUpdate.update", slug, input),
|
|
@@ -22595,6 +22618,19 @@ var TasqClient = class _TasqClient {
|
|
|
22595
22618
|
{ unread: query.unread === true ? 1 : void 0 }
|
|
22596
22619
|
)
|
|
22597
22620
|
};
|
|
22621
|
+
activity = {
|
|
22622
|
+
/** The workspace activity feed, newest first; page with `nextCursor`. */
|
|
22623
|
+
list: (slug, query = {}) => this.#get(
|
|
22624
|
+
`/workspaces/${encodeURIComponent(slug)}/activity`,
|
|
22625
|
+
{ limit: query.limit, before: query.before }
|
|
22626
|
+
)
|
|
22627
|
+
};
|
|
22628
|
+
waiting = {
|
|
22629
|
+
/** Approvals and agent drafts waiting on the caller. People only. */
|
|
22630
|
+
get: (slug) => this.#get(
|
|
22631
|
+
`/workspaces/${encodeURIComponent(slug)}/waiting`
|
|
22632
|
+
)
|
|
22633
|
+
};
|
|
22598
22634
|
auth = {
|
|
22599
22635
|
/** The principal behind the current credential. */
|
|
22600
22636
|
me: async () => (await this.#get("/auth/me")).user,
|
|
@@ -30599,7 +30635,7 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
30599
30635
|
// package.json
|
|
30600
30636
|
var package_default = {
|
|
30601
30637
|
name: "@pxlabz/tasq-mcp",
|
|
30602
|
-
version: "0.1.
|
|
30638
|
+
version: "0.1.10",
|
|
30603
30639
|
description: "MCP stdio server for Tasq: tasks, threads, comments and mentions for MCP-capable agents",
|
|
30604
30640
|
keywords: [
|
|
30605
30641
|
"tasq",
|
|
@@ -31398,17 +31434,40 @@ var definitions = [
|
|
|
31398
31434
|
data: await client.initiatives.list(requireWorkspace(config2, input))
|
|
31399
31435
|
})
|
|
31400
31436
|
}),
|
|
31437
|
+
define({
|
|
31438
|
+
name: "activity_list",
|
|
31439
|
+
description: "List recent workspace activity, newest first, each row an actor, a summary and a subject.",
|
|
31440
|
+
schema: external_exports.object({
|
|
31441
|
+
...workspaceFields,
|
|
31442
|
+
limit: external_exports.number().int().min(1).max(100).optional().describe("How many rows, 1-100; defaults to 30.")
|
|
31443
|
+
}),
|
|
31444
|
+
run: async ({ client, config: config2 }, input) => ({
|
|
31445
|
+
data: await client.activity.list(requireWorkspace(config2, input), {
|
|
31446
|
+
limit: input.limit
|
|
31447
|
+
})
|
|
31448
|
+
})
|
|
31449
|
+
}),
|
|
31401
31450
|
define({
|
|
31402
31451
|
name: "project_update_list",
|
|
31403
31452
|
description: "List a project's updates, drafts included, newest first.",
|
|
31404
31453
|
schema: external_exports.object({
|
|
31405
31454
|
...workspaceFields,
|
|
31406
|
-
project: external_exports.string().describe("Project id or name.")
|
|
31455
|
+
project: external_exports.string().describe("Project id or name."),
|
|
31456
|
+
limit: external_exports.number().int().min(1).max(100).optional().describe(
|
|
31457
|
+
"Only the latest n updates, 1-100, as one page with nextCursor; omit for all of them."
|
|
31458
|
+
)
|
|
31407
31459
|
}),
|
|
31408
31460
|
run: async ({ client, config: config2 }, input) => {
|
|
31409
31461
|
const slug = requireWorkspace(config2, input);
|
|
31410
31462
|
const projectId = await resolveProjectId(client, slug, input.project);
|
|
31411
|
-
|
|
31463
|
+
if (input.limit === void 0) {
|
|
31464
|
+
return { data: await client.projectUpdates.list(slug, projectId) };
|
|
31465
|
+
}
|
|
31466
|
+
return {
|
|
31467
|
+
data: await client.projectUpdates.listPage(slug, projectId, {
|
|
31468
|
+
limit: input.limit
|
|
31469
|
+
})
|
|
31470
|
+
};
|
|
31412
31471
|
}
|
|
31413
31472
|
}),
|
|
31414
31473
|
// Drafting is the whole agent surface: there is no send tool, because
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pxlabz/tasq-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
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.13",
|
|
52
52
|
"@types/bun": "^1.3.12",
|
|
53
53
|
"tsup": "^8.5.0",
|
|
54
54
|
"typescript": "^5.7.2"
|