@imenam/mcp-organizer 1.0.13 → 1.0.15

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.
@@ -11,14 +11,14 @@ export class ToolArgumentError extends Error {
11
11
  }
12
12
  const REQUEST_ID = {
13
13
  type: "string",
14
- description: "Id of the request you claimed with claim_request (status processing). Every write is recorded in its batch and can be undone by the users.",
14
+ description: "Id of the request you claimed with claim_request (status processing): the write is recorded in its batch. Omit it only when your user asks you directly, outside any request: the write then forms its own batch, in the name of your token's owner. Either way the users can undo it. The site runner always passes it.",
15
15
  };
16
16
  const TASK_REF = { type: "string", description: "Task of your space: its key (e.g. ORG-41) or its id." };
17
17
  const VIEW_REQUEST_ID = {
18
18
  type: "string",
19
- description: "Id of the request you claimed (status processing): you act on the board views of its author, and every write is recorded in its batch and can be undone by that author.",
19
+ description: "Id of the request you claimed (status processing): you act on the board views of its author, and every write is recorded in its batch and can be undone by that author. Omit it only when your user asks you directly, outside any request: you then act on the views of your token's owner, each write forming its own batch. The site runner always passes it.",
20
20
  };
21
- const VIEW_ID = { type: "string", description: "Id of a view of the request's author, from list_views." };
21
+ const VIEW_ID = { type: "string", description: "Id of a view of the request's author (or of your token's owner), from list_views." };
22
22
  /** Réglages d'une vue, communs à create_view et update_view. */
23
23
  const VIEW_SETTINGS = {
24
24
  name: { type: "string", maxLength: MAX_BOARD_VIEW_NAME_LENGTH, description: "Name of the view, shown as its tab, in the language of the users." },
@@ -65,7 +65,7 @@ export const AGENT_TOOLS = [
65
65
  path: "requests/{request_id}/claim",
66
66
  definition: {
67
67
  name: "claim_request",
68
- description: "Claim a pending request before working on it: it becomes processing for your token only (no other agent can take it or act for it) and you get its full context — text, author, context task or idea, for a message the previous exchanges of its author (their requests and your replies), the task tree of your space with keys, statuses, priorities and assignees, its members and recent ideas. Every write tool then needs this request_id.",
68
+ description: "Claim a pending request before working on it: it becomes processing for your token only (no other agent can take it or act for it) and you get its full context — text, author, context task or idea, for a message the previous exchanges of its author (their requests and your replies), the task tree of your space with keys, statuses, priorities and assignees, its members and recent ideas. Pass this request_id to every write tool while you process it.",
69
69
  inputSchema: {
70
70
  type: "object",
71
71
  properties: { request_id: { type: "string", description: "Id of a pending request, from list_requests." } },
@@ -129,7 +129,7 @@ export const AGENT_TOOLS = [
129
129
  status: { type: "string", enum: [...TASK_STATUSES], description: "Default: todo." },
130
130
  parent: { type: "string", description: "Parent task key (e.g. ORG-41) or id, to create a sub-task." },
131
131
  },
132
- required: ["request_id", "title"],
132
+ required: ["title"],
133
133
  additionalProperties: false,
134
134
  },
135
135
  },
@@ -160,7 +160,7 @@ export const AGENT_TOOLS = [
160
160
  description: "Test tasks only: the task of your space this test verifies (key or id, not the test itself); null removes the link. A task changed to standard loses it.",
161
161
  },
162
162
  },
163
- required: ["request_id", "task"],
163
+ required: ["task"],
164
164
  additionalProperties: false,
165
165
  },
166
166
  },
@@ -178,7 +178,7 @@ export const AGENT_TOOLS = [
178
178
  task: TASK_REF,
179
179
  assignees: { type: "array", items: { type: "string" }, description: "Member ids or e-mails: the complete new list." },
180
180
  },
181
- required: ["request_id", "task", "assignees"],
181
+ required: ["task", "assignees"],
182
182
  additionalProperties: false,
183
183
  },
184
184
  },
