@melz0rs/worklist-mcp 1.1.0 → 1.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.
@@ -654,7 +654,7 @@ export async function runWorklistServer() {
654
654
  process.stderr.write(`${MISSING_URL_MESSAGE}\n`);
655
655
  process.exit(1);
656
656
  }
657
- const server = new Server({ name: "worklist", version: "1.1.0" }, { capabilities: { tools: {} }, instructions: "Use resource-specific bounded CRUD. A PROJECT is the outermost scope — every Journey belongs to one, and an item inherits its Journey's. Call `worklist_projects_list` FIRST and pass one of the ids it returns as `project_id` when you open a Journey — that list is the exact set of projects this token may touch, and it is the server, not this client, that decides it. A token issued for one project sees one project there and is refused (403) on anything outside it, including creating a project; a board-wide token sees every project and may create one for a new body of work. List calls are paginated BY BYTES as well as by rows: a page carries a summary projection and ends at whichever limit comes first, `pagination.stopped_by` says which, and prose fields named in `projection.omitted_fields` are read with `worklist_*_get`. Mutations never return the board. Every work item carries `value` (what changes for the project's owner or users) and `acceptance_criteria` (the bar that decides it is done): you set both when you create it, and you read both — against the stored record, not from memory — before you change its state or close it. The COMM CENTER is how you talk to colleagues on the project: check `worklist_messages_list` at session start and before new work, and leave a message with `worklist_messages_post` when you need something from someone or have unblocked them." });
657
+ const server = new Server({ name: "worklist", version: "1.1.1" }, { capabilities: { tools: {} }, instructions: "Use resource-specific bounded CRUD. A PROJECT is the outermost scope — every Journey belongs to one, and an item inherits its Journey's. Call `worklist_projects_list` FIRST and pass one of the ids it returns as `project_id` when you open a Journey — that list is the exact set of projects this token may touch, and it is the server, not this client, that decides it. A token issued for one project sees one project there and is refused (403) on anything outside it, including creating a project; a board-wide token sees every project and may create one for a new body of work. List calls are paginated BY BYTES as well as by rows: a page carries a summary projection and ends at whichever limit comes first, `pagination.stopped_by` says which, and prose fields named in `projection.omitted_fields` are read with `worklist_*_get`. Mutations never return the board. Every work item carries `value` (what changes for the project's owner or users) and `acceptance_criteria` (the bar that decides it is done): you set both when you create it, and you read both — against the stored record, not from memory — before you change its state or close it. The COMM CENTER is how you talk to colleagues on the project: check `worklist_messages_list` at session start and before new work, and leave a message with `worklist_messages_post` when you need something from someone or have unblocked them." });
658
658
  server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: WORKLIST_TOOL_DEFS }));
659
659
  server.setRequestHandler(CallToolRequestSchema, async (request) => handleWorklistTool(request.params.name, (request.params.arguments ?? {})));
660
660
  await server.connect(new StdioServerTransport());
@@ -3,12 +3,12 @@ import { basename } from "node:path";
3
3
  const PROJECT_ID = { type: "string", pattern: "^p-\\d+$", description: "The project (e.g. \"p-4\"). Omit: a board-wide token uses the server's default project; a project token uses its own." };
4
4
  export const QUESTION_TOOL_DEFS = [
5
5
  { name: "worklist_questions_create",
6
- description: "Ask the project's reviewers a question on the Review tab's Questions section. USE THIS, NOT AskUserQuestion, for questions about CONTENT and CREATIVE work (which take, which look, which source, which wording); AskUserQuestion stays for product decisions and development. Give a short `title`, the `text`, and multiple-choice `options` ({ label, description }) when the answer is a pick -- the reviewer can also type. `for`: a reviewer login the project accepts, or `both` where the project accepts it (default both). `links` ({ label, url }) point at a journey, item or page; `review_id` ties it to a Review page. `attachments` ({ path, kind: image|audio|video }) upload LOCAL files as context (each passes the shared media bound). Returns the question with its `_id`; poll worklist_questions_list or _get for the answer. `project_id` asks in that project; the server says which `for` names each project accepts.",
6
+ description: "Ask the project's reviewers a question on the Review tab's Questions section. USE THIS, NOT AskUserQuestion, for questions about CONTENT and CREATIVE work (which take, which look, which source, which wording); AskUserQuestion stays for product decisions and development. Give a short `title`, the `text`, and multiple-choice `options` ({ label, description }) when the answer is a pick -- the reviewer can also type. `for`: the MAIN answerer -- a reviewer login the project accepts, `both` where the project accepts it, or `none` (no main answerer: everyone sees it and each person answers and marks it done for themselves). Omitted: the server's default for the project. `links` ({ label, url }) point at a journey, item or page; `review_id` ties it to a Review page. `attachments` ({ path, kind: image|audio|video }) upload LOCAL files as context (each passes the shared media bound). Returns the question with its `_id`; poll worklist_questions_list or _get for the answer. `project_id` asks in that project; the server says which `for` names each project accepts.",
7
7
  inputSchema: { type: "object", properties: {
8
8
  title: { type: "string", minLength: 1, maxLength: 200 },
9
9
  text: { type: "string", maxLength: 4000 },
10
10
  options: { type: "array", maxItems: 8, items: { type: "object", properties: { label: { type: "string", minLength: 1, maxLength: 120 }, description: { type: "string", maxLength: 400 } }, required: ["label"], additionalProperties: false } },
11
- for: { type: "string", pattern: "^[a-z0-9._-]{1,64}$", description: "Who should answer: the project's owner, or a reviewer login the project accepts (or `both`, where the project accepts it); the server refuses a name the project does not accept." },
11
+ for: { type: "string", pattern: "^[a-z0-9._-]{1,64}$", description: "The MAIN answerer: the project's owner, a reviewer login the project accepts, `both` (where the project accepts it), or `none` = no main answerer (everyone sees it; each person answers and marks it done themselves, and one person's answer never closes it for the others). The question stays open for the main answerer until THEY mark it answered. The server refuses a name the project does not accept." },
12
12
  links: { type: "array", maxItems: 8, items: { type: "object", properties: { label: { type: "string" }, url: { type: "string" } }, required: ["url"], additionalProperties: false } },
13
13
  review_id: { type: "string" },
14
14
  attachments: { type: "array", maxItems: 6, items: { type: "object", properties: { path: { type: "string" }, kind: { type: "string", enum: ["image", "audio", "video"] } }, required: ["path"], additionalProperties: false } },
@@ -533,7 +533,7 @@ async function publish(deps, args) {
533
533
  }
534
534
  const response = await call(root(deps), json({ ...inProject, manifest: sentManifest, review_id: grant.review_id, version: grant.version, uploaded,
535
535
  ...(typeof description === "string" && description.trim() ? { description: description.trim() } : {}),
536
- ...(reviewer && reviewer !== "none" ? { reviewer } : {}), ...(brief ? { brief } : {}) }));
536
+ ...(reviewer ? { reviewer } : {}), ...(brief ? { brief } : {}) }));
537
537
  const body = await response.json().catch(() => ({}));
538
538
  if (!response.ok)
539
539
  throw new Error(`worklist_reviews_publish: the server refused (${response.status}): ${body.error ?? "no reason given"}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melz0rs/worklist-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "MCP server (client) for a Worklist project board: projects, journeys, work items, rules, reviews, questions, messages and timelines as bounded tools for Claude and other MCP clients.",
5
5
  "keywords": [
6
6
  "mcp",