@nimara-app/mcp 0.2.0 → 0.3.0

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/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/index.ts", "../src/server.ts", "../../convex/convex/_generated/api.js", "../src/convex.ts", "../src/tools/list-orgs.ts", "../src/tools/list-projects.ts", "../src/tools/list-work-items.ts", "../src/tools/get-work-items.ts", "../src/tools/search-work-items.ts", "../src/tools/list-ai-review-queue.ts", "../src/tools/create-work-item.ts", "../src/tools/titleGuidance.ts", "../src/tools/statusGuidance.ts", "../src/tools/create-project.ts", "../src/tools/update-work-item.ts", "../src/tools/researchFormat.ts", "../src/tools/move-work-item.ts", "../src/tools/create-document.ts", "../src/tools/update-document.ts", "../src/tools/list-documents.ts", "../src/tools/create-project-link.ts", "../src/tools/list-project-links.ts", "../src/tools/add-work-item-image.ts", "../src/tools/list-work-item-images.ts", "../src/tools/add-work-item-comment.ts", "../src/tools/list-work-item-comments.ts", "../src/tools/list-validations.ts", "../src/tools/record-validation.ts", "../src/tools/mark-system-changed.ts", "../src/tools/create-system.ts", "../src/tools/create-validation-task.ts", "../src/tools/add-system-to-task.ts", "../src/tools/add-validation-dependency.ts", "../src/tools/list-labels.ts", "../src/tools/create-label.ts", "../src/tools/add-label-to-work-item.ts", "../src/tools/remove-label-from-work-item.ts", "../src/tools/list-milestones.ts", "../src/tools/create-milestone.ts", "../src/tools/add-item-to-milestone.ts", "../src/tools/remove-item-from-milestone.ts"],
4
- "sourcesContent": ["#!/usr/bin/env node\n// MCP stdio transport reserves stdout for JSON-RPC frames. Any library that\n// writes to stdout (e.g. the Convex client's `[CONVEX A(uth)]` info logs)\n// corrupts the stream. Redirect console.* to stderr before anything else loads.\nfor (const m of [\"log\", \"info\", \"warn\", \"debug\"] as const) {\n console[m] = (...args: unknown[]) => console.error(...args);\n}\n\nimport { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\nimport { createServer } from \"./server.js\";\n\nasync function main() {\n const server = createServer();\n const transport = new StdioServerTransport();\n await server.connect(transport);\n // Server runs until stdin closes; nothing else to do here.\n}\n\nmain().catch((err) => {\n console.error(\"nimara-mcp: fatal error\", err);\n process.exit(1);\n});\n", "import { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { registerListOrgs } from \"./tools/list-orgs.js\";\nimport { registerListProjects } from \"./tools/list-projects.js\";\nimport { registerListWorkItems } from \"./tools/list-work-items.js\";\nimport { registerGetWorkItems } from \"./tools/get-work-items.js\";\nimport { registerSearchWorkItems } from \"./tools/search-work-items.js\";\nimport { registerListAiReviewQueue } from \"./tools/list-ai-review-queue.js\";\nimport { registerCreateWorkItem } from \"./tools/create-work-item.js\";\nimport { registerCreateProject } from \"./tools/create-project.js\";\nimport { registerUpdateWorkItem } from \"./tools/update-work-item.js\";\nimport { registerMoveWorkItem } from \"./tools/move-work-item.js\";\nimport { registerCreateDocument } from \"./tools/create-document.js\";\nimport { registerUpdateDocument } from \"./tools/update-document.js\";\nimport { registerListDocuments } from \"./tools/list-documents.js\";\nimport { registerCreateProjectLink } from \"./tools/create-project-link.js\";\nimport { registerListProjectLinks } from \"./tools/list-project-links.js\";\nimport { registerAddWorkItemImage } from \"./tools/add-work-item-image.js\";\nimport { registerListWorkItemImages } from \"./tools/list-work-item-images.js\";\nimport { registerAddWorkItemComment } from \"./tools/add-work-item-comment.js\";\nimport { registerListWorkItemComments } from \"./tools/list-work-item-comments.js\";\nimport { registerListValidations } from \"./tools/list-validations.js\";\nimport { registerRecordValidation } from \"./tools/record-validation.js\";\nimport { registerMarkSystemChanged } from \"./tools/mark-system-changed.js\";\nimport { registerCreateSystem } from \"./tools/create-system.js\";\nimport { registerCreateValidationTask } from \"./tools/create-validation-task.js\";\nimport { registerAddSystemToTask } from \"./tools/add-system-to-task.js\";\nimport { registerAddValidationDependency } from \"./tools/add-validation-dependency.js\";\nimport { registerListLabels } from \"./tools/list-labels.js\";\nimport { registerCreateLabel } from \"./tools/create-label.js\";\nimport { registerAddLabelToWorkItem } from \"./tools/add-label-to-work-item.js\";\nimport { registerRemoveLabelFromWorkItem } from \"./tools/remove-label-from-work-item.js\";\nimport { registerListMilestones } from \"./tools/list-milestones.js\";\nimport { registerCreateMilestone } from \"./tools/create-milestone.js\";\nimport { registerAddItemToMilestone } from \"./tools/add-item-to-milestone.js\";\nimport { registerRemoveItemFromMilestone } from \"./tools/remove-item-from-milestone.js\";\n\nexport function createServer(): McpServer {\n const server = new McpServer({\n name: \"nimara\",\n version: \"0.1.0\",\n });\n\n registerListOrgs(server);\n registerListProjects(server);\n registerListWorkItems(server);\n registerGetWorkItems(server);\n registerSearchWorkItems(server);\n registerListAiReviewQueue(server);\n registerCreateProject(server);\n registerCreateWorkItem(server);\n registerUpdateWorkItem(server);\n registerMoveWorkItem(server);\n registerCreateDocument(server);\n registerUpdateDocument(server);\n registerListDocuments(server);\n registerCreateProjectLink(server);\n registerListProjectLinks(server);\n registerAddWorkItemImage(server);\n registerListWorkItemImages(server);\n registerAddWorkItemComment(server);\n registerListWorkItemComments(server);\n\n // Validation / test-dependency framework\n registerListValidations(server);\n registerRecordValidation(server);\n registerMarkSystemChanged(server);\n registerCreateSystem(server);\n registerCreateValidationTask(server);\n registerAddSystemToTask(server);\n registerAddValidationDependency(server);\n\n // Labels & milestones\n registerListLabels(server);\n registerCreateLabel(server);\n registerAddLabelToWorkItem(server);\n registerRemoveLabelFromWorkItem(server);\n registerListMilestones(server);\n registerCreateMilestone(server);\n registerAddItemToMilestone(server);\n registerRemoveItemFromMilestone(server);\n\n return server;\n}\n", "/* eslint-disable */\n/**\n * Generated `api` utility.\n *\n * THIS CODE IS AUTOMATICALLY GENERATED.\n *\n * To regenerate, run `npx convex dev`.\n * @module\n */\n\nimport { anyApi, componentsGeneric } from \"convex/server\";\n\n/**\n * A utility for referencing Convex functions in your app's API.\n *\n * Usage:\n * ```js\n * const myFunctionReference = api.myModule.myFunction;\n * ```\n */\nexport const api = anyApi;\nexport const internal = anyApi;\nexport const components = componentsGeneric();\n", "import { ConvexHttpClient } from \"convex/browser\";\n\nlet cachedClient: ConvexHttpClient | null = null;\n\nexport function getConvexClient(): ConvexHttpClient {\n if (cachedClient) return cachedClient;\n\n const url = process.env.NIMARA_CONVEX_URL;\n if (!url) {\n throw new Error(\n \"NIMARA_CONVEX_URL is not set. Add it to your MCP client config (e.g. Claude Desktop's mcpServers env block).\"\n );\n }\n\n cachedClient = new ConvexHttpClient(url);\n return cachedClient;\n}\n\nexport function getToken(): string {\n const token = process.env.NIMARA_TOKEN;\n if (!token) {\n throw new Error(\n \"NIMARA_TOKEN is not set. Generate a personal access token from Nimara \u2192 Settings \u2192 Personal Access Tokens, then add it to your MCP client config.\"\n );\n }\n return token;\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListOrgs(server: McpServer): void {\n server.registerTool(\n \"list_orgs\",\n {\n description:\n \"List all organizations (and the personal workspace) the authenticated user belongs to. Use this first to discover org IDs needed by other tools.\",\n inputSchema: {},\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async () => {\n const client = getConvexClient();\n const orgs = await client.action(api.mcp.listOrgs, { token: getToken() });\n return {\n content: [{ type: \"text\", text: JSON.stringify(orgs, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListProjects(server: McpServer): void {\n server.registerTool(\n \"list_projects\",\n {\n description:\n \"List projects in a given organization. Call list_orgs first to find \" +\n \"the orgId. Each project includes `statuses` \u2014 its workflow in board \" +\n \"order. Read that before setting a status on any item: those names are \" +\n \"the only accepted values, and anything else is rejected.\",\n inputSchema: { orgId: z.string().describe(\"orgId from list_orgs\") },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ orgId }) => {\n const client = getConvexClient();\n const projects = await client.action(api.mcp.listProjects, {\n token: getToken(),\n orgId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(projects, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListWorkItems(server: McpServer): void {\n server.registerTool(\n \"list_work_items\",\n {\n // The description is the only place a model learns paging exists, so it\n // states the shape of the response and what to do when hasMore is true.\n description:\n \"List non-archived work items in a project, oldest-created first. Returns \" +\n \"{ items, nextCursor, hasMore }. Long descriptions are previewed \u2014 an \" +\n \"item with descriptionTruncated: true has more text, readable via \" +\n \"fullDescriptions. When hasMore is true, call again with cursor set to \" +\n \"nextCursor to get the next page \u2014 the FIRST page is the OLDEST items, so \" +\n \"recently created ones are on the LAST page and you have not seen the \" +\n \"project until hasMore is false. Narrow with status/type/parentId/\" +\n \"needsReview rather than paging and filtering yourself. If you already \" +\n \"know which items you want, use get_work_items instead \u2014 it takes \" +\n \"displayIds like NIM-T75 and costs a fraction of a list. \" +\n \"Call list_projects first for the projectId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n status: z\n .union([z.string(), z.array(z.string())])\n .optional()\n .describe(\n \"Only items in these statuses. Names come from the project's \" +\n \"statusOrder (e.g. 'In Progress'). One name or a list.\",\n ),\n type: z\n .union([\n z.enum([\"epic\", \"feature\", \"task\", \"subtask\"]),\n z.array(z.enum([\"epic\", \"feature\", \"task\", \"subtask\"])),\n ])\n .optional()\n .describe(\"Only items of these types. One type or a list.\"),\n parentId: z\n .string()\n .optional()\n .describe(\n \"Only direct children of this workItemId. One level, not the whole subtree.\",\n ),\n needsReview: z\n .boolean()\n .optional()\n .describe(\n \"true returns only items flagged needsReview; false only unflagged ones. \" +\n \"Omit for both.\",\n ),\n limit: z\n .number()\n .int()\n .min(1)\n .max(200)\n .optional()\n .describe(\"Items per page (default 50, max 200).\"),\n cursor: z\n .number()\n .optional()\n .describe(\n \"nextCursor from the previous page. Omit for the first page.\",\n ),\n fullDescriptions: z\n .boolean()\n .optional()\n .describe(\n \"Return descriptions in full instead of previewed. Costly on large \" +\n \"projects \u2014 prefer paging, or read one item at a time.\",\n ),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n async ({\n projectId,\n limit,\n cursor,\n fullDescriptions,\n status,\n type,\n parentId,\n needsReview,\n }) => {\n const page = await getConvexClient().action(api.mcp.listWorkItems, {\n token: getToken(),\n projectId,\n limit,\n cursor,\n fullDescriptions,\n // Accepting a bare string as well as a list is what keeps a model from\n // failing validation on the overwhelmingly common single-value case.\n status:\n status === undefined\n ? undefined\n : Array.isArray(status)\n ? status\n : [status],\n type:\n type === undefined ? undefined : Array.isArray(type) ? type : [type],\n parentId,\n needsReview,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(page, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerGetWorkItems(server: McpServer): void {\n server.registerTool(\n \"get_work_items\",\n {\n // Written to be chosen *over* list_work_items whenever the caller already\n // knows which items it wants \u2014 that is the whole point of the tool, and\n // the description is the only place a model learns it.\n description:\n \"Read specific work items by id \u2014 the cheap way to re-read items you \" +\n \"already know about. Prefer this over list_work_items whenever you have \" +\n \"a displayId (e.g. NIM-T75) or a workItemId: listing a project returns \" +\n \"every item and its description, which is orders of magnitude more data. \" +\n \"Accepts up to 50 ids per call and always returns descriptions in full. \" +\n \"Returns { items, notFound }; ids in notFound either do not exist or are \" +\n \"not readable by this token. displayIds require projectId (they are \" +\n \"unique per project, not globally); workItemIds do not.\",\n inputSchema: {\n displayIds: z\n .array(z.string())\n .optional()\n .describe(\n \"Human-facing ids like ['NIM-T75', 'NIM-F27']. Case-insensitive. \" +\n \"Requires projectId.\",\n ),\n workItemIds: z\n .array(z.string())\n .optional()\n .describe(\n \"Raw workItemIds, as returned by create_work_item or list_work_items.\",\n ),\n projectId: z\n .string()\n .optional()\n .describe(\n \"projectId from list_projects. Required only when passing displayIds.\",\n ),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n async ({ displayIds, workItemIds, projectId }) => {\n const result = await getConvexClient().action(api.mcp.getWorkItems, {\n token: getToken(),\n displayIds,\n workItemIds,\n projectId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerSearchWorkItems(server: McpServer): void {\n server.registerTool(\n \"search_work_items\",\n {\n // The point of this description is to stop a model reaching for\n // list_work_items when it is looking for something by name. Listing a\n // project to find one item is the expensive mistake this tool exists to\n // prevent.\n description:\n \"Find work items in a project by title. Use this to answer 'does an \" +\n \"item for X already exist?' \u2014 listing the whole project and filtering \" +\n \"yourself is far more expensive and, because the first page is the \" +\n \"OLDEST items, easy to get wrong. Matches TITLES only, not \" +\n \"descriptions. Returns { items, query } with descriptions previewed; \" +\n \"once you know which item you want, get_work_items returns it in full. \" +\n \"Capped at 25 results \u2014 narrow the query rather than paging. \" +\n \"Call list_projects first for the projectId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n q: z\n .string()\n .min(1)\n .describe(\n \"Words to match against item titles, e.g. 'mobile modal' or \" +\n \"'shortcut'. Matching is full-text, so word order does not matter.\",\n ),\n limit: z\n .number()\n .int()\n .min(1)\n .max(25)\n .optional()\n .describe(\"Maximum results (default and maximum 25).\"),\n },\n annotations: { readOnlyHint: true },\n },\n async ({ projectId, q, limit }) => {\n const result = await getConvexClient().action(api.mcp.searchWorkItems, {\n token: getToken(),\n projectId,\n q,\n limit,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListAiReviewQueue(server: McpServer): void {\n server.registerTool(\n \"list_ai_review_queue\",\n {\n description:\n \"List work items in a project that a human has flagged for AI review \" +\n \"(aiReviewRequested). Descriptions come back in full here, since \" +\n \"enrichment needs the whole text. Returns { items, nextCursor, hasMore } \" +\n \"\u2014 when hasMore is true, call again with cursor set to nextCursor. \" +\n \"Process each item, then clear its flag by calling update_work_item with \" +\n \"aiReviewRequested: false. Call list_projects first to find the projectId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n limit: z\n .number()\n .int()\n .min(1)\n .max(200)\n .optional()\n .describe(\"Items per page (default 50, max 200).\"),\n cursor: z\n .number()\n .optional()\n .describe(\n \"nextCursor from the previous page. Omit for the first page.\",\n ),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n async ({ projectId, limit, cursor }) => {\n const page = await getConvexClient().action(api.mcp.listAiReviewQueue, {\n token: getToken(),\n projectId,\n limit,\n cursor,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(page, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\nimport { TITLE_GUIDANCE } from \"./titleGuidance.js\";\nimport { STATUS_GUIDANCE } from \"./statusGuidance.js\";\n\nexport function registerCreateWorkItem(server: McpServer): void {\n server.registerTool(\n \"create_work_item\",\n {\n description:\n \"Create a new work item in a project. Hierarchy rules: epics live at the root; features go under epics; tasks go under epics or features (or root); subtasks must go under a task. Returns the new workItemId and its display ID (e.g. NIM-42).\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n type: z\n .enum([\"epic\", \"feature\", \"task\", \"subtask\"])\n .describe(\"Item type \u2014 drives hierarchy validation\"),\n title: z.string().min(1).describe(TITLE_GUIDANCE),\n description: z.string().optional().describe(\"Optional markdown body\"),\n parentId: z\n .string()\n .optional()\n .describe(\n \"workItemId of the parent. Required for subtask, optional otherwise.\",\n ),\n status: z\n .string()\n .optional()\n .describe(\n STATUS_GUIDANCE,\n ),\n priority: z\n .enum([\"p0\", \"p1\", \"p2\", \"p3\"])\n .optional()\n .describe(\"p0 highest, p3 lowest. Defaults to p2.\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const client = getConvexClient();\n const result = await client.action(api.mcp.createWorkItem, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "/**\n * What a work-item title should read like, stated once.\n *\n * This exists because \"Short, descriptive title\" \u2014 the previous guidance on\n * `create_work_item` \u2014 is satisfied by \"Fix hasChildren computation in\n * list.tsx\". That is short and it does describe something, and it is unreadable\n * to anyone who has not just been in that file. Titles are what a board shows;\n * a board full of symbol names cannot be scanned.\n *\n * The em-dash and verbosity rules come from NIM-T117, which Jordan filed\n * before this and which asked for exactly that: \"Remove the em dash and\n * other verbose title that make it hard to read.\"\n *\n * Shared by `create_work_item` and `update_work_item` so the rule cannot hold\n * on one path and not the other \u2014 retitling is the same act as titling, and\n * `update_work_item` previously carried no guidance at all.\n */\nexport const TITLE_GUIDANCE =\n \"A title a teammate can understand at a glance, without opening the item or \" +\n \"knowing the codebase. Say what is wrong or what changes FOR A PERSON, in \" +\n \"plain words \u2014 not the mechanism, the file, or the symbol. \" +\n 'Good: \"Sorted list shows an expand arrow that does nothing\". ' +\n 'Bad: \"Fix hasChildren computation in list.tsx\". ' +\n 'Good: \"Long titles wrap to three lines and are hard to read\". ' +\n 'Bad: \"Adjust COLUMNS.title min-width constant\". ' +\n \"Prefer ordinary words over internal abbreviations, and only name a file, \" +\n \"function or identifier when it genuinely is the clearest way to say it \" +\n \"(a tool or endpoint the user calls by name, for instance). No ticket \" +\n \"prefixes or status markers \u2014 the board renders those already. Root cause, \" +\n \"file paths, and reproduction steps belong in the description, which has \" +\n \"room for them. \" +\n \"Keep it to one plain clause. Do NOT use an em dash, and do not use the \" +\n '\"Area: thing, other thing\" shape \u2014 both are ways of stapling a second ' +\n \"title on and they are what makes these hard to read. \" +\n 'Bad: \"Gantt: tighten row density, match app typography, stop the chart ' +\n 'falling short of its container\". ' +\n 'Good: \"Gantt chart looks nothing like the rest of the app\". ' +\n \"If the title needs a comma-spliced list to be accurate, that is a sign the \" +\n \"item is really several items, not a sign it needs a longer title.\";\n", "/**\n * How to choose a status, stated once.\n *\n * The rule the tools already stated \u2014 \"a status name from the project's\n * statusOrder\" \u2014 referred to data no tool returned. An agent could not read a\n * project's workflow, so it guessed a plausible-sounding name, and the guess\n * was frequently \"In Review\" on boards whose workflow only ever had \"Review\".\n * `list_projects` now returns `statuses`, which is what makes this instruction\n * followable rather than aspirational.\n *\n * The second half matters as much as the first. A status is POSITIONAL \u2014 it is\n * the board column \u2014 so inventing one is not a labelling choice, it reshapes\n * the board and every status chart that aggregates across projects. Anything\n * that describes an item without saying where it sits in the flow is a label:\n * `list_labels`, `create_label` and `add_label_to_work_item` exist for exactly\n * that, and cost nothing to add. This is NIM-T49's decision, held to.\n *\n * Shared by `create_work_item` and `update_work_item`. `update_work_item.status`\n * previously carried no guidance at all, which is the path most likely to move\n * an item to an invented status.\n */\nexport const STATUS_GUIDANCE =\n \"Must be one of the names in the project's `statuses`, returned by \" +\n \"list_projects. Read it rather than guessing \u2014 a status is the board \" +\n \"column, so a name the workflow does not have is rejected, and before that \" +\n \"check existed such items rendered in the first column while claiming \" +\n \"otherwise. Match the existing name exactly, including its wording: if the \" +\n \"workflow says \\\"Review\\\", do not write \\\"In Review\\\". \" +\n \"Do NOT invent a status to capture something about an item. Statuses are \" +\n \"shared across the whole project and aggregated on the dashboard, so each \" +\n \"new one is a permanent extra band there. Anything that describes an item \" +\n \"rather than locating it in the flow belongs in a LABEL \u2014 see create_label \" +\n \"and add_label_to_work_item. Defaults to the first status when omitted.\";\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateProject(server: McpServer): void {\n server.registerTool(\n \"create_project\",\n {\n description:\n \"Create a new project in an org. Prefix must be unique within the org and is uppercased (e.g. 'NIM' yields work items NIM-1, NIM-2\u2026). Caller becomes the project admin. Returns the new projectId.\",\n inputSchema: {\n orgId: z.string().describe(\"orgId from list_orgs\"),\n name: z.string().min(1).describe(\"Project name\"),\n prefix: z\n .string()\n .min(1)\n .max(8)\n .describe(\n \"Short uppercase prefix for work item IDs (e.g. 'NIM'). Unique per org.\",\n ),\n description: z\n .string()\n .optional()\n .describe(\"Optional markdown description\"),\n isPrivate: z\n .boolean()\n .optional()\n .describe(\n \"If true, only explicitly added members see it. Defaults to false.\",\n ),\n workflowTemplate: z\n .enum([\"default\", \"simple\", \"kanban\", \"bug\"])\n .optional()\n .describe(\n \"Status workflow. Defaults to 'default' (Backlog/Todo/In Progress/Review/Done).\",\n ),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const client = getConvexClient();\n const result = await client.action(api.mcp.createProject, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\nimport { TITLE_GUIDANCE } from \"./titleGuidance.js\";\nimport { STATUS_GUIDANCE } from \"./statusGuidance.js\";\nimport { RESEARCH_FORMAT } from \"./researchFormat.js\";\n\nexport function registerUpdateWorkItem(server: McpServer): void {\n server.registerTool(\n \"update_work_item\",\n {\n description:\n \"Update an existing work item: title, description, status, priority, parent, or review flags. Any update also stamps the item as AI-touched.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n title: z.string().min(1).optional().describe(TITLE_GUIDANCE),\n description: z\n .string()\n .optional()\n .describe(\n \"Full markdown body, replacing what is there. \" + RESEARCH_FORMAT,\n ),\n status: z.string().optional().describe(STATUS_GUIDANCE),\n priority: z.enum([\"p0\", \"p1\", \"p2\", \"p3\"]).optional(),\n parentId: z\n .string()\n .nullable()\n .optional()\n .describe(\"New parent workItemId, null to move to root.\"),\n needsReview: z\n .boolean()\n .optional()\n .describe(\n \"Flag the item for manual human review \u2014 set true when your enrichment was thin or uncertain.\",\n ),\n reviewReason: z\n .string()\n .optional()\n .describe(\n \"Short reason the item needs manual review (shown to the human).\",\n ),\n aiReviewRequested: z\n .boolean()\n .optional()\n .describe(\n \"The human\u2192AI review flag. Set false to clear it after you have reviewed/enriched an item from list_ai_review_queue.\",\n ),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.updateWorkItem, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "/**\n * The shape of the automated research block an enrichment agent appends to a\n * work item's description.\n *\n * Two reasons this is stated here rather than left to each agent's own taste.\n *\n * The web app parses this block out of the description and renders it in its\n * own tab on the item (NIM-T125). The anchor heading is therefore a contract,\n * not a style choice: change its wording and the tab stops appearing, with the\n * text still sitting in the description and nothing failing loudly.\n *\n * And the existing blocks are decorated with emoji section markers \u2014 \uD83D\uDD0E, \uD83D\uDD17,\n * \uD83E\uDDED, \uD83C\uDF9A. They read as noise in a panel that is already labelled \"Research\",\n * they carry no information the heading does not, and they are the first thing\n * Jordan asked to remove. The parser accepts the old emoji heading so the 20\n * items already enriched keep working; nothing new should write one.\n *\n * Deliberately NOT permitted: raw HTML. The app renders this with\n * `react-markdown` and no `rehype-raw`, so HTML is stripped rather than shown \u2014\n * and turning that on would render agent-authored markup whose inputs include\n * untrusted work-item text. Mermaid fences cover the diagram case without\n * opening that door.\n */\nexport const RESEARCH_FORMAT = `When appending automated research to a description, use EXACTLY this format, \\\nafter the human-written text:\n\n---\n## Research (auto)\n\n### Findings\n- One bullet per verified fact, each naming what you checked.\n\n### Dependencies\n- Items this blocks or is blocked by, by displayId. Omit the section if none.\n\n### Duplicates\n- Existing items covering the same work, by displayId. Omit if none.\n\n### Suggested priority\nOne line. Say \"No change\" when it is already right.\n\nRules:\n- The \"## Research (auto)\" heading is EXACT and is what the app keys on to show \\\nthis in its own tab. Do not reword it, renumber its level, or translate it.\n- NO EMOJI anywhere in the block, in headings or in bullets. Older items carry \\\nemoji headings; do not copy them.\n- Omit a section rather than writing \"None found\" in it. An empty section is \\\nnoise the reader still has to read.\n- Never edit or delete the human-written text above the rule. Append only.\n- Markdown only. GFM tables are supported and are the right choice for \\\ncomparisons. Raw HTML is NOT rendered by the app and must not be used.\n- For a workflow, sequence or state machine, use a \\\\\\`\\\\\\`\\\\\\`mermaid fenced block. \\\nThat is the supported way to draw one.\n- Say what you verified and how. \"Confirmed X still returns Y (file:line)\" is \\\nworth more than a conclusion with no trail.`;\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerMoveWorkItem(server: McpServer): void {\n server.registerTool(\n \"move_work_item\",\n {\n // Everything a model needs to predict the damage has to be stated here \u2014\n // the description is the only channel it has. The consequences that are\n // NOT obvious from the name are the ones worth the tokens: the display ID\n // changes, and labels/milestones do not survive.\n description:\n \"Move a work item to a different project, taking its whole subtree \" +\n \"with it \u2014 children and grandchildren move too, and the hierarchy is \" +\n \"preserved. Both projects must be in the same organization, and you \" +\n \"need write access to both. \" +\n \"Not reversible by calling this again: the item is renumbered in the \" +\n \"destination, so NIM-T44 might become SKA-T18 and the old ID stops \" +\n \"resolving. Labels and milestone assignments are dropped, because both \" +\n \"belong to the project being left; a status the destination doesn't \" +\n \"define falls back to its first status. The response reports every \" +\n \"old \u2192 new ID plus everything that was dropped or remapped. \" +\n \"Comments, images, attached documents, PR links and history all follow \" +\n \"the item. Call list_projects first for the target projectId.\",\n inputSchema: {\n workItemId: z\n .string()\n .describe(\"workItemId from list_work_items \u2014 the item to move.\"),\n targetProjectId: z\n .string()\n .describe(\n \"projectId from list_projects \u2014 the destination. Must be in the \" +\n \"same org as the item's current project.\",\n ),\n },\n annotations: {\n readOnlyHint: false,\n // Renumbering display IDs and deleting label/milestone links are\n // overwrites, not additions \u2014 this belongs with the tools a client\n // should prompt on rather than auto-approve.\n destructiveHint: true,\n // Calling it twice does not land in the same place: the second call\n // either errors as already-there or moves the item on again.\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n async ({ workItemId, targetProjectId }) => {\n const result = await getConvexClient().action(\n api.mcp.moveWorkItemToProject,\n { token: getToken(), workItemId, targetProjectId },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateDocument(server: McpServer): void {\n server.registerTool(\n \"create_document\",\n {\n description:\n \"Create a markdown project document. Use type 'prd' for project docs or 'fd' for feature/work-item documents.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n title: z.string().min(1),\n type: z\n .enum([\"prd\", \"fd\"])\n .describe(\n \"Document type. 'fd' is stored as the app's feature document type.\",\n ),\n workItemId: z\n .string()\n .optional()\n .describe(\"Required for fd documents; omitted for prd.\"),\n content: z\n .string()\n .optional()\n .describe(\"Optional initial markdown content.\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.createDocument, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerUpdateDocument(server: McpServer): void {\n server.registerTool(\n \"update_document\",\n {\n description:\n \"Update an existing document's markdown content and/or title. Use this to fill in or revise a document created earlier (e.g. backfill content into an empty doc). documentId comes from list_documents. Provided content fully replaces the existing content.\",\n inputSchema: {\n documentId: z.string().describe(\"documentId from list_documents\"),\n content: z\n .string()\n .optional()\n .describe(\n \"New markdown content. Replaces the document's existing content.\",\n ),\n title: z.string().min(1).optional().describe(\"New title (optional).\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.updateDocument, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListDocuments(server: McpServer): void {\n server.registerTool(\n \"list_documents\",\n {\n description:\n \"List PRD/FD markdown documents for a project, optionally filtered to one work item.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n workItemId: z\n .string()\n .optional()\n .describe(\"Optional workItemId to list linked FD documents.\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.listDocuments, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nconst projectLinkCategory = z.enum([\n \"api\",\n \"dashboard\",\n \"documentation\",\n \"repository\",\n \"service\",\n \"other\",\n]);\n\nexport function registerCreateProjectLink(server: McpServer): void {\n server.registerTool(\n \"create_project_link\",\n {\n description:\n \"Save a link on a project for resources like APIs, dashboards, documentation, repositories, or services.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n title: z.string().min(1).max(120),\n url: z.string().url().describe(\"http(s) URL to save\"),\n description: z.string().max(500).optional(),\n category: projectLinkCategory.optional().describe(\"Defaults to other.\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.createProjectLink, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListProjectLinks(server: McpServer): void {\n server.registerTool(\n \"list_project_links\",\n {\n description:\n \"List saved links for a project, such as APIs, dashboards, docs, repositories, and services.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ projectId }) => {\n const result = await getConvexClient().action(api.mcp.listProjectLinks, {\n token: getToken(),\n projectId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddWorkItemImage(server: McpServer): void {\n server.registerTool(\n \"add_work_item_image\",\n {\n description:\n \"Attach an externally hosted image URL to a work item. Use this when an MCP client has a screenshot, mockup, or generated image URL to preserve with the task.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n imageUrl: z\n .string()\n .url()\n .describe(\"Public or otherwise fetchable http(s) image URL\"),\n filename: z.string().optional().describe(\"Optional display filename\"),\n altText: z\n .string()\n .optional()\n .describe(\"Optional description/caption for the image\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.addWorkItemImage, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListWorkItemImages(server: McpServer): void {\n server.registerTool(\n \"list_work_item_images\",\n {\n description:\n \"List image attachments for a work item, including uploaded images and externally attached MCP images. Call list_work_items first to find the workItemId.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ workItemId }) => {\n const result = await getConvexClient().action(\n api.mcp.listWorkItemImages,\n {\n token: getToken(),\n workItemId,\n },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddWorkItemComment(server: McpServer): void {\n server.registerTool(\n \"add_work_item_comment\",\n {\n description:\n \"Add a timestamped comment to a work item. Use this to record notes, updates, \" +\n \"or an 'AI touched' entry instead of editing the description. Comments are \" +\n \"stamped with the current time automatically and never overwrite each other.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n body: z.string().min(1).describe(\"Comment text (markdown supported)\"),\n source: z\n .enum([\"user\", \"ai\"])\n .optional()\n .describe('Who authored it; defaults to \"ai\" for MCP callers'),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(\n api.mcp.addWorkItemComment,\n {\n token: getToken(),\n ...args,\n },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListWorkItemComments(server: McpServer): void {\n server.registerTool(\n \"list_work_item_comments\",\n {\n description:\n \"List the timestamped comments on a work item, oldest first. Use this to check \" +\n \"whether the item was already touched/commented before adding a new comment.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(\n api.mcp.listWorkItemComments,\n {\n token: getToken(),\n ...args,\n },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListValidations(server: McpServer): void {\n server.registerTool(\n \"list_validations\",\n {\n description:\n \"List a project's validation graph: core systems and validation/test tasks with their DERIVED state (passing, failing, stale, unvalidated). A task is 'stale' when a system it covers changed since it was last validated, or an upstream dependency is no longer passing. Call list_projects first to find the projectId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ projectId }) => {\n const client = getConvexClient();\n const graph = await client.action(api.mcp.listValidations, {\n token: getToken(),\n projectId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(graph, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerRecordValidation(server: McpServer): void {\n server.registerTool(\n \"record_validation\",\n {\n description:\n \"Check off a validation task by recording a pass or fail. Stamps the task as validated 'now', clearing any stale flag until a covered system changes or an upstream dependency moves again. Get validationTaskId from list_validations.\",\n inputSchema: {\n validationTaskId: z\n .string()\n .describe(\"validationTaskId from list_validations\"),\n result: z\n .enum([\"pass\", \"fail\"])\n .describe(\"Outcome of running the test\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ validationTaskId, result }) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.recordValidation, {\n token: getToken(),\n validationTaskId,\n result,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerMarkSystemChanged(server: McpServer): void {\n server.registerTool(\n \"mark_system_changed\",\n {\n description:\n \"Mark a core system as changed. This is the single action that invalidates testing: every validation task that covers this system (and everything transitively depending on those tasks) immediately becomes 'stale' and needs revalidation. Get systemId from list_validations.\",\n inputSchema: {\n systemId: z.string().describe(\"systemId from list_validations\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async ({ systemId }) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.markSystemChanged, {\n token: getToken(),\n systemId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateSystem(server: McpServer): void {\n server.registerTool(\n \"create_system\",\n {\n description:\n \"Create a core system in a project \u2014 a subsystem (e.g. Auth, Payments, Sync) whose change should invalidate the validation tasks that cover it. Returns the new systemId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n name: z.string().min(1).describe(\"Short system name, e.g. 'Auth'\"),\n description: z.string().optional().describe(\"Optional details\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.createSystem, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateValidationTask(server: McpServer): void {\n server.registerTool(\n \"create_validation_task\",\n {\n description:\n \"Create a validation/test task in a project. After creating it, use add_system_to_task to declare which systems it exercises (so it goes stale when they change) and add_validation_dependency to order it after other tasks. Returns the new validationTaskId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n title: z.string().min(1).describe(\"What this test validates\"),\n description: z.string().optional().describe(\"Optional steps / details\"),\n kind: z\n .enum([\"auto\", \"manual\"])\n .optional()\n .describe(\n \"'auto' if runnable by a test runner, 'manual' if a human checks it. Defaults to manual.\",\n ),\n workItemId: z\n .string()\n .optional()\n .describe(\n \"Optional workItemId to link this test to a feature for traceability\",\n ),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.createValidationTask, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddSystemToTask(server: McpServer): void {\n server.registerTool(\n \"add_system_to_task\",\n {\n description:\n \"Declare that a validation task COVERS (exercises) a system. Once linked, the task becomes 'stale' whenever that system is marked changed. Idempotent. Both IDs come from list_validations and must be in the same project.\",\n inputSchema: {\n validationTaskId: z\n .string()\n .describe(\"validationTaskId from list_validations\"),\n systemId: z.string().describe(\"systemId from list_validations\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ validationTaskId, systemId }) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.addSystemToTask, {\n token: getToken(),\n validationTaskId,\n systemId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddValidationDependency(server: McpServer): void {\n server.registerTool(\n \"add_validation_dependency\",\n {\n description:\n \"Make one validation task depend on another (validationTaskId depends on dependsOnTaskId). The dependent goes 'stale' whenever the upstream task is not passing or gets revalidated. Cycles and self-dependencies are rejected. Idempotent. Both IDs come from list_validations and must be in the same project.\",\n inputSchema: {\n validationTaskId: z\n .string()\n .describe(\"The dependent (downstream) task\"),\n dependsOnTaskId: z\n .string()\n .describe(\"The dependency (upstream) task it relies on\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ validationTaskId, dependsOnTaskId }) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.addValidationDependency, {\n token: getToken(),\n validationTaskId,\n dependsOnTaskId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListLabels(server: McpServer): void {\n server.registerTool(\n \"list_labels\",\n {\n description:\n \"List all labels defined in a project. Returns each label's id, name, and color. Use the labelId with add_label_to_work_item / remove_label_from_work_item.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.listLabels, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateLabel(server: McpServer): void {\n server.registerTool(\n \"create_label\",\n {\n description:\n \"Apply-or-seed a label. Returns the existing label if the name is \" +\n \"already taken (idempotent), and otherwise creates it ONLY if the name \" +\n \"is one of the curated ones. Any other new name is REFUSED \u2014 the reply \" +\n \"carries `refused: true`, the reason, and `available`, the project's \" +\n \"existing labels. Agents apply labels; they do not invent them, because \" +\n \"a near-duplicate of an existing label splits the vocabulary silently. \" +\n \"Prefer list_labels first. Colors are ignored for curated names so the \" +\n \"vocabulary looks the same in every project.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n name: z\n .string()\n .min(1)\n .describe(\"Label name, unique within the project\"),\n color: z\n .string()\n .regex(/^#[0-9a-fA-F]{6}$/)\n .optional()\n .describe(\"Hex color like #2563eb. Defaults to a neutral slate.\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.createLabel, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddLabelToWorkItem(server: McpServer): void {\n server.registerTool(\n \"add_label_to_work_item\",\n {\n description:\n \"Attach a label to a work item (idempotent). The label and work item must be in the same project. Get labelIds from list_labels / create_label.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n labelId: z\n .string()\n .describe(\"labelId from list_labels or create_label\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.setWorkItemLabel, {\n token: getToken(),\n ...args,\n attached: true,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerRemoveLabelFromWorkItem(server: McpServer): void {\n server.registerTool(\n \"remove_label_from_work_item\",\n {\n description:\n \"Remove a label from a work item (idempotent \u2014 a no-op if it wasn't attached).\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n labelId: z.string().describe(\"labelId from list_labels\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.setWorkItemLabel, {\n token: getToken(),\n ...args,\n attached: false,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListMilestones(server: McpServer): void {\n server.registerTool(\n \"list_milestones\",\n {\n description:\n \"List all milestones in a project. Returns each milestone's id, name, description, dueDate (unix ms), and status. Use the milestoneId with add_item_to_milestone / remove_item_from_milestone.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.listMilestones, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateMilestone(server: McpServer): void {\n server.registerTool(\n \"create_milestone\",\n {\n description:\n \"Create a milestone in a project. Returns the milestoneId. Good for grouping work into phases (e.g. 'Phase 1 \u2014 Web', 'Phase 2 \u2014 Native').\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n name: z.string().min(1).describe(\"Milestone name\"),\n description: z\n .string()\n .optional()\n .describe(\"Optional markdown description\"),\n dueDate: z\n .number()\n .optional()\n .describe(\"Optional due date as a unix timestamp in milliseconds\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.createMilestone, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddItemToMilestone(server: McpServer): void {\n server.registerTool(\n \"add_item_to_milestone\",\n {\n description:\n \"Associate a work item with a milestone (idempotent). Both must be in the same project.\",\n inputSchema: {\n milestoneId: z\n .string()\n .describe(\"milestoneId from list_milestones or create_milestone\"),\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(\n api.mcp.setWorkItemMilestone,\n {\n token: getToken(),\n ...args,\n attached: true,\n },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerRemoveItemFromMilestone(server: McpServer): void {\n server.registerTool(\n \"remove_item_from_milestone\",\n {\n description:\n \"Remove a work item's association with a milestone (idempotent \u2014 a no-op if it wasn't associated).\",\n inputSchema: {\n milestoneId: z.string().describe(\"milestoneId from list_milestones\"),\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(\n api.mcp.setWorkItemMilestone,\n {\n token: getToken(),\n ...args,\n attached: false,\n },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n"],
5
- "mappings": ";;;AAQA,SAAS,4BAA4B;;;ACRrC,SAAS,iBAAiB;;;ACU1B,SAAS,QAAQ,yBAAyB;AAUnC,IAAM,MAAM;AAEZ,IAAM,aAAa,kBAAkB;;;ACtB5C,SAAS,wBAAwB;AAEjC,IAAI,eAAwC;AAErC,SAAS,kBAAoC;AAClD,MAAI,aAAc,QAAO;AAEzB,QAAM,MAAM,QAAQ,IAAI;AACxB,MAAI,CAAC,KAAK;AACR,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,iBAAe,IAAI,iBAAiB,GAAG;AACvC,SAAO;AACT;AAEO,SAAS,WAAmB;AACjC,QAAM,QAAQ,QAAQ,IAAI;AAC1B,MAAI,CAAC,OAAO;AACV,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;;;ACtBO,SAAS,iBAAiB,QAAyB;AACxD,SAAO;AAAA,IACL;AA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yBAAuB,MAAM;AAC7B,yBAAuB,MAAM;AAC7B,wBAAsB,MAAM;AAC5B,4BAA0B,MAAM;AAChC,2BAAyB,MAAM;AAC/B,2BAAyB,MAAM;AAC/B,6BAA2B,MAAM;AACjC,6BAA2B,MAAM;AACjC,+BAA6B,MAAM;AAGnC,0BAAwB,MAAM;AAC9B,2BAAyB,MAAM;AAC/B,4BAA0B,MAAM;AAChC,uBAAqB,MAAM;AAC3B,+BAA6B,MAAM;AACnC,0BAAwB,MAAM;AAC9B,kCAAgC,MAAM;AAGtC,qBAAmB,MAAM;AACzB,sBAAoB,MAAM;AAC1B,6BAA2B,MAAM;AACjC,kCAAgC,MAAM;AACtC,yBAAuB,MAAM;AAC7B,0BAAwB,MAAM;AAC9B,6BAA2B,MAAM;AACjC,kCAAgC,MAAM;AAEtC,SAAO;AACT;;;AD9EA,WAAW,KAAK,CAAC,OAAO,QAAQ,QAAQ,OAAO,GAAY;AACzD,UAAQ,CAAC,IAAI,IAAI,SAAoB,QAAQ,MAAM,GAAG,IAAI;AAC5D;AAKA,eAAe,OAAO;AACpB,QAAM,SAAS,aAAa;AAC5B,QAAM,YAAY,IAAI,qBAAqB;AAC3C,QAAM,OAAO,QAAQ,SAAS;AAEhC;AAEA,KAAK,EAAE,MAAM,CAAC,QAAQ;AACpB,UAAQ,MAAM,2BAA2B,GAAG;AAC5C,UAAQ,KAAK,CAAC;AAChB,CAAC;",
6
- "names": ["z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z"]
3
+ "sources": ["../src/index.ts", "../src/server.ts", "../../convex/convex/_generated/api.js", "../src/convex.ts", "../src/tools/list-orgs.ts", "../src/tools/list-projects.ts", "../src/tools/list-work-items.ts", "../src/tools/get-work-items.ts", "../src/tools/search-work-items.ts", "../src/tools/list-ai-review-queue.ts", "../src/tools/get-active-block.ts", "../src/tools/create-work-item.ts", "../src/tools/titleGuidance.ts", "../src/tools/statusGuidance.ts", "../../convex/convex/lib/descriptionLimits.ts", "../src/tools/descriptionGuidance.ts", "../src/tools/create-project.ts", "../src/tools/update-work-item.ts", "../src/tools/researchFormat.ts", "../src/tools/move-work-item.ts", "../src/tools/create-document.ts", "../src/tools/update-document.ts", "../src/tools/list-documents.ts", "../src/tools/create-project-link.ts", "../src/tools/list-project-links.ts", "../src/tools/list-scratch-notes.ts", "../src/tools/resolve-scratch-note.ts", "../src/tools/add-work-item-image.ts", "../src/tools/list-work-item-images.ts", "../src/tools/add-work-item-comment.ts", "../src/tools/list-work-item-comments.ts", "../src/tools/list-validations.ts", "../src/tools/record-validation.ts", "../src/tools/mark-system-changed.ts", "../src/tools/create-system.ts", "../src/tools/create-validation-task.ts", "../src/tools/add-system-to-task.ts", "../src/tools/add-validation-dependency.ts", "../src/tools/list-labels.ts", "../src/tools/create-label.ts", "../src/tools/add-label-to-work-item.ts", "../src/tools/remove-label-from-work-item.ts", "../src/tools/list-milestones.ts", "../src/tools/create-milestone.ts", "../src/tools/add-item-to-milestone.ts", "../src/tools/remove-item-from-milestone.ts"],
4
+ "sourcesContent": ["#!/usr/bin/env node\n// MCP stdio transport reserves stdout for JSON-RPC frames. Any library that\n// writes to stdout (e.g. the Convex client's `[CONVEX A(uth)]` info logs)\n// corrupts the stream. Redirect console.* to stderr before anything else loads.\nfor (const m of [\"log\", \"info\", \"warn\", \"debug\"] as const) {\n console[m] = (...args: unknown[]) => console.error(...args);\n}\n\nimport { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\nimport { createServer } from \"./server.js\";\n\nasync function main() {\n const server = createServer();\n const transport = new StdioServerTransport();\n await server.connect(transport);\n // Server runs until stdin closes; nothing else to do here.\n}\n\nmain().catch((err) => {\n console.error(\"nimara-mcp: fatal error\", err);\n process.exit(1);\n});\n", "import { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { registerListOrgs } from \"./tools/list-orgs.js\";\nimport { registerListProjects } from \"./tools/list-projects.js\";\nimport { registerListWorkItems } from \"./tools/list-work-items.js\";\nimport { registerGetWorkItems } from \"./tools/get-work-items.js\";\nimport { registerSearchWorkItems } from \"./tools/search-work-items.js\";\nimport { registerListAiReviewQueue } from \"./tools/list-ai-review-queue.js\";\nimport { registerGetActiveBlock } from \"./tools/get-active-block.js\";\nimport { registerCreateWorkItem } from \"./tools/create-work-item.js\";\nimport { registerCreateProject } from \"./tools/create-project.js\";\nimport { registerUpdateWorkItem } from \"./tools/update-work-item.js\";\nimport { registerMoveWorkItem } from \"./tools/move-work-item.js\";\nimport { registerCreateDocument } from \"./tools/create-document.js\";\nimport { registerUpdateDocument } from \"./tools/update-document.js\";\nimport { registerListDocuments } from \"./tools/list-documents.js\";\nimport { registerCreateProjectLink } from \"./tools/create-project-link.js\";\nimport { registerListProjectLinks } from \"./tools/list-project-links.js\";\nimport { registerListScratchNotes } from \"./tools/list-scratch-notes.js\";\nimport { registerResolveScratchNote } from \"./tools/resolve-scratch-note.js\";\nimport { registerAddWorkItemImage } from \"./tools/add-work-item-image.js\";\nimport { registerListWorkItemImages } from \"./tools/list-work-item-images.js\";\nimport { registerAddWorkItemComment } from \"./tools/add-work-item-comment.js\";\nimport { registerListWorkItemComments } from \"./tools/list-work-item-comments.js\";\nimport { registerListValidations } from \"./tools/list-validations.js\";\nimport { registerRecordValidation } from \"./tools/record-validation.js\";\nimport { registerMarkSystemChanged } from \"./tools/mark-system-changed.js\";\nimport { registerCreateSystem } from \"./tools/create-system.js\";\nimport { registerCreateValidationTask } from \"./tools/create-validation-task.js\";\nimport { registerAddSystemToTask } from \"./tools/add-system-to-task.js\";\nimport { registerAddValidationDependency } from \"./tools/add-validation-dependency.js\";\nimport { registerListLabels } from \"./tools/list-labels.js\";\nimport { registerCreateLabel } from \"./tools/create-label.js\";\nimport { registerAddLabelToWorkItem } from \"./tools/add-label-to-work-item.js\";\nimport { registerRemoveLabelFromWorkItem } from \"./tools/remove-label-from-work-item.js\";\nimport { registerListMilestones } from \"./tools/list-milestones.js\";\nimport { registerCreateMilestone } from \"./tools/create-milestone.js\";\nimport { registerAddItemToMilestone } from \"./tools/add-item-to-milestone.js\";\nimport { registerRemoveItemFromMilestone } from \"./tools/remove-item-from-milestone.js\";\n\nexport function createServer(): McpServer {\n const server = new McpServer({\n name: \"nimara\",\n version: \"0.1.0\",\n });\n\n registerListOrgs(server);\n registerListProjects(server);\n registerListWorkItems(server);\n registerGetWorkItems(server);\n registerSearchWorkItems(server);\n registerListAiReviewQueue(server);\n registerGetActiveBlock(server);\n registerCreateProject(server);\n registerCreateWorkItem(server);\n registerUpdateWorkItem(server);\n registerMoveWorkItem(server);\n registerCreateDocument(server);\n registerUpdateDocument(server);\n registerListDocuments(server);\n registerCreateProjectLink(server);\n registerListProjectLinks(server);\n registerListScratchNotes(server);\n registerResolveScratchNote(server);\n registerAddWorkItemImage(server);\n registerListWorkItemImages(server);\n registerAddWorkItemComment(server);\n registerListWorkItemComments(server);\n\n // Validation / test-dependency framework\n registerListValidations(server);\n registerRecordValidation(server);\n registerMarkSystemChanged(server);\n registerCreateSystem(server);\n registerCreateValidationTask(server);\n registerAddSystemToTask(server);\n registerAddValidationDependency(server);\n\n // Labels & milestones\n registerListLabels(server);\n registerCreateLabel(server);\n registerAddLabelToWorkItem(server);\n registerRemoveLabelFromWorkItem(server);\n registerListMilestones(server);\n registerCreateMilestone(server);\n registerAddItemToMilestone(server);\n registerRemoveItemFromMilestone(server);\n\n return server;\n}\n", "/* eslint-disable */\n/**\n * Generated `api` utility.\n *\n * THIS CODE IS AUTOMATICALLY GENERATED.\n *\n * To regenerate, run `npx convex dev`.\n * @module\n */\n\nimport { anyApi, componentsGeneric } from \"convex/server\";\n\n/**\n * A utility for referencing Convex functions in your app's API.\n *\n * Usage:\n * ```js\n * const myFunctionReference = api.myModule.myFunction;\n * ```\n */\nexport const api = anyApi;\nexport const internal = anyApi;\nexport const components = componentsGeneric();\n", "import { ConvexHttpClient } from \"convex/browser\";\n\nlet cachedClient: ConvexHttpClient | null = null;\n\nexport function getConvexClient(): ConvexHttpClient {\n if (cachedClient) return cachedClient;\n\n const url = process.env.NIMARA_CONVEX_URL;\n if (!url) {\n throw new Error(\n \"NIMARA_CONVEX_URL is not set. Add it to your MCP client config (e.g. Claude Desktop's mcpServers env block).\"\n );\n }\n\n cachedClient = new ConvexHttpClient(url);\n return cachedClient;\n}\n\nexport function getToken(): string {\n const token = process.env.NIMARA_TOKEN;\n if (!token) {\n throw new Error(\n \"NIMARA_TOKEN is not set. Generate a personal access token from Nimara \u2192 Settings \u2192 Personal Access Tokens, then add it to your MCP client config.\"\n );\n }\n return token;\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListOrgs(server: McpServer): void {\n server.registerTool(\n \"list_orgs\",\n {\n description:\n \"List all organizations (and the personal workspace) the authenticated user belongs to. Use this first to discover org IDs needed by other tools.\",\n inputSchema: {},\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async () => {\n const client = getConvexClient();\n const orgs = await client.action(api.mcp.listOrgs, { token: getToken() });\n return {\n content: [{ type: \"text\", text: JSON.stringify(orgs, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListProjects(server: McpServer): void {\n server.registerTool(\n \"list_projects\",\n {\n description:\n \"List projects in a given organization. Call list_orgs first to find \" +\n \"the orgId. Each project includes `statuses` \u2014 its workflow in board \" +\n \"order. Read that before setting a status on any item: those names are \" +\n \"the only accepted values, and anything else is rejected.\",\n inputSchema: { orgId: z.string().describe(\"orgId from list_orgs\") },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ orgId }) => {\n const client = getConvexClient();\n const projects = await client.action(api.mcp.listProjects, {\n token: getToken(),\n orgId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(projects, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListWorkItems(server: McpServer): void {\n server.registerTool(\n \"list_work_items\",\n {\n // The description is the only place a model learns paging exists, so it\n // states the shape of the response and what to do when hasMore is true.\n description:\n \"List non-archived work items in a project, oldest-created first. Returns \" +\n \"{ items, nextCursor, hasMore }. Long descriptions are previewed \u2014 an \" +\n \"item with descriptionTruncated: true has more text, readable via \" +\n \"fullDescriptions. When hasMore is true, call again with cursor set to \" +\n \"nextCursor to get the next page \u2014 the FIRST page is the OLDEST items, so \" +\n \"recently created ones are on the LAST page and you have not seen the \" +\n \"project until hasMore is false. Narrow with status/type/parentId/\" +\n \"needsReview rather than paging and filtering yourself. If you already \" +\n \"know which items you want, use get_work_items instead \u2014 it takes \" +\n \"displayIds like NIM-T75 and costs a fraction of a list. \" +\n \"Call list_projects first for the projectId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n status: z\n .union([z.string(), z.array(z.string())])\n .optional()\n .describe(\n \"Only items in these statuses. Names come from the project's \" +\n \"statusOrder (e.g. 'In Progress'). One name or a list.\",\n ),\n type: z\n .union([\n z.enum([\"epic\", \"feature\", \"task\", \"subtask\"]),\n z.array(z.enum([\"epic\", \"feature\", \"task\", \"subtask\"])),\n ])\n .optional()\n .describe(\"Only items of these types. One type or a list.\"),\n parentId: z\n .string()\n .optional()\n .describe(\n \"Only direct children of this workItemId. One level, not the whole subtree.\",\n ),\n needsReview: z\n .boolean()\n .optional()\n .describe(\n \"true returns only items flagged needsReview; false only unflagged ones. \" +\n \"Omit for both.\",\n ),\n limit: z\n .number()\n .int()\n .min(1)\n .max(200)\n .optional()\n .describe(\"Items per page (default 50, max 200).\"),\n cursor: z\n .number()\n .optional()\n .describe(\n \"nextCursor from the previous page. Omit for the first page.\",\n ),\n fullDescriptions: z\n .boolean()\n .optional()\n .describe(\n \"Return descriptions in full instead of previewed. Costly on large \" +\n \"projects \u2014 prefer paging, or read one item at a time.\",\n ),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n async ({\n projectId,\n limit,\n cursor,\n fullDescriptions,\n status,\n type,\n parentId,\n needsReview,\n }) => {\n const page = await getConvexClient().action(api.mcp.listWorkItems, {\n token: getToken(),\n projectId,\n limit,\n cursor,\n fullDescriptions,\n // Accepting a bare string as well as a list is what keeps a model from\n // failing validation on the overwhelmingly common single-value case.\n status:\n status === undefined\n ? undefined\n : Array.isArray(status)\n ? status\n : [status],\n type:\n type === undefined ? undefined : Array.isArray(type) ? type : [type],\n parentId,\n needsReview,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(page, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerGetWorkItems(server: McpServer): void {\n server.registerTool(\n \"get_work_items\",\n {\n // Written to be chosen *over* list_work_items whenever the caller already\n // knows which items it wants \u2014 that is the whole point of the tool, and\n // the description is the only place a model learns it.\n description:\n \"Read specific work items by id \u2014 the cheap way to re-read items you \" +\n \"already know about. Prefer this over list_work_items whenever you have \" +\n \"a displayId (e.g. NIM-T75) or a workItemId: listing a project returns \" +\n \"every item and its description, which is orders of magnitude more data. \" +\n \"Accepts up to 50 ids per call and always returns descriptions in full. \" +\n \"Returns { items, notFound }; ids in notFound either do not exist or are \" +\n \"not readable by this token. displayIds require projectId (they are \" +\n \"unique per project, not globally); workItemIds do not.\",\n inputSchema: {\n displayIds: z\n .array(z.string())\n .optional()\n .describe(\n \"Human-facing ids like ['NIM-T75', 'NIM-F27']. Case-insensitive. \" +\n \"Requires projectId.\",\n ),\n workItemIds: z\n .array(z.string())\n .optional()\n .describe(\n \"Raw workItemIds, as returned by create_work_item or list_work_items.\",\n ),\n projectId: z\n .string()\n .optional()\n .describe(\n \"projectId from list_projects. Required only when passing displayIds.\",\n ),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n async ({ displayIds, workItemIds, projectId }) => {\n const result = await getConvexClient().action(api.mcp.getWorkItems, {\n token: getToken(),\n displayIds,\n workItemIds,\n projectId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerSearchWorkItems(server: McpServer): void {\n server.registerTool(\n \"search_work_items\",\n {\n // The point of this description is to stop a model reaching for\n // list_work_items when it is looking for something by name. Listing a\n // project to find one item is the expensive mistake this tool exists to\n // prevent.\n description:\n \"Find work items in a project by title. Use this to answer 'does an \" +\n \"item for X already exist?' \u2014 listing the whole project and filtering \" +\n \"yourself is far more expensive and, because the first page is the \" +\n \"OLDEST items, easy to get wrong. Matches TITLES only, not \" +\n \"descriptions. Returns { items, query } with descriptions previewed; \" +\n \"once you know which item you want, get_work_items returns it in full. \" +\n \"Capped at 25 results \u2014 narrow the query rather than paging. \" +\n \"Call list_projects first for the projectId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n q: z\n .string()\n .min(1)\n .describe(\n \"Words to match against item titles, e.g. 'mobile modal' or \" +\n \"'shortcut'. Matching is full-text, so word order does not matter.\",\n ),\n limit: z\n .number()\n .int()\n .min(1)\n .max(25)\n .optional()\n .describe(\"Maximum results (default and maximum 25).\"),\n },\n annotations: { readOnlyHint: true },\n },\n async ({ projectId, q, limit }) => {\n const result = await getConvexClient().action(api.mcp.searchWorkItems, {\n token: getToken(),\n projectId,\n q,\n limit,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListAiReviewQueue(server: McpServer): void {\n server.registerTool(\n \"list_ai_review_queue\",\n {\n description:\n \"List work items in a project that a human has flagged for AI review \" +\n \"(aiReviewRequested). Descriptions come back in full here, since \" +\n \"enrichment needs the whole text. Each item also carries recentComments \" +\n \"(the last few, oldest first) and, when a person has written one, \" +\n \"`answer`: the newest human comment. READ `answer` FIRST. When you \" +\n \"flagged an item with a question and it is back in this queue, `answer` \" +\n \"is the person's reply to that question; act on it rather than asking \" +\n \"again. Returns { items, nextCursor, hasMore } \u2014 when hasMore is true, \" +\n \"call again with cursor set to nextCursor. Process each item, then clear \" +\n \"its flag by calling update_work_item with aiReviewRequested: false. \" +\n \"Call list_projects first to find the projectId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n limit: z\n .number()\n .int()\n .min(1)\n .max(200)\n .optional()\n .describe(\"Items per page (default 50, max 200).\"),\n cursor: z\n .number()\n .optional()\n .describe(\n \"nextCursor from the previous page. Omit for the first page.\",\n ),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n async ({ projectId, limit, cursor }) => {\n const page = await getConvexClient().action(api.mcp.listAiReviewQueue, {\n token: getToken(),\n projectId,\n limit,\n cursor,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(page, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerGetActiveBlock(server: McpServer): void {\n server.registerTool(\n \"get_active_block\",\n {\n description:\n \"The project's ACTIVE BLOCK: the small, ordered set of work a person has \" +\n \"committed to right now. Call this BEFORE list_work_items when deciding what \" +\n \"to work on \u2014 position 0 is the next thing to do, and the wider backlog is \" +\n \"not on the table until the block is empty. Each item carries a lane: \" +\n \"'person' means a human owes it (flagged for review, or parked in a Review \" +\n \"status) and you should not touch it; 'agent' means a human asked an agent \" +\n \"to act on it, so it is yours first, and it carries recentComments and \" +\n \"`answer` (the newest human comment: read it before anything else); \" +\n \"'open' is uncommitted-to-anyone work in \" +\n \"priority order; 'done' is finished. Returns null when the project has no \" +\n \"active block, in which case fall back to list_work_items. Descriptions are \" +\n \"previewed; use get_work_items for the full text of an item you pick up. \" +\n \"Call list_projects first for the projectId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n async ({ projectId }) => {\n const block = await getConvexClient().action(api.mcp.getActiveBlock, {\n token: getToken(),\n projectId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(block, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\nimport { TITLE_GUIDANCE } from \"./titleGuidance.js\";\nimport { STATUS_GUIDANCE } from \"./statusGuidance.js\";\nimport { DESCRIPTION_GUIDANCE, DESCRIPTION_MAX } from \"./descriptionGuidance.js\";\n\nexport function registerCreateWorkItem(server: McpServer): void {\n server.registerTool(\n \"create_work_item\",\n {\n description:\n \"Create a new work item in a project. Hierarchy rules: epics live at the root; features go under epics; tasks go under epics or features (or root); subtasks must go under a task. Returns the new workItemId and its display ID (e.g. NIM-42).\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n type: z\n .enum([\"epic\", \"feature\", \"task\", \"subtask\"])\n .describe(\"Item type \u2014 drives hierarchy validation\"),\n title: z.string().min(1).describe(TITLE_GUIDANCE),\n description: z.string().max(DESCRIPTION_MAX).optional().describe(DESCRIPTION_GUIDANCE),\n parentId: z\n .string()\n .optional()\n .describe(\n \"workItemId of the parent. Required for subtask, optional otherwise.\",\n ),\n status: z\n .string()\n .optional()\n .describe(\n STATUS_GUIDANCE,\n ),\n priority: z\n .enum([\"p0\", \"p1\", \"p2\", \"p3\"])\n .optional()\n .describe(\"p0 highest, p3 lowest. Defaults to p2.\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const client = getConvexClient();\n const result = await client.action(api.mcp.createWorkItem, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "/**\n * What a work-item title should read like, stated once.\n *\n * This exists because \"Short, descriptive title\" \u2014 the previous guidance on\n * `create_work_item` \u2014 is satisfied by \"Fix hasChildren computation in\n * list.tsx\". That is short and it does describe something, and it is unreadable\n * to anyone who has not just been in that file. Titles are what a board shows;\n * a board full of symbol names cannot be scanned.\n *\n * The em-dash and verbosity rules come from NIM-T117, which Jordan filed\n * before this and which asked for exactly that: \"Remove the em dash and\n * other verbose title that make it hard to read.\"\n *\n * Shared by `create_work_item` and `update_work_item` so the rule cannot hold\n * on one path and not the other \u2014 retitling is the same act as titling, and\n * `update_work_item` previously carried no guidance at all.\n */\nexport const TITLE_GUIDANCE =\n \"A title a teammate can understand at a glance, without opening the item or \" +\n \"knowing the codebase. Say what is wrong or what changes FOR A PERSON, in \" +\n \"plain words \u2014 not the mechanism, the file, or the symbol. \" +\n 'Good: \"Sorted list shows an expand arrow that does nothing\". ' +\n 'Bad: \"Fix hasChildren computation in list.tsx\". ' +\n 'Good: \"Long titles wrap to three lines and are hard to read\". ' +\n 'Bad: \"Adjust COLUMNS.title min-width constant\". ' +\n \"Prefer ordinary words over internal abbreviations, and only name a file, \" +\n \"function or identifier when it genuinely is the clearest way to say it \" +\n \"(a tool or endpoint the user calls by name, for instance). No ticket \" +\n \"prefixes or status markers \u2014 the board renders those already. Root cause, \" +\n \"file paths, and reproduction steps belong in the description, which has \" +\n \"room for them. \" +\n \"Keep it to one plain clause. Do NOT use an em dash, and do not use the \" +\n '\"Area: thing, other thing\" shape \u2014 both are ways of stapling a second ' +\n \"title on and they are what makes these hard to read. \" +\n 'Bad: \"Gantt: tighten row density, match app typography, stop the chart ' +\n 'falling short of its container\". ' +\n 'Good: \"Gantt chart looks nothing like the rest of the app\". ' +\n \"If the title needs a comma-spliced list to be accurate, that is a sign the \" +\n \"item is really several items, not a sign it needs a longer title.\";\n", "/**\n * How to choose a status, stated once.\n *\n * The rule the tools already stated \u2014 \"a status name from the project's\n * statusOrder\" \u2014 referred to data no tool returned. An agent could not read a\n * project's workflow, so it guessed a plausible-sounding name, and the guess\n * was frequently \"In Review\" on boards whose workflow only ever had \"Review\".\n * `list_projects` now returns `statuses`, which is what makes this instruction\n * followable rather than aspirational.\n *\n * The second half matters as much as the first. A status is POSITIONAL \u2014 it is\n * the board column \u2014 so inventing one is not a labelling choice, it reshapes\n * the board and every status chart that aggregates across projects. Anything\n * that describes an item without saying where it sits in the flow is a label:\n * `list_labels`, `create_label` and `add_label_to_work_item` exist for exactly\n * that, and cost nothing to add. This is NIM-T49's decision, held to.\n *\n * Shared by `create_work_item` and `update_work_item`. `update_work_item.status`\n * previously carried no guidance at all, which is the path most likely to move\n * an item to an invented status.\n */\nexport const STATUS_GUIDANCE =\n \"Must be one of the names in the project's `statuses`, returned by \" +\n \"list_projects. Read it rather than guessing \u2014 a status is the board \" +\n \"column, so a name the workflow does not have is rejected, and before that \" +\n \"check existed such items rendered in the first column while claiming \" +\n \"otherwise. Match the existing name exactly, including its wording: if the \" +\n \"workflow says \\\"Review\\\", do not write \\\"In Review\\\". \" +\n \"Do NOT invent a status to capture something about an item. Statuses are \" +\n \"shared across the whole project and aggregated on the dashboard, so each \" +\n \"new one is a permanent extra band there. Anything that describes an item \" +\n \"rather than locating it in the flow belongs in a LABEL \u2014 see create_label \" +\n \"and add_label_to_work_item. Defaults to the first status when omitted.\";\n", "/**\n * The two sizes a work item description is measured against. Kept free of\n * Convex imports so the web app and the MCP package can share the numbers.\n *\n * PREVIEW is what the row carries so lists never join the body\n * (lib/workItemBody.ts). MAX is a sanity cap, not a product decision: no\n * task written by hand comes near it, but an agent pasting a log or a whole\n * research report into a description would \u2014 and that belongs in a document.\n * Descriptions averaged 14 KB when the cap was chosen; 32 KB is roughly\n * 5,000 words, eight pages.\n */\nexport const DESCRIPTION_PREVIEW_CHARS = 500;\nexport const DESCRIPTION_MAX_CHARS = 32_000;\n\n/** Where a description's length stands, for an error or a counter. */\nexport const DESCRIPTION_TOO_LONG =\n `A description can be at most ${DESCRIPTION_MAX_CHARS.toLocaleString(\"en-US\")} characters. ` +\n \"Put specs, research and long reports in a document and link it to the item.\";\n", "import { DESCRIPTION_MAX_CHARS } from \"@nimara/convex/convex/lib/descriptionLimits.js\";\n\n/**\n * What a description is for, and how big it may be, stated once and shared\n * by `create_work_item` and `update_work_item` the way TITLE_GUIDANCE is.\n *\n * The cap is enforced server-side in writeDescription; the zod max here\n * only means an agent hears about it before the round-trip. The guidance is\n * the real lever: descriptions averaged 14 KB because agents used them as\n * the place to put everything, and the row split (lib/workItemBody.ts) made\n * that cheap but not right \u2014 a document is what other items can link to.\n */\nexport const DESCRIPTION_MAX = DESCRIPTION_MAX_CHARS;\n\nexport const DESCRIPTION_GUIDANCE =\n \"Markdown. The what and the why: the problem, acceptance criteria, \" +\n \"reproduction steps, file paths, root cause. Keep it to what someone \" +\n \"picking the item up needs. A spec, a design, research, or a long report \" +\n \"goes in a document (create_document) linked from here, not inline. \" +\n `At most ${DESCRIPTION_MAX_CHARS.toLocaleString(\"en-US\")} characters.`;\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateProject(server: McpServer): void {\n server.registerTool(\n \"create_project\",\n {\n description:\n \"Create a new project in an org. Prefix must be unique within the org and is uppercased (e.g. 'NIM' yields work items NIM-1, NIM-2\u2026). Caller becomes the project admin. Returns the new projectId.\",\n inputSchema: {\n orgId: z.string().describe(\"orgId from list_orgs\"),\n name: z.string().min(1).describe(\"Project name\"),\n prefix: z\n .string()\n .min(1)\n .max(8)\n .describe(\n \"Short uppercase prefix for work item IDs (e.g. 'NIM'). Unique per org.\",\n ),\n description: z\n .string()\n .optional()\n .describe(\"Optional markdown description\"),\n isPrivate: z\n .boolean()\n .optional()\n .describe(\n \"If true, only explicitly added members see it. Defaults to false.\",\n ),\n workflowTemplate: z\n .enum([\"default\", \"simple\", \"kanban\", \"bug\"])\n .optional()\n .describe(\n \"Status workflow. Defaults to 'default' (Backlog/Todo/In Progress/Review/Done).\",\n ),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const client = getConvexClient();\n const result = await client.action(api.mcp.createProject, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\nimport { TITLE_GUIDANCE } from \"./titleGuidance.js\";\nimport { STATUS_GUIDANCE } from \"./statusGuidance.js\";\nimport { DESCRIPTION_GUIDANCE, DESCRIPTION_MAX } from \"./descriptionGuidance.js\";\nimport { RESEARCH_FORMAT } from \"./researchFormat.js\";\n\nexport function registerUpdateWorkItem(server: McpServer): void {\n server.registerTool(\n \"update_work_item\",\n {\n description:\n \"Update an existing work item: title, description, status, priority, parent, or review flags. Any update also stamps the item as AI-touched.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n title: z.string().min(1).optional().describe(TITLE_GUIDANCE),\n description: z\n .string()\n .max(DESCRIPTION_MAX)\n .optional()\n .describe(\n \"Full markdown body, replacing what is there. \" +\n DESCRIPTION_GUIDANCE +\n \" \" +\n RESEARCH_FORMAT,\n ),\n status: z.string().optional().describe(STATUS_GUIDANCE),\n priority: z.enum([\"p0\", \"p1\", \"p2\", \"p3\"]).optional(),\n parentId: z\n .string()\n .nullable()\n .optional()\n .describe(\"New parent workItemId, null to move to root.\"),\n needsReview: z\n .boolean()\n .optional()\n .describe(\n \"Flag the item for manual human review \u2014 set true when your enrichment was thin or uncertain.\",\n ),\n reviewReason: z\n .string()\n .optional()\n .describe(\n \"Short reason the item needs manual review (shown to the human).\",\n ),\n aiReviewRequested: z\n .boolean()\n .optional()\n .describe(\n \"The human\u2192AI review flag. Set false to clear it after you have reviewed/enriched an item from list_ai_review_queue.\",\n ),\n agentWorking: z\n .boolean()\n .optional()\n .describe(\n \"Set true when you start working on this item: the app lights its row so the person can see it is in flight. It is a 15-minute lease that every later MCP write on the item (updates, comments) renews, so you only need to set it once at the start; set false when you stop without finishing, and moving the item to the last status clears it for you.\",\n ),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.updateWorkItem, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "/**\n * The shape of the automated research block an enrichment agent appends to a\n * work item's description.\n *\n * Two reasons this is stated here rather than left to each agent's own taste.\n *\n * The web app parses this block out of the description and renders it in its\n * own tab on the item (NIM-T125). The anchor heading is therefore a contract,\n * not a style choice: change its wording and the tab stops appearing, with the\n * text still sitting in the description and nothing failing loudly.\n *\n * And the existing blocks are decorated with emoji section markers \u2014 \uD83D\uDD0E, \uD83D\uDD17,\n * \uD83E\uDDED, \uD83C\uDF9A. They read as noise in a panel that is already labelled \"Research\",\n * they carry no information the heading does not, and they are the first thing\n * Jordan asked to remove. The parser accepts the old emoji heading so the 20\n * items already enriched keep working; nothing new should write one.\n *\n * Deliberately NOT permitted: raw HTML. The app renders this with\n * `react-markdown` and no `rehype-raw`, so HTML is stripped rather than shown \u2014\n * and turning that on would render agent-authored markup whose inputs include\n * untrusted work-item text. Mermaid fences cover the diagram case without\n * opening that door.\n */\nexport const RESEARCH_FORMAT = `When appending automated research to a description, use EXACTLY this format, \\\nafter the human-written text:\n\n---\n## Research (auto)\n\n### Findings\n- One bullet per verified fact, each naming what you checked.\n\n### Dependencies\n- Items this blocks or is blocked by, by displayId. Omit the section if none.\n\n### Duplicates\n- Existing items covering the same work, by displayId. Omit if none.\n\n### Suggested priority\nOne line. Say \"No change\" when it is already right.\n\nRules:\n- The \"## Research (auto)\" heading is EXACT and is what the app keys on to show \\\nthis in its own tab. Do not reword it, renumber its level, or translate it.\n- NO EMOJI anywhere in the block, in headings or in bullets. Older items carry \\\nemoji headings; do not copy them.\n- Omit a section rather than writing \"None found\" in it. An empty section is \\\nnoise the reader still has to read.\n- Never edit or delete the human-written text above the rule. Append only.\n- Markdown only. GFM tables are supported and are the right choice for \\\ncomparisons. Raw HTML is NOT rendered by the app and must not be used.\n- For a workflow, sequence or state machine, use a \\\\\\`\\\\\\`\\\\\\`mermaid fenced block. \\\nThat is the supported way to draw one.\n- Say what you verified and how. \"Confirmed X still returns Y (file:line)\" is \\\nworth more than a conclusion with no trail.`;\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerMoveWorkItem(server: McpServer): void {\n server.registerTool(\n \"move_work_item\",\n {\n // Everything a model needs to predict the damage has to be stated here \u2014\n // the description is the only channel it has. The consequences that are\n // NOT obvious from the name are the ones worth the tokens: the display ID\n // changes, and labels/milestones do not survive.\n description:\n \"Move a work item to a different project, taking its whole subtree \" +\n \"with it \u2014 children and grandchildren move too, and the hierarchy is \" +\n \"preserved. Both projects must be in the same organization, and you \" +\n \"need write access to both. \" +\n \"Not reversible by calling this again: the item is renumbered in the \" +\n \"destination, so NIM-T44 might become SKA-T18 and the old ID stops \" +\n \"resolving. Labels and milestone assignments are dropped, because both \" +\n \"belong to the project being left; a status the destination doesn't \" +\n \"define falls back to its first status. The response reports every \" +\n \"old \u2192 new ID plus everything that was dropped or remapped. \" +\n \"Comments, images, attached documents, PR links and history all follow \" +\n \"the item. Call list_projects first for the target projectId.\",\n inputSchema: {\n workItemId: z\n .string()\n .describe(\"workItemId from list_work_items \u2014 the item to move.\"),\n targetProjectId: z\n .string()\n .describe(\n \"projectId from list_projects \u2014 the destination. Must be in the \" +\n \"same org as the item's current project.\",\n ),\n },\n annotations: {\n readOnlyHint: false,\n // Renumbering display IDs and deleting label/milestone links are\n // overwrites, not additions \u2014 this belongs with the tools a client\n // should prompt on rather than auto-approve.\n destructiveHint: true,\n // Calling it twice does not land in the same place: the second call\n // either errors as already-there or moves the item on again.\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n async ({ workItemId, targetProjectId }) => {\n const result = await getConvexClient().action(\n api.mcp.moveWorkItemToProject,\n { token: getToken(), workItemId, targetProjectId },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateDocument(server: McpServer): void {\n server.registerTool(\n \"create_document\",\n {\n description:\n \"Create a markdown project document. Use type 'prd' for project docs or 'fd' for feature/work-item documents.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n title: z.string().min(1),\n type: z\n .enum([\"prd\", \"fd\"])\n .describe(\n \"Document type. 'fd' is stored as the app's feature document type.\",\n ),\n workItemId: z\n .string()\n .optional()\n .describe(\"Required for fd documents; omitted for prd.\"),\n content: z\n .string()\n .optional()\n .describe(\"Optional initial markdown content.\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.createDocument, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerUpdateDocument(server: McpServer): void {\n server.registerTool(\n \"update_document\",\n {\n description:\n \"Update an existing document's markdown content and/or title. Use this to fill in or revise a document created earlier (e.g. backfill content into an empty doc). documentId comes from list_documents. Provided content fully replaces the existing content.\",\n inputSchema: {\n documentId: z.string().describe(\"documentId from list_documents\"),\n content: z\n .string()\n .optional()\n .describe(\n \"New markdown content. Replaces the document's existing content.\",\n ),\n title: z.string().min(1).optional().describe(\"New title (optional).\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.updateDocument, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListDocuments(server: McpServer): void {\n server.registerTool(\n \"list_documents\",\n {\n description:\n \"List PRD/FD markdown documents for a project, optionally filtered to one work item.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n workItemId: z\n .string()\n .optional()\n .describe(\"Optional workItemId to list linked FD documents.\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.listDocuments, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nconst projectLinkCategory = z.enum([\n \"api\",\n \"dashboard\",\n \"documentation\",\n \"repository\",\n \"service\",\n \"other\",\n]);\n\nexport function registerCreateProjectLink(server: McpServer): void {\n server.registerTool(\n \"create_project_link\",\n {\n description:\n \"Save a link on a project for resources like APIs, dashboards, documentation, repositories, or services.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n title: z.string().min(1).max(120),\n url: z.string().url().describe(\"http(s) URL to save\"),\n description: z.string().max(500).optional(),\n category: projectLinkCategory.optional().describe(\"Defaults to other.\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.createProjectLink, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListProjectLinks(server: McpServer): void {\n server.registerTool(\n \"list_project_links\",\n {\n description:\n \"List saved links for a project, such as APIs, dashboards, docs, repositories, and services.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ projectId }) => {\n const result = await getConvexClient().action(api.mcp.listProjectLinks, {\n token: getToken(),\n projectId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListScratchNotes(server: McpServer): void {\n server.registerTool(\n \"list_scratch_notes\",\n {\n description:\n \"The token owner's OPEN scratch notes: thoughts and ideas they captured \" +\n \"in the app with the `s` shortcut before deciding what to do with them. \" +\n \"Returns the notes that belong with this project (tagged with it, or \" +\n \"tagged with nothing), oldest first, each with noteId, body, projectId \" +\n \"and createdAt. These are raw: a note may be one line or a paragraph, \" +\n \"may describe one task or three, and may not be a task at all. Read \" +\n \"each, decide what it should become (usually one or more work items \" +\n \"via create_work_item, sometimes a comment on an existing item, \" +\n \"sometimes nothing), do that, then call resolve_scratch_note with the \" +\n \"noteId and the workItemId it became so the person sees where their \" +\n \"note went. Ask in a comment rather than guess when a note is too \" +\n \"thin to act on. Call list_projects first for the projectId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n async ({ projectId }) => {\n const notes = await getConvexClient().action(api.mcp.listScratchNotes, {\n token: getToken(),\n projectId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(notes, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerResolveScratchNote(server: McpServer): void {\n server.registerTool(\n \"resolve_scratch_note\",\n {\n description:\n \"Mark a scratch note as used, recording the work item it became. Call \" +\n \"this after acting on a note from list_scratch_notes: pass the noteId \" +\n \"and the workItemId you created or updated from it (omit workItemId \" +\n \"only when the note needed no item). The note leaves the person's open \" +\n \"list and shows where it went. Only the token owner's own notes.\",\n inputSchema: {\n noteId: z.string().describe(\"noteId from list_scratch_notes\"),\n workItemId: z\n .string()\n .optional()\n .describe(\"The workItemId the note became, from create_work_item or list_work_items.\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n async ({ noteId, workItemId }) => {\n const result = await getConvexClient().action(api.mcp.resolveScratchNote, {\n token: getToken(),\n noteId,\n workItemId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddWorkItemImage(server: McpServer): void {\n server.registerTool(\n \"add_work_item_image\",\n {\n description:\n \"Attach an externally hosted image URL to a work item. Use this when an MCP client has a screenshot, mockup, or generated image URL to preserve with the task.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n imageUrl: z\n .string()\n .url()\n .describe(\"Public or otherwise fetchable http(s) image URL\"),\n filename: z.string().optional().describe(\"Optional display filename\"),\n altText: z\n .string()\n .optional()\n .describe(\"Optional description/caption for the image\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.addWorkItemImage, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListWorkItemImages(server: McpServer): void {\n server.registerTool(\n \"list_work_item_images\",\n {\n description:\n \"List image attachments for a work item, including uploaded images and externally attached MCP images. Call list_work_items first to find the workItemId.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ workItemId }) => {\n const result = await getConvexClient().action(\n api.mcp.listWorkItemImages,\n {\n token: getToken(),\n workItemId,\n },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddWorkItemComment(server: McpServer): void {\n server.registerTool(\n \"add_work_item_comment\",\n {\n description:\n \"Add a timestamped comment to a work item. Use this to record notes, updates, \" +\n \"or an 'AI touched' entry instead of editing the description. Comments are \" +\n \"stamped with the current time automatically and never overwrite each other.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n body: z.string().min(1).describe(\"Comment text (markdown supported)\"),\n source: z\n .enum([\"user\", \"ai\"])\n .optional()\n .describe('Who authored it; defaults to \"ai\" for MCP callers'),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(\n api.mcp.addWorkItemComment,\n {\n token: getToken(),\n ...args,\n },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListWorkItemComments(server: McpServer): void {\n server.registerTool(\n \"list_work_item_comments\",\n {\n description:\n \"List the timestamped comments on a work item, oldest first. Use this to check \" +\n \"whether the item was already touched/commented before adding a new comment.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(\n api.mcp.listWorkItemComments,\n {\n token: getToken(),\n ...args,\n },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListValidations(server: McpServer): void {\n server.registerTool(\n \"list_validations\",\n {\n description:\n \"List a project's validation graph: core systems and validation/test tasks with their DERIVED state (passing, failing, stale, unvalidated). A task is 'stale' when a system it covers changed since it was last validated, or an upstream dependency is no longer passing. Call list_projects first to find the projectId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ projectId }) => {\n const client = getConvexClient();\n const graph = await client.action(api.mcp.listValidations, {\n token: getToken(),\n projectId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(graph, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerRecordValidation(server: McpServer): void {\n server.registerTool(\n \"record_validation\",\n {\n description:\n \"Check off a validation task by recording a pass or fail. Stamps the task as validated 'now', clearing any stale flag until a covered system changes or an upstream dependency moves again. Get validationTaskId from list_validations.\",\n inputSchema: {\n validationTaskId: z\n .string()\n .describe(\"validationTaskId from list_validations\"),\n result: z\n .enum([\"pass\", \"fail\"])\n .describe(\"Outcome of running the test\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ validationTaskId, result }) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.recordValidation, {\n token: getToken(),\n validationTaskId,\n result,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerMarkSystemChanged(server: McpServer): void {\n server.registerTool(\n \"mark_system_changed\",\n {\n description:\n \"Mark a core system as changed. This is the single action that invalidates testing: every validation task that covers this system (and everything transitively depending on those tasks) immediately becomes 'stale' and needs revalidation. Get systemId from list_validations.\",\n inputSchema: {\n systemId: z.string().describe(\"systemId from list_validations\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async ({ systemId }) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.markSystemChanged, {\n token: getToken(),\n systemId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateSystem(server: McpServer): void {\n server.registerTool(\n \"create_system\",\n {\n description:\n \"Create a core system in a project \u2014 a subsystem (e.g. Auth, Payments, Sync) whose change should invalidate the validation tasks that cover it. Returns the new systemId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n name: z.string().min(1).describe(\"Short system name, e.g. 'Auth'\"),\n description: z.string().optional().describe(\"Optional details\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.createSystem, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateValidationTask(server: McpServer): void {\n server.registerTool(\n \"create_validation_task\",\n {\n description:\n \"Create a validation/test task in a project. After creating it, use add_system_to_task to declare which systems it exercises (so it goes stale when they change) and add_validation_dependency to order it after other tasks. Returns the new validationTaskId.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n title: z.string().min(1).describe(\"What this test validates\"),\n description: z.string().optional().describe(\"Optional steps / details\"),\n kind: z\n .enum([\"auto\", \"manual\"])\n .optional()\n .describe(\n \"'auto' if runnable by a test runner, 'manual' if a human checks it. Defaults to manual.\",\n ),\n workItemId: z\n .string()\n .optional()\n .describe(\n \"Optional workItemId to link this test to a feature for traceability\",\n ),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.createValidationTask, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddSystemToTask(server: McpServer): void {\n server.registerTool(\n \"add_system_to_task\",\n {\n description:\n \"Declare that a validation task COVERS (exercises) a system. Once linked, the task becomes 'stale' whenever that system is marked changed. Idempotent. Both IDs come from list_validations and must be in the same project.\",\n inputSchema: {\n validationTaskId: z\n .string()\n .describe(\"validationTaskId from list_validations\"),\n systemId: z.string().describe(\"systemId from list_validations\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ validationTaskId, systemId }) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.addSystemToTask, {\n token: getToken(),\n validationTaskId,\n systemId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddValidationDependency(server: McpServer): void {\n server.registerTool(\n \"add_validation_dependency\",\n {\n description:\n \"Make one validation task depend on another (validationTaskId depends on dependsOnTaskId). The dependent goes 'stale' whenever the upstream task is not passing or gets revalidated. Cycles and self-dependencies are rejected. Idempotent. Both IDs come from list_validations and must be in the same project.\",\n inputSchema: {\n validationTaskId: z\n .string()\n .describe(\"The dependent (downstream) task\"),\n dependsOnTaskId: z\n .string()\n .describe(\"The dependency (upstream) task it relies on\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async ({ validationTaskId, dependsOnTaskId }) => {\n const client = getConvexClient();\n const res = await client.action(api.mcp.addValidationDependency, {\n token: getToken(),\n validationTaskId,\n dependsOnTaskId,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(res, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListLabels(server: McpServer): void {\n server.registerTool(\n \"list_labels\",\n {\n description:\n \"List all labels defined in a project. Returns each label's id, name, and color. Use the labelId with add_label_to_work_item / remove_label_from_work_item.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.listLabels, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateLabel(server: McpServer): void {\n server.registerTool(\n \"create_label\",\n {\n description:\n \"Apply-or-seed a label. Returns the existing label if the name is \" +\n \"already taken (idempotent), and otherwise creates it ONLY if the name \" +\n \"is one of the curated ones. Any other new name is REFUSED \u2014 the reply \" +\n \"carries `refused: true`, the reason, and `available`, the project's \" +\n \"existing labels. Agents apply labels; they do not invent them, because \" +\n \"a near-duplicate of an existing label splits the vocabulary silently. \" +\n \"Prefer list_labels first. Colors are ignored for curated names so the \" +\n \"vocabulary looks the same in every project.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n name: z\n .string()\n .min(1)\n .describe(\"Label name, unique within the project\"),\n color: z\n .string()\n .regex(/^#[0-9a-fA-F]{6}$/)\n .optional()\n .describe(\"Hex color like #2563eb. Defaults to a neutral slate.\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.createLabel, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddLabelToWorkItem(server: McpServer): void {\n server.registerTool(\n \"add_label_to_work_item\",\n {\n description:\n \"Attach a label to a work item (idempotent). The label and work item must be in the same project. Get labelIds from list_labels / create_label.\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n labelId: z\n .string()\n .describe(\"labelId from list_labels or create_label\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.setWorkItemLabel, {\n token: getToken(),\n ...args,\n attached: true,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerRemoveLabelFromWorkItem(server: McpServer): void {\n server.registerTool(\n \"remove_label_from_work_item\",\n {\n description:\n \"Remove a label from a work item (idempotent \u2014 a no-op if it wasn't attached).\",\n inputSchema: {\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n labelId: z.string().describe(\"labelId from list_labels\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.setWorkItemLabel, {\n token: getToken(),\n ...args,\n attached: false,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerListMilestones(server: McpServer): void {\n server.registerTool(\n \"list_milestones\",\n {\n description:\n \"List all milestones in a project. Returns each milestone's id, name, description, dueDate (unix ms), and status. Use the milestoneId with add_item_to_milestone / remove_item_from_milestone.\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n },\n annotations: {\n readOnlyHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.listMilestones, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerCreateMilestone(server: McpServer): void {\n server.registerTool(\n \"create_milestone\",\n {\n description:\n \"Create a milestone in a project. Returns the milestoneId. Good for grouping work into phases (e.g. 'Phase 1 \u2014 Web', 'Phase 2 \u2014 Native').\",\n inputSchema: {\n projectId: z.string().describe(\"projectId from list_projects\"),\n name: z.string().min(1).describe(\"Milestone name\"),\n description: z\n .string()\n .optional()\n .describe(\"Optional markdown description\"),\n dueDate: z\n .number()\n .optional()\n .describe(\"Optional due date as a unix timestamp in milliseconds\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(api.mcp.createMilestone, {\n token: getToken(),\n ...args,\n });\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerAddItemToMilestone(server: McpServer): void {\n server.registerTool(\n \"add_item_to_milestone\",\n {\n description:\n \"Associate a work item with a milestone (idempotent). Both must be in the same project.\",\n inputSchema: {\n milestoneId: z\n .string()\n .describe(\"milestoneId from list_milestones or create_milestone\"),\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(\n api.mcp.setWorkItemMilestone,\n {\n token: getToken(),\n ...args,\n attached: true,\n },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n", "import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { z } from \"zod\";\nimport { api } from \"@nimara/convex/convex/_generated/api.js\";\nimport { getConvexClient, getToken } from \"../convex.js\";\n\nexport function registerRemoveItemFromMilestone(server: McpServer): void {\n server.registerTool(\n \"remove_item_from_milestone\",\n {\n description:\n \"Remove a work item's association with a milestone (idempotent \u2014 a no-op if it wasn't associated).\",\n inputSchema: {\n milestoneId: z.string().describe(\"milestoneId from list_milestones\"),\n workItemId: z.string().describe(\"workItemId from list_work_items\"),\n },\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n },\n\n async (args) => {\n const result = await getConvexClient().action(\n api.mcp.setWorkItemMilestone,\n {\n token: getToken(),\n ...args,\n attached: false,\n },\n );\n return {\n content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }],\n };\n },\n );\n}\n"],
5
+ "mappings": ";;;AAQA,SAAS,4BAA4B;;;ACRrC,SAAS,iBAAiB;;;ACU1B,SAAS,QAAQ,yBAAyB;AAUnC,IAAM,MAAM;AAEZ,IAAM,aAAa,kBAAkB;;;ACtB5C,SAAS,wBAAwB;AAEjC,IAAI,eAAwC;AAErC,SAAS,kBAAoC;AAClD,MAAI,aAAc,QAAO;AAEzB,QAAM,MAAM,QAAQ,IAAI;AACxB,MAAI,CAAC,KAAK;AACR,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF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AM;AACjC,2BAAyB,MAAM;AAC/B,6BAA2B,MAAM;AACjC,6BAA2B,MAAM;AACjC,+BAA6B,MAAM;AAGnC,0BAAwB,MAAM;AAC9B,2BAAyB,MAAM;AAC/B,4BAA0B,MAAM;AAChC,uBAAqB,MAAM;AAC3B,+BAA6B,MAAM;AACnC,0BAAwB,MAAM;AAC9B,kCAAgC,MAAM;AAGtC,qBAAmB,MAAM;AACzB,sBAAoB,MAAM;AAC1B,6BAA2B,MAAM;AACjC,kCAAgC,MAAM;AACtC,yBAAuB,MAAM;AAC7B,0BAAwB,MAAM;AAC9B,6BAA2B,MAAM;AACjC,kCAAgC,MAAM;AAEtC,SAAO;AACT;;;ADpFA,WAAW,KAAK,CAAC,OAAO,QAAQ,QAAQ,OAAO,GAAY;AACzD,UAAQ,CAAC,IAAI,IAAI,SAAoB,QAAQ,MAAM,GAAG,IAAI;AAC5D;AAKA,eAAe,OAAO;AACpB,QAAM,SAAS,aAAa;AAC5B,QAAM,YAAY,IAAI,qBAAqB;AAC3C,QAAM,OAAO,QAAQ,SAAS;AAEhC;AAEA,KAAK,EAAE,MAAM,CAAC,QAAQ;AACpB,UAAQ,MAAM,2BAA2B,GAAG;AAC5C,UAAQ,KAAK,CAAC;AAChB,CAAC;",
6
+ "names": ["z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z", "z"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimara-app/mcp",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "mcpName": "io.github.langskip-studios/nimara",
6
6
  "description": "Nimara MCP server — AI tool integration for Claude, Codex, and others",