@@ -196,7 +196,7 @@ export const AGENT_TOOLS = [
196
196
  task: TASK_REF,
197
197
  tags: { type: "array", items: { type: "string", maxLength: MAX_TAG_LENGTH }, description: "Tag names: the complete new list." },
198
198
  },
199
- required: ["request_id", "task", "tags"],
199
+ required: ["task", "tags"],
200
200
  additionalProperties: false,
201
201
  },
202
202
  },
@@ -229,7 +229,7 @@ export const AGENT_TOOLS = [
229
229
  },
230
230
  },
231
231
  },
232
- required: ["request_id", "task", "operations"],
232
+ required: ["task", "operations"],
233
233
  additionalProperties: false,
234
234
  },
235
235
  },
@@ -247,7 +247,7 @@ export const AGENT_TOOLS = [
247
247
  task: TASK_REF,
248
248
  body: { type: "string", maxLength: MAX_COMMENT_LENGTH, description: "Comment text, in the language of the space." },
249
249
  },
250
- required: ["request_id", "task", "body"],
250
+ required: ["task", "body"],
251
251
  additionalProperties: false,
252
252
  },
253
253
  },
@@ -264,7 +264,7 @@ export const AGENT_TOOLS = [
264
264
  request_id: REQUEST_ID,
265
265
  text: { type: "string", maxLength: MAX_IDEA_LENGTH, description: "The idea, clearly worded, in the language of the space." },
266
266
  },
267
- required: ["request_id", "text"],
267
+ required: ["text"],
268
268
  additionalProperties: false,
269
269
  },
270
270
  },
@@ -283,7 +283,7 @@ export const AGENT_TOOLS = [
283
283
  text: { type: "string", maxLength: MAX_IDEA_LENGTH, description: "New wording." },
284
284
  archived: { type: "boolean" },
285
285
  },
286
- required: ["request_id", "idea_id"],
286
+ required: ["idea_id"],
287
287
  additionalProperties: false,
288
288
  },
289
289
  },
@@ -305,7 +305,7 @@ export const AGENT_TOOLS = [
305
305
  priority: { type: "string", enum: [...TASK_PRIORITIES], description: "Default: medium." },
306
306
  parent: { type: "string", description: "Parent task key or id, to create a sub-task." },
307
307
  },
308
- required: ["request_id", "idea_id", "title"],
308
+ required: ["idea_id", "title"],
309
309
  additionalProperties: false,
310
310
  },
311
311
  },
@@ -315,8 +315,8 @@ export const AGENT_TOOLS = [
315
315
  path: "views",
316
316
  definition: {
317
317
  name: "list_views",
318
- description: "List the board views of the author of a request, in your space: each view is a tab of their dashboard with a layout (kanban, list, matrix), groupings by status or priority, and filters on the status, priority and assignees of the top-level tasks. Read them before changing how someone's board looks.",
319
- inputSchema: { type: "object", properties: { request_id: VIEW_REQUEST_ID }, required: ["request_id"], additionalProperties: false },
318
+ description: "List the board views of the author of a request (without request_id: of your token's owner), in your space: each view is a tab of their dashboard with a layout (kanban, list, matrix), groupings by status or priority, and filters on the status, priority and assignees of the top-level tasks. Read them before changing how someone's board looks.",
319
+ inputSchema: { type: "object", properties: { request_id: VIEW_REQUEST_ID }, additionalProperties: false },
320
320
  },
321
321
  },
