@pxlabz/tasq-mcp 0.1.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Paul Cedrick Artigo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,98 @@
1
+ # @pxlabz/tasq-mcp
2
+
3
+ An MCP stdio server for [Tasq](https://github.com/pxlabz/tasq): tasks, projects,
4
+ threads, comments and agent mentions, for harnesses that speak the Model
5
+ Context Protocol rather than a shell.
6
+
7
+ **The CLI is the source of truth.** `@pxlabz/tasq-cli` and its skill file define
8
+ what an agent can do in Tasq; this package adds convenience, not capability.
9
+ Every tool here mirrors one CLI command, takes the same option names, and
10
+ returns the same JSON that command prints under `--json`. If the two ever
11
+ disagree, the CLI is right. An agent that can run a shell should use the CLI.
12
+
13
+ ## Install
14
+
15
+ Nothing to install: point your harness at `bunx @pxlabz/tasq-mcp`.
16
+
17
+ ## Environment
18
+
19
+ The same three variables the CLI reads.
20
+
21
+ | Variable | Required | Meaning |
22
+ | ---------------- | -------- | ---------------------------------------------------------------- |
23
+ | `TASQ_API_KEY` | yes | A Tasq agent key (`tq_ag_…`). The server refuses to start without one. |
24
+ | `TASQ_WORKSPACE` | no | Default workspace slug. Every tool takes a `workspace` input that overrides it. |
25
+ | `TASQ_API_URL` | no | API base URL. Defaults to `https://tasq.pxlabz.com`. |
26
+
27
+ ## Claude Code
28
+
29
+ ```sh
30
+ claude mcp add tasq -e TASQ_API_KEY=tq_ag_… -e TASQ_WORKSPACE=acme -- bunx @pxlabz/tasq-mcp
31
+ ```
32
+
33
+ ## Codex, and anything else that reads `mcpServers`
34
+
35
+ ```json
36
+ {
37
+ "mcpServers": {
38
+ "tasq": {
39
+ "command": "bunx",
40
+ "args": ["@pxlabz/tasq-mcp"],
41
+ "env": {
42
+ "TASQ_API_KEY": "tq_ag_…",
43
+ "TASQ_WORKSPACE": "acme"
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ ## Dependencies
51
+
52
+ `@modelcontextprotocol/sdk` and `zod`. The zod dependency is pinned to exactly
53
+ `4.3.6`: Bun hoists one copy for the whole workspace, and 4.6.x re-hoists the
54
+ root copy and breaks `apps/api`'s typecheck, so the pin holds until the repo
55
+ moves together.
56
+
57
+ ## Tools
58
+
59
+ Twelve tools, stdio transport only. No resources, no prompts.
60
+
61
+ | Tool | Mirrors | Inputs |
62
+ | ---------------- | ---------------------- | ---------------------------------------------------------------------------- |
63
+ | `task_list` | `tasq task list` | `workspace`, `team`, `status`, `assignee`, `priority`, `project`, `cycle`, `q`, `includeArchived` |
64
+ | `task_view` | `tasq task view` | `workspace`, `id` |
65
+ | `task_create` | `tasq task create` | `workspace`, `title`, `team`, `description`, `priority`, `project`, `labels` |
66
+ | `task_update` | `tasq task update` | `workspace`, `id`, `title`, `description`, `priority`, `status` |
67
+ | `comment_add` | `tasq comment add` | `workspace`, `body`, `task`, `project`, `replyTo`, `thread`, `mentions` |
68
+ | `thread_view` | `tasq thread view` | `workspace`, `threadId` |
69
+ | `thread_context` | `tasq thread context` | `workspace`, `threadId`, `format` (`markdown` by default) |
70
+ | `project_list` | `tasq project list` | `workspace` |
71
+ | `cycle_current` | `tasq cycle current` | `workspace`, `team` |
72
+ | `events_listen` | `tasq events listen` | `workspace`, `wait` (seconds, 0–25) |
73
+ | `events_ack` | `tasq events ack` | `workspace`, `ids` |
74
+ | `whoami` | `tasq auth whoami` | — |
75
+
76
+ ### The event loop
77
+
78
+ `events_listen` is one poll, not a stream: an MCP tool call has to return, so
79
+ the harness calls it again rather than the server holding the connection open.
80
+ The loop is the CLI's — listen, act, then `events_ack` last. An unacknowledged
81
+ event is offered again ten minutes after delivery, so a crash between acting
82
+ and acking costs nothing; an event acked up front is gone.
83
+
84
+ ### Errors
85
+
86
+ A failed call comes back as a tool error whose first line carries the category
87
+ from the CLI's exit-code table, so the two read as one.
88
+
89
+ | Prefix | CLI exit code | Meaning |
90
+ | --------------------- | ------------- | ---------------------------------------------------------- |
91
+ | `Error (1):` | 1 | Something failed; the message says what. |
92
+ | `Usage error (2):` | 2 | A bad input, or a mention name matching no agent or several. |
93
+ | `Rate limited (3):` | 3 | The message says how many seconds to wait. The tool returns rather than sleeping — retry when it says. |
94
+ | `Policy denied (4):` | 4 | Your policy refused the action. Do not retry it; say what was refused. |
95
+
96
+ ## License
97
+
98
+ MIT