@workover/mcp 0.7.1 → 0.8.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/README.md CHANGED
@@ -26,7 +26,7 @@ That's it. Ask Claude Code things like *"read my Workover doc about onboarding a
26
26
  - `workover_list_projects()` — list your projects
27
27
  - `workover_create_doc(projectId, title, markdown, categories?)` — create a document with its content written in, filed under the categories you name (a category that does not exist yet is created)
28
28
  - `workover_upload_image(docId, path, alt)` — put a local image into a document's media
29
- - `workover_propose_edit(docId, markdown, note, tabId?)` — propose a revised version (rendered as suggestions; never applied or published automatically)
29
+ - `workover_propose_edit(docId, markdown, note, tabId?, reasoning?)` — propose a revised version (rendered as suggestions; never applied or published automatically)
30
30
  - `workover_edit_doc(docId, markdown, note, tabId?)` — edit a document directly, no review step. Needs `workover login --write`
31
31
  - `workover_style_guide(projectId?)` — the rules this team writes by
32
32
  - `workover_add_style_rule(text, projectId | organizationId)` — add a rule. Needs `workover login --rules`
package/index.mjs CHANGED
@@ -235,6 +235,11 @@ const TOOLS = [
235
235
  description:
236
236
  'Which tab the suggestion is against, for a document with tabs (workover_list_tabs). Omit for the main body.',
237
237
  },
238
+ reasoning: {
239
+ type: 'string',
240
+ description:
241
+ 'Optional: one or two sentences on what was wrong or missing in the document that this change fixes. Recorded as the reasoning shown beside the suggestion under "Why this change". Omit it rather than guess.',
242
+ },
238
243
  },
239
244
  required: ['docId', 'markdown'],
240
245
  },
@@ -245,7 +250,7 @@ const telemetry = telemetryEnabled(process.env, { auth });
245
250
  // Keep in step with package.json. It is what every telemetry event is stamped with, so a stale
246
251
  // value here does not break anything — it quietly attributes this release's behaviour to an older
247
252
  // one, which is worse, because the numbers still look fine.
248
- const VERSION = '0.7.1';
253
+ const VERSION = '0.8.0';
249
254
 
250
255
  /**
251
256
  * What the client is told about this server before it calls anything.
package/lib.mjs CHANGED
@@ -489,6 +489,10 @@ export function makeDispatch({ auth, api, apiPost, fetchImpl = fetch, readFile }
489
489
  note: args.note ? String(args.note) : undefined,
490
490
  source: 'Claude Code',
491
491
  ...(tabId != null ? { tabId } : {}),
492
+ // "Why this change": the agent's account of what was wrong. Text only; optional.
493
+ ...(typeof args.reasoning === 'string' && args.reasoning.trim()
494
+ ? { rationale: { problem: args.reasoning.trim().slice(0, 2000) } }
495
+ : {}),
492
496
  });
493
497
  return text(
494
498
  `Proposed your changes to ${res?.tab ? `the "${res.tab.title}" tab of ` : ''}document #${docId}. They'll appear as suggestions to accept or reject when the document is open in Workover${res?.documentUrl ? `:\n${res.documentUrl}` : '.'}\n\nNothing is published until the person reviews and accepts.${renderStyleFeedback(res?.style)}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workover/mcp",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Workover MCP server — let Claude Code and other MCP clients read and cowork on your Workover documents.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ScaleMath",