322
322
  {
@@ -324,8 +324,8 @@ export const AGENT_TOOLS = [
324
324
  path: "views",
325
325
  definition: {
326
326
  name: "create_view",
327
- description: "Create a board view for the author of a request (e.g. \"show me only my critical tasks, by status\"), after their other tabs; their open dashboard switches to it. Defaults: kanban grouped by status, then_by none (a matrix crosses status and priority), empty groups shown except in a list, no filter. Prefer update_view when the author asks to change a view they have.",
328
- inputSchema: { type: "object", properties: { request_id: VIEW_REQUEST_ID, ...VIEW_SETTINGS }, required: ["request_id", "name"], additionalProperties: false },
327
+ description: "Create a board view for the author of a request, or for your token's owner without request_id (e.g. \"show me only my critical tasks, by status\"), after their other tabs; their open dashboard switches to it. Defaults: kanban grouped by status, then_by none (a matrix crosses status and priority), empty groups shown except in a list, no filter. Prefer update_view when the author asks to change a view they have.",
328
+ inputSchema: { type: "object", properties: { request_id: VIEW_REQUEST_ID, ...VIEW_SETTINGS }, required: ["name"], additionalProperties: false },
329
329
  },
330
330
  },
331
331
  {
@@ -333,8 +333,8 @@ export const AGENT_TOOLS = [
333
333
  path: "views/{view_id}",
334
334
  definition: {
335
335
  name: "update_view",
336
- description: "Change a board view of the author of a request: name, layout, groupings, empty groups, filters. Only the given settings change; a list (statuses, priorities, assignees) replaces the previous one. Their open dashboard switches to the view.",
337
- inputSchema: { type: "object", properties: { request_id: VIEW_REQUEST_ID, view_id: VIEW_ID, ...VIEW_SETTINGS }, required: ["request_id", "view_id"], additionalProperties: false },
336
+ description: "Change a board view of the author of a request (without request_id: of your token's owner): name, layout, groupings, empty groups, filters. Only the given settings change; a list (statuses, priorities, assignees) replaces the previous one. Their open dashboard switches to the view.",
337
+ inputSchema: { type: "object", properties: { request_id: VIEW_REQUEST_ID, view_id: VIEW_ID, ...VIEW_SETTINGS }, required: ["view_id"], additionalProperties: false },
338
338
  },
339
339
  },
340
340
  {
@@ -342,8 +342,8 @@ export const AGENT_TOOLS = [
342
342
  path: "views/{view_id}/delete",
343
343
  definition: {
344
344
  name: "delete_view",
345
- description: "Delete a board view of the author of a request, when they ask for it. Their last view cannot be deleted.",
346
- inputSchema: { type: "object", properties: { request_id: VIEW_REQUEST_ID, view_id: VIEW_ID }, required: ["request_id", "view_id"], additionalProperties: false },
345
+ description: "Delete a board view of the author of a request (without request_id: of your token's owner), when they ask for it. Their last view cannot be deleted.",
346
+ inputSchema: { type: "object", properties: { request_id: VIEW_REQUEST_ID, view_id: VIEW_ID }, required: ["view_id"], additionalProperties: false },
347
347
  },
348
348
  },
349
349
  {
@@ -391,6 +391,33 @@ export const AGENT_TOOLS = [
391
391
  },
392
392
  },
393
393
  },
394
+ {
395
+ method: "POST",
396
+ path: "requests",
397
+ definition: {
398
+ name: "report_direct",
399
+ description: "After direct work (writes without request_id), leave your token's owner the points they still have to handle: a decision to make, something to check or finish. It adds to the requests of the space a done direct request with your reply and the points as checkboxes; the owner is notified, and the request stays in their waiting list, in orange, until every point is checked. Do not use it while processing a request: complete_request carries its points. The site runner cannot use it.",
400
+ inputSchema: {
401
+ type: "object",
402
+ properties: {
403
+ reply: {
404
+ type: "string",
405
+ maxLength: MAX_REPLY_LENGTH,
406
+ description: "Short markdown report of the direct work, in the owner's language, with task keys (ORG-12). Do not repeat the points here.",
407
+ },
408
+ follow_ups: {
409
+ type: "array",
410
+ minItems: 1,
411
+ maxItems: MAX_FOLLOW_UPS,
412
+ items: { type: "string", maxLength: MAX_FOLLOW_UP_LENGTH },
413
+ description: "What the owner still has to do, one short actionable sentence each.",
414
+ },
415
+ },
416
+ required: ["reply", "follow_ups"],
417
+ additionalProperties: false,
418
+ },
419
+ },
420
+ },
394
421
  {
395
422
  method: "POST",
396
423
  path: "requests/{request_id}/fail",