innov-mcp-tasks 1.0.1 → 1.0.2

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.mjs +22 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -53,7 +53,7 @@ Na raiz do repo existe [`.cursor/mcp.json`](../.cursor/mcp.json) com **dois** se
53
53
  - `tasks_list` — opcional `project_id`
54
54
  - `my_tasks` — tarefas do utilizador do token (endpoint “minhas” da API)
55
55
  - `project_create` — cria projeto (`POST /api/v1/projects`)
56
- - `task_get`, `task_create`, `task_update_status`, `task_assign`
56
+ - `task_get`, `task_create`, `task_update_status`, `task_assign`, `task_assign_to_me`
57
57
 
58
58
  ## Publicar no npm (mantenedor)
59
59
 
package/index.mjs CHANGED
@@ -226,5 +226,27 @@ server.registerTool(
226
226
  },
227
227
  );
228
228
 
229
+ server.registerTool(
230
+ 'task_assign_to_me',
231
+ {
232
+ description:
233
+ 'Atribui a tarefa ao utilizador do token (POST /tasks/{id}/assign-to-me).',
234
+ inputSchema: {
235
+ task_id: z.number().int().positive(),
236
+ },
237
+ },
238
+ async (args) => {
239
+ try {
240
+ const data = await apiFetch(
241
+ `/api/v1/tasks/${args.task_id}/assign-to-me`,
242
+ { method: 'POST' },
243
+ );
244
+ return jsonText(data);
245
+ } catch (e) {
246
+ return jsonError(e instanceof Error ? e.message : String(e));
247
+ }
248
+ },
249
+ );
250
+
229
251
  const transport = new StdioServerTransport();
230
252
  await server.connect(transport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innov-mcp-tasks",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "MCP stdio — ferramentas de tarefas Innov (API a configurar via INNOV_API_BASE_URL + token Sanctum)",
5
5
  "type": "module",
6
6
  "main": "index.mjs",