@imenam/mcp-organizer 1.0.38 → 1.0.39
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 +3 -3
- package/dist/src/core/agent.js +1 -1
- package/dist/src/mcp/start.d.ts +1 -1
- package/dist/src/mcp/start.js +3 -3
- package/dist/src/mcp/tools.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -242,8 +242,8 @@ Les outils MCP sont destinés à l'agent ; leurs schémas JSON sont écrits à l
|
|
|
242
242
|
| `start_timer` | `POST tasks/:ref/timer` | Démarre le chrono de l'auteur de la demande (sans `request_id` : du propriétaire du jeton) sur une tâche, libre ou pomodoro (`work_minutes`, `short_break_minutes`, `long_break_minutes`, `cycles`, par défaut ses préférences) ; met en pause son chrono qui tournait ailleurs |
|
|
243
243
|
| `stop_timer` | `POST tasks/:ref/timer/stop` | Arrête le chrono (en marche ou en pause) de l'auteur sur une tâche |
|
|
244
244
|
| `check_follow_ups` | `POST requests/:id/follow-ups` | Pour une suite : coche (ou rouvre, `done: false`) les points de la demande d'origine qu'elle règle ; chaque point est une action du lot, annulable |
|
|
245
|
-
| `complete_request` | `POST requests/:id/complete` | Termine la demande avec la réponse à l'auteur (markdown) et, dans `follow_ups`,
|
|
246
|
-
| `report_direct` | `POST requests` | Après un travail direct, laisse au propriétaire du jeton un compte rendu et
|
|
245
|
+
| `complete_request` | `POST requests/:id/complete` | Termine la demande avec la réponse à l'auteur (markdown) et, dans `follow_ups`, uniquement ce qui bloque la demande et empêche l'agent de la terminer (jamais un point déjà porté par une tâche, un élément de checklist ou une question) : des cases à cocher, et une notification à l'auteur |
|
|
246
|
+
| `report_direct` | `POST requests` | Après un travail direct, laisse au propriétaire du jeton un compte rendu et ce qui bloque le travail (`follow_ups`, au moins un, jamais un point déjà porté par une tâche) : une demande `direct` traitée, avec cases à cocher et notification ; refusé au runner |
|
|
247
247
|
| `fail_request` | `POST requests/:id/fail` | Termine la demande en échec avec la raison |
|
|
248
248
|
| `enable_notifications` | `GET notifications` | Exécuté par le mode MCP lui-même : dépose le relais du veilleur et rend l'appel `Monitor` à faire, ou, derrière mcp-http-gateway, la spécification de veille du relais (voir « Notifications de l'agent ») |
|
|
249
249
|
| `wait_for_requests` | `GET requests/wait` | Outil d'attente du veilleur de la gateway : attend qu'une demande passe en attente (`cursor`, `timeout_seconds` de 1 à 50, `watcher`) et rend ses lignes et le curseur suivant dans `_meta["gateway/events"]` |
|
|
@@ -258,7 +258,7 @@ L'agent traite la file quand l'utilisateur le lui demande, ou quand son veilleur
|
|
|
258
258
|
2. `claim_request` sur la plus ancienne, avec les instructions personnalisées du site et de l'espace, que l'agent suit (`get_context` montre l'espace à tout moment) ;
|
|
259
259
|
3. lectures avec `get_task` et `search_tasks`, `get_attachment` pour une image de la demande ou un fichier joint à une tâche (capture d'un point KO, image citée dans un commentaire @agent), `get_history` pour savoir qui a changé quoi, `get_note` pour une note qu'une demande ou une tâche référence, et `get_document` pour un document de référence utile à la demande ;
|
|
260
260
|
4. actions avec les outils d'écriture, en passant toujours le `request_id` ;
|
|
261
|
-
5. `complete_request` avec une réponse courte dans la langue de l'auteur et, dans `follow_ups`,
|
|
261
|
+
5. `complete_request` avec une réponse courte dans la langue de l'auteur et, dans `follow_ups`, uniquement ce qui bloque la demande, jamais un point déjà porté par une tâche, un élément de checklist ou une question (ou `fail_request`), puis retour à l'étape 1 jusqu'à ce que la file soit vide.
|
|
262
262
|
|
|
263
263
|
Les `instructions` lui décrivent aussi le format des mentions (voir « Mentions ») : une tâche par sa clé, une page de l'espace par un lien markdown vers son adresse, qu'il peut écrire sans l'espace (`[Tableau de bord](#/tableau-de-bord)`, `[Note](#/notes/<id>)`, `#/documents/<id>`, `#/tableau-de-bord/vue/<id>`, `#/agent/en-attente`…), pour mentionner lui-même tâches et pages dans ses textes.
|
|
264
264
|
|
package/dist/src/core/agent.js
CHANGED
|
@@ -383,7 +383,7 @@ export function requestContext(store, agent, request) {
|
|
|
383
383
|
lines.push("", "Text:", request.text, "");
|
|
384
384
|
lines.push(...requestAttachmentLines(store, request));
|
|
385
385
|
lines.push(...spaceContextLines(store, target));
|
|
386
|
-
lines.push("", "Next: read with get_task / search_tasks, act with the write tools (pass this request_id), then call complete_request with a short reply in the author's language, and follow_ups for what the
|
|
386
|
+
lines.push("", "Next: read with get_task / search_tasks, act with the write tools (pass this request_id), then call complete_request with a short reply in the author's language, and follow_ups only for what blocks the request and prevents you from completing it (never a point already carried by a task, a checklist item or a question).");
|
|
387
387
|
return lines.join("\n");
|
|
388
388
|
}
|
|
389
389
|
/** Images d'une demande, avec la façon de les ouvrir et de les joindre à une tâche ; aucune ligne pour une demande sans image. */
|
package/dist/src/mcp/start.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SiteConnection } from "./client.js";
|
|
2
2
|
/** Présentation du serveur transmise au client MCP : concepts et déroulé. */
|
|
3
|
-
export declare const INSTRUCTIONS = "mcp-organizer connects you to an organizer site: a multi-user task manager where people organize tasks in a web app and queue requests for the AI. You, the connected agent, process those requests when the user asks you to. The site never calls an LLM: you are the intelligence.\n\nYour token covers exactly one space, with the rights of the user who created the token. Every tool works on that space.\n\nConcepts:\n- A **space** holds tasks, an idea box, notes and reference documents. A user's **personal space** is private; a **shared space** has one owner and members.\n- A **task** has a title, a markdown description, a status (todo, doing, review, done), a priority (low, medium, high, critical), assignees and tags. Tasks nest on two levels: task > sub-task > sub-sub-task. A task is either standard (with a checklist) or a test (with checkpoints that each tester marks ok, ko, blocked or untested). Any task can also carry **questions** you ask the members to settle a point: options to choose from (one, or several), each with a markdown detail, plus a free answer. The members answer on the site; an answer does not notify you. You read the answers with get_task, and act on them only when a member asks you to, in a message or in a comment mentioning @agent.\n- A task has **attachments** (files the members upload), listed by get_task with their id. Members paste screenshots into descriptions, comments and checkpoint comments: such an image is an attachment of the task, referenced in the text as ``, and get_task flags the comments and checkpoint comments that contain one. Open with get_attachment the images and PDF files that matter for the request \u2014 a screenshot attached to a failed checkpoint, an image cited in a comment mentioning @agent, a PDF specification: you see an image as it is, and read the text of a PDF (a scanned PDF without a text layer is reported as such). You can attach a file yourself with add_attachment \u2014 a screenshot you took during a test, an export or a report you generated: give the absolute path of the file on your machine in file_path; it is read and uploaded for you, so its content never goes through you. Pass comment to post it in a comment (an image shows as a thumbnail) or append_to_description to reference it in the description.\n- A request can carry **images** its author pasted in its text (``): claim_request lists them with their id. Open them with get_attachment, and attach the ones that explain a task you create or change with copy_attachment, which copies the file on the site: the task then reads without the request.\n- A **note** is a markdown draft a member writes in the space to mature a thought over several sessions. Notes never reach your queue and writing one does not notify you: read them only when a member asks you to, with get_note and search_notes (read-only). A text refers to a note by a link ending in `#/notes/<id>`; when a request links notes, claim_request shows them in full. \"Envoyer \u00E0 l'agent\" on a note queues a message that links it: process the note as that message asks (create or update tasks, ideas\u2026).\n- **Mentions**: a text mentions a task by its key (`ORG-30`), which the site shows as a button with the task's status and its key or current title, and a page of the space by a markdown link to its address, which the site shows as a pill named after the current name of its target (the link text is only a fallback): `[Tableau de bord](#/tableau-de-bord)`. An address without a space designates the space of the text; members' mentions carry it (`#/espaces/<space id>/\u2026`). Addresses: dashboard `#/tableau-de-bord`, one of the reader's views `#/tableau-de-bord/vue/<view id>`, ideas `#/idees`, notes `#/notes`, a note `#/notes/<note id>`, documents `#/documents`, a document `#/documents/<document id>`, the agent page `#/agent` and its tabs `#/agent/file`, `#/agent/en-traitement`, `#/agent/en-attente`, `#/agent/traitees`, `#/agent/annulees`, history `#/historique`, space settings `#/espace`. Write mentions the same way in your descriptions, comments and replies.\n- A **document** is a reference file a member uploads to the space (a report on the project, a specification, a data export\u2026) so that your decisions match the real state of the project. claim_request and get_context list the documents with their description; read the ones that help the request with get_document (read-only, in parts for long files). You read text files (txt, md, csv, json, yaml, xml\u2026) and the text of Word files (.docx) and PDF files; an image comes as the image itself, which you see.\n- A **request** is something a member of your space asked the AI: an idea, a remark, a test review, a message or an idea promotion. It is pending, then processing once you claim it (only your token can then act for it), then done (with your reply and the points left to its author) or failed (with the reason). The points left to the author are checkboxes the members tick off. A **follow-up** is a message a member sends from a handled request: claim_request shows that original request, your reply and its points with their ids, and check_follow_ups ticks off the points the follow-up settles. A member can also hand a request to you by mentioning @agent in a comment of a task: claim_request then shows the task's thread, and complete_request posts your reply as a comment right after theirs.\n- A **batch** is the set of actions you perform for one request. Every action is logged with its before and after state and with your token, and users can undo one action or the whole batch.\n- The **history** of the space records every event, by the members and by you: tasks created, changed (with before and after values) or deleted, checklist items, ideas, members, notes and documents (comments keep their own thread). Members read it on the site and restore an old version of a task, or a deleted task, from there. Read it with get_history when a member asks who changed something or what happened to a task.\n- A **direct action** is a write you make without request_id, when your user asks you directly (in their editor, for example) rather than through a request: it is done in the name of your token's owner and forms its own batch, listed among the requests of the space as a direct action and undoable like any other. The site runner never acts directly: it always passes the request_id of the request it processes.\n- A **view** is a tab of a member's dashboard: a layout (kanban, list, matrix), groupings by status or priority, and filters on status, priority, assignees, tags and task type (standard or test). Each member has their own views in each space.\n- A **timer** measures the time a member spends on a task: a free timer, or a pomodoro that alternates work phases and breaks (default 25 / 5 / 15 min, long break after 4 cycles). Each member has their own timer on a task, only one runs at a time, and the site's clock counts it; only the work phases of a pomodoro count. The time spent on a task is the sum of the sessions of all members: read it with get_task_time. When a member asks you to measure their time, call start_timer (and stop_timer to end it): you act on the timers of the author of the request, like their views.\n- The **scope** of your work is the space of your token: you see and process the requests of all its members, and you never act outside it. You change the views and timers of the author of the request you process, and nobody else's: only when the author owns your token, or when you are the site runner. A direct action on views or timers changes those of your token's owner.\n\nWork loop, when the user asks you to process the queue:\n1. list_requests to see the pending requests of your space.\n2. claim_request on the oldest one: it becomes processing for you and you get its context (text, author, context task, for a message the previous exchanges of its author, task tree, members, recent ideas, reference documents), along with the custom instructions of the site and of the space, which you follow. get_context shows the space at any time.\n3. Read what you need with get_task and search_tasks, with get_attachment for an image of the request or a file attached to a task, with get_history to know who changed what, with get_note for a note the request or a task links, and with get_document for a reference document that helps the request.\n4. Act with create_task, update_task, set_assignees, set_tags, edit_checklist, edit_questions, add_comment, add_attachment, copy_attachment, create_idea, update_idea, promote_idea, with list_views, create_view, update_view, delete_view when the author asks how their board should look, with start_timer and stop_timer when the author asks to measure their time on a task, and with check_follow_ups for a follow-up \u2014 always passing the request_id. Each write is one undoable action of the batch.\n5. complete_request with a short reply in the author's language and, in follow_ups, every point the author still has to handle (or fail_request with the reason), then go back to step 1 until no request is pending.\nWhen the queue is empty, tell the user.\n\nDirect work, when the user asks you to change the space outside any request: read with get_context, get_task and search_tasks, then call the write tools without request_id. Do not claim, complete or fail anything: there is no request to close. When your user still has points to handle afterwards, leave them with report_direct.\n\nNotifications: call enable_notifications once at the start of the session and arm the watcher it hands you with Monitor, whatever the command (behind mcp-http-gateway, the gateway relay answers in place of this server and gives its own watcher command). Each request that becomes pending in your space then arrives on its own as one line (kind, author, excerpt, request id), even while you are idle: process it with the work loop above, starting with claim_request. The host stops that watcher after 30 minutes at most: each time it tells you the watcher expired, re-arm it at once with the same Monitor call; otherwise notifications stop for good. A line \"notifications stopped\" means the site refused the token, and a line \"[gateway-watch] \u2026 la veille \u00E9choue\" means the gateway watcher keeps failing: tell the user. wait_for_requests is the waiting tool of the watcher: you do not need to call it.\n\nHow to handle each kind of request:\n- **idea**: classify it. If it belongs to an existing task or sub-task, attach it there (sub-task, checklist item or comment). If it is actionable and important enough, create a task (or sub-task) with a fitting priority. Otherwise, put it in the idea box with create_idea. Prefer existing tasks over duplicates.\n- **test_review**: feed the tester's findings back into the existing tasks (status, checklist, comments, priority of the affected tasks), or create a task for each problem that has none.\n- **remark** and **message**: do whatever is useful \u2014 answer, update or create tasks, comment \u2014 and say what you did in the reply.\n- **idea_promotion**: turn the context idea into a well-formed task with promote_idea.\n\nRules: write titles, descriptions and replies in the language of the users; keep the reply short and factual (markdown is rendered); put anything the members are meant to copy and paste (a command, code, a prompt, an identifier, a URL to reuse) in a fenced markdown code block, which the site shows with a Copy button; never bury in the reply something the author must act on: it belongs in follow_ups. Errors tell you what to do next; an error about the token (missing, revoked, expired, owner no longer a member) cannot be fixed by retrying: tell the user.";
|
|
3
|
+
export declare const INSTRUCTIONS = "mcp-organizer connects you to an organizer site: a multi-user task manager where people organize tasks in a web app and queue requests for the AI. You, the connected agent, process those requests when the user asks you to. The site never calls an LLM: you are the intelligence.\n\nYour token covers exactly one space, with the rights of the user who created the token. Every tool works on that space.\n\nConcepts:\n- A **space** holds tasks, an idea box, notes and reference documents. A user's **personal space** is private; a **shared space** has one owner and members.\n- A **task** has a title, a markdown description, a status (todo, doing, review, done), a priority (low, medium, high, critical), assignees and tags. Tasks nest on two levels: task > sub-task > sub-sub-task. A task is either standard (with a checklist) or a test (with checkpoints that each tester marks ok, ko, blocked or untested). Any task can also carry **questions** you ask the members to settle a point: options to choose from (one, or several), each with a markdown detail, plus a free answer. The members answer on the site; an answer does not notify you. You read the answers with get_task, and act on them only when a member asks you to, in a message or in a comment mentioning @agent.\n- A task has **attachments** (files the members upload), listed by get_task with their id. Members paste screenshots into descriptions, comments and checkpoint comments: such an image is an attachment of the task, referenced in the text as ``, and get_task flags the comments and checkpoint comments that contain one. Open with get_attachment the images and PDF files that matter for the request \u2014 a screenshot attached to a failed checkpoint, an image cited in a comment mentioning @agent, a PDF specification: you see an image as it is, and read the text of a PDF (a scanned PDF without a text layer is reported as such). You can attach a file yourself with add_attachment \u2014 a screenshot you took during a test, an export or a report you generated: give the absolute path of the file on your machine in file_path; it is read and uploaded for you, so its content never goes through you. Pass comment to post it in a comment (an image shows as a thumbnail) or append_to_description to reference it in the description.\n- A request can carry **images** its author pasted in its text (``): claim_request lists them with their id. Open them with get_attachment, and attach the ones that explain a task you create or change with copy_attachment, which copies the file on the site: the task then reads without the request.\n- A **note** is a markdown draft a member writes in the space to mature a thought over several sessions. Notes never reach your queue and writing one does not notify you: read them only when a member asks you to, with get_note and search_notes (read-only). A text refers to a note by a link ending in `#/notes/<id>`; when a request links notes, claim_request shows them in full. \"Envoyer \u00E0 l'agent\" on a note queues a message that links it: process the note as that message asks (create or update tasks, ideas\u2026).\n- **Mentions**: a text mentions a task by its key (`ORG-30`), which the site shows as a button with the task's status and its key or current title, and a page of the space by a markdown link to its address, which the site shows as a pill named after the current name of its target (the link text is only a fallback): `[Tableau de bord](#/tableau-de-bord)`. An address without a space designates the space of the text; members' mentions carry it (`#/espaces/<space id>/\u2026`). Addresses: dashboard `#/tableau-de-bord`, one of the reader's views `#/tableau-de-bord/vue/<view id>`, ideas `#/idees`, notes `#/notes`, a note `#/notes/<note id>`, documents `#/documents`, a document `#/documents/<document id>`, the agent page `#/agent` and its tabs `#/agent/file`, `#/agent/en-traitement`, `#/agent/en-attente`, `#/agent/traitees`, `#/agent/annulees`, history `#/historique`, space settings `#/espace`. Write mentions the same way in your descriptions, comments and replies.\n- A **document** is a reference file a member uploads to the space (a report on the project, a specification, a data export\u2026) so that your decisions match the real state of the project. claim_request and get_context list the documents with their description; read the ones that help the request with get_document (read-only, in parts for long files). You read text files (txt, md, csv, json, yaml, xml\u2026) and the text of Word files (.docx) and PDF files; an image comes as the image itself, which you see.\n- A **request** is something a member of your space asked the AI: an idea, a remark, a test review, a message or an idea promotion. It is pending, then processing once you claim it (only your token can then act for it), then done (with your reply and the points left to its author) or failed (with the reason). The points left to the author are checkboxes the members tick off. A **follow-up** is a message a member sends from a handled request: claim_request shows that original request, your reply and its points with their ids, and check_follow_ups ticks off the points the follow-up settles. A member can also hand a request to you by mentioning @agent in a comment of a task: claim_request then shows the task's thread, and complete_request posts your reply as a comment right after theirs.\n- A **batch** is the set of actions you perform for one request. Every action is logged with its before and after state and with your token, and users can undo one action or the whole batch.\n- The **history** of the space records every event, by the members and by you: tasks created, changed (with before and after values) or deleted, checklist items, ideas, members, notes and documents (comments keep their own thread). Members read it on the site and restore an old version of a task, or a deleted task, from there. Read it with get_history when a member asks who changed something or what happened to a task.\n- A **direct action** is a write you make without request_id, when your user asks you directly (in their editor, for example) rather than through a request: it is done in the name of your token's owner and forms its own batch, listed among the requests of the space as a direct action and undoable like any other. The site runner never acts directly: it always passes the request_id of the request it processes.\n- A **view** is a tab of a member's dashboard: a layout (kanban, list, matrix), groupings by status or priority, and filters on status, priority, assignees, tags and task type (standard or test). Each member has their own views in each space.\n- A **timer** measures the time a member spends on a task: a free timer, or a pomodoro that alternates work phases and breaks (default 25 / 5 / 15 min, long break after 4 cycles). Each member has their own timer on a task, only one runs at a time, and the site's clock counts it; only the work phases of a pomodoro count. The time spent on a task is the sum of the sessions of all members: read it with get_task_time. When a member asks you to measure their time, call start_timer (and stop_timer to end it): you act on the timers of the author of the request, like their views.\n- The **scope** of your work is the space of your token: you see and process the requests of all its members, and you never act outside it. You change the views and timers of the author of the request you process, and nobody else's: only when the author owns your token, or when you are the site runner. A direct action on views or timers changes those of your token's owner.\n\nWork loop, when the user asks you to process the queue:\n1. list_requests to see the pending requests of your space.\n2. claim_request on the oldest one: it becomes processing for you and you get its context (text, author, context task, for a message the previous exchanges of its author, task tree, members, recent ideas, reference documents), along with the custom instructions of the site and of the space, which you follow. get_context shows the space at any time.\n3. Read what you need with get_task and search_tasks, with get_attachment for an image of the request or a file attached to a task, with get_history to know who changed what, with get_note for a note the request or a task links, and with get_document for a reference document that helps the request.\n4. Act with create_task, update_task, set_assignees, set_tags, edit_checklist, edit_questions, add_comment, add_attachment, copy_attachment, create_idea, update_idea, promote_idea, with list_views, create_view, update_view, delete_view when the author asks how their board should look, with start_timer and stop_timer when the author asks to measure their time on a task, and with check_follow_ups for a follow-up \u2014 always passing the request_id. Each write is one undoable action of the batch.\n5. complete_request with a short reply in the author's language and, in follow_ups, only what blocks the request and prevents you from completing it, never a point already carried by a task, a checklist item or a question (or fail_request with the reason), then go back to step 1 until no request is pending.\nWhen the queue is empty, tell the user.\n\nDirect work, when the user asks you to change the space outside any request: read with get_context, get_task and search_tasks, then call the write tools without request_id. Do not claim, complete or fail anything: there is no request to close. When something blocks the work and prevents you from completing it, leave it to your user with report_direct.\n\nNotifications: call enable_notifications once at the start of the session and arm the watcher it hands you with Monitor, whatever the command (behind mcp-http-gateway, the gateway relay answers in place of this server and gives its own watcher command). Each request that becomes pending in your space then arrives on its own as one line (kind, author, excerpt, request id), even while you are idle: process it with the work loop above, starting with claim_request. The host stops that watcher after 30 minutes at most: each time it tells you the watcher expired, re-arm it at once with the same Monitor call; otherwise notifications stop for good. A line \"notifications stopped\" means the site refused the token, and a line \"[gateway-watch] \u2026 la veille \u00E9choue\" means the gateway watcher keeps failing: tell the user. wait_for_requests is the waiting tool of the watcher: you do not need to call it.\n\nHow to handle each kind of request:\n- **idea**: classify it. If it belongs to an existing task or sub-task, attach it there (sub-task, checklist item or comment). If it is actionable and important enough, create a task (or sub-task) with a fitting priority. Otherwise, put it in the idea box with create_idea. Prefer existing tasks over duplicates.\n- **test_review**: feed the tester's findings back into the existing tasks (status, checklist, comments, priority of the affected tasks), or create a task for each problem that has none.\n- **remark** and **message**: do whatever is useful \u2014 answer, update or create tasks, comment \u2014 and say what you did in the reply.\n- **idea_promotion**: turn the context idea into a well-formed task with promote_idea.\n\nRules: write titles, descriptions and replies in the language of the users; keep the reply short and factual (markdown is rendered); put anything the members are meant to copy and paste (a command, code, a prompt, an identifier, a URL to reuse) in a fenced markdown code block, which the site shows with a Copy button; never bury in the reply something that blocks the request: it belongs in follow_ups. Errors tell you what to do next; an error about the token (missing, revoked, expired, owner no longer a member) cannot be fixed by retrying: tell the user.";
|
|
4
4
|
/**
|
|
5
5
|
* Connexion au site d'après `ORGANIZER_URL` et `ORGANIZER_TOKEN` ; une valeur
|
|
6
6
|
* absente ou invalide, ou une URL http vers une autre machine, est une `ConfigError`.
|
package/dist/src/mcp/start.js
CHANGED
|
@@ -34,10 +34,10 @@ Work loop, when the user asks you to process the queue:
|
|
|
34
34
|
2. claim_request on the oldest one: it becomes processing for you and you get its context (text, author, context task, for a message the previous exchanges of its author, task tree, members, recent ideas, reference documents), along with the custom instructions of the site and of the space, which you follow. get_context shows the space at any time.
|
|
35
35
|
3. Read what you need with get_task and search_tasks, with get_attachment for an image of the request or a file attached to a task, with get_history to know who changed what, with get_note for a note the request or a task links, and with get_document for a reference document that helps the request.
|
|
36
36
|
4. Act with create_task, update_task, set_assignees, set_tags, edit_checklist, edit_questions, add_comment, add_attachment, copy_attachment, create_idea, update_idea, promote_idea, with list_views, create_view, update_view, delete_view when the author asks how their board should look, with start_timer and stop_timer when the author asks to measure their time on a task, and with check_follow_ups for a follow-up — always passing the request_id. Each write is one undoable action of the batch.
|
|
37
|
-
5. complete_request with a short reply in the author's language and, in follow_ups,
|
|
37
|
+
5. complete_request with a short reply in the author's language and, in follow_ups, only what blocks the request and prevents you from completing it, never a point already carried by a task, a checklist item or a question (or fail_request with the reason), then go back to step 1 until no request is pending.
|
|
38
38
|
When the queue is empty, tell the user.
|
|
39
39
|
|
|
40
|
-
Direct work, when the user asks you to change the space outside any request: read with get_context, get_task and search_tasks, then call the write tools without request_id. Do not claim, complete or fail anything: there is no request to close. When
|
|
40
|
+
Direct work, when the user asks you to change the space outside any request: read with get_context, get_task and search_tasks, then call the write tools without request_id. Do not claim, complete or fail anything: there is no request to close. When something blocks the work and prevents you from completing it, leave it to your user with report_direct.
|
|
41
41
|
|
|
42
42
|
Notifications: call enable_notifications once at the start of the session and arm the watcher it hands you with Monitor, whatever the command (behind mcp-http-gateway, the gateway relay answers in place of this server and gives its own watcher command). Each request that becomes pending in your space then arrives on its own as one line (kind, author, excerpt, request id), even while you are idle: process it with the work loop above, starting with claim_request. The host stops that watcher after 30 minutes at most: each time it tells you the watcher expired, re-arm it at once with the same Monitor call; otherwise notifications stop for good. A line "notifications stopped" means the site refused the token, and a line "[gateway-watch] … la veille échoue" means the gateway watcher keeps failing: tell the user. wait_for_requests is the waiting tool of the watcher: you do not need to call it.
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ How to handle each kind of request:
|
|
|
47
47
|
- **remark** and **message**: do whatever is useful — answer, update or create tasks, comment — and say what you did in the reply.
|
|
48
48
|
- **idea_promotion**: turn the context idea into a well-formed task with promote_idea.
|
|
49
49
|
|
|
50
|
-
Rules: write titles, descriptions and replies in the language of the users; keep the reply short and factual (markdown is rendered); put anything the members are meant to copy and paste (a command, code, a prompt, an identifier, a URL to reuse) in a fenced markdown code block, which the site shows with a Copy button; never bury in the reply something
|
|
50
|
+
Rules: write titles, descriptions and replies in the language of the users; keep the reply short and factual (markdown is rendered); put anything the members are meant to copy and paste (a command, code, a prompt, an identifier, a URL to reuse) in a fenced markdown code block, which the site shows with a Copy button; never bury in the reply something that blocks the request: it belongs in follow_ups. Errors tell you what to do next; an error about the token (missing, revoked, expired, owner no longer a member) cannot be fixed by retrying: tell the user.`;
|
|
51
51
|
/** Hôtes de la machine locale, seuls admis en http. */
|
|
52
52
|
const LOCAL_HOSTNAMES = new Set(["localhost", "127.0.0.1", "[::1]"]);
|
|
53
53
|
/** Variable d'environnement non vide, ou null. */
|
package/dist/src/mcp/tools.js
CHANGED
|
@@ -632,7 +632,7 @@ export const AGENT_TOOLS = [
|
|
|
632
632
|
path: "requests/{request_id}/complete",
|
|
633
633
|
definition: {
|
|
634
634
|
name: "complete_request",
|
|
635
|
-
description: "Finish a processing request with your reply to its author: a short markdown report in the author's language saying what you did (tasks created or changed, where the idea went) or answering their message. Put in follow_ups
|
|
635
|
+
description: "Finish a processing request with your reply to its author: a short markdown report in the author's language saying what you did (tasks created or changed, where the idea went) or answering their message. Put in follow_ups only what blocks this request and prevents you from completing it: information you lack, a decision without which you could not act, an action you have no right to perform. Never put there a point already carried by a task, a checklist item or a question you created or updated: the members see it on the task, and a checkbox repeating it is noise. Leave follow_ups empty in most cases. Each point becomes a checkbox that the members of the space tick off; the author is notified, and the request stays in their waiting list, in orange, until every point is checked. Call it last.",
|
|
636
636
|
inputSchema: {
|
|
637
637
|
type: "object",
|
|
638
638
|
properties: {
|
|
@@ -646,7 +646,7 @@ export const AGENT_TOOLS = [
|
|
|
646
646
|
type: "array",
|
|
647
647
|
maxItems: MAX_FOLLOW_UPS,
|
|
648
648
|
items: { type: "string", maxLength: MAX_FOLLOW_UP_LENGTH },
|
|
649
|
-
description: "
|
|
649
|
+
description: "Only what blocks this request and prevents you from completing it, one short actionable sentence each. Never a point already carried by a task, a checklist item or a question. Empty or omitted in most cases.",
|
|
650
650
|
},
|
|
651
651
|
},
|
|
652
652
|
required: ["request_id", "reply"],
|
|
@@ -659,7 +659,7 @@ export const AGENT_TOOLS = [
|
|
|
659
659
|
path: "requests",
|
|
660
660
|
definition: {
|
|
661
661
|
name: "report_direct",
|
|
662
|
-
description: "After direct work (writes without request_id), leave your token's owner the
|
|
662
|
+
description: "After direct work (writes without request_id), leave your token's owner only what blocks the work they asked for and prevents you from completing it: information you lack, a decision without which you could not act, an action you have no right to perform. Never a point already carried by a task, a checklist item or a question you created or updated: the members see it on the task. When nothing blocks, do not call it. 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.",
|
|
663
663
|
inputSchema: {
|
|
664
664
|
type: "object",
|
|
665
665
|
properties: {
|
|
@@ -673,7 +673,7 @@ export const AGENT_TOOLS = [
|
|
|
673
673
|
minItems: 1,
|
|
674
674
|
maxItems: MAX_FOLLOW_UPS,
|
|
675
675
|
items: { type: "string", maxLength: MAX_FOLLOW_UP_LENGTH },
|
|
676
|
-
description: "
|
|
676
|
+
description: "Only what blocks the work and prevents you from completing it, one short actionable sentence each. Never a point already carried by a task, a checklist item or a question.",
|
|
677
677
|
},
|
|
678
678
|
},
|
|
679
679
|
required: ["reply", "follow_ups"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imenam/mcp-organizer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "MCP server with a multi-user web GUI to organize tasks in personal and shared spaces; requests to the AI are queued and processed by the connected agent, every agent action is logged and undoable.",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"scripts": {
|