@workover/mcp 0.7.1 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.mjs +7 -2
- package/lib.mjs +4 -0
- package/package.json +2 -2
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
|
@@ -213,7 +213,7 @@ const TOOLS = [
|
|
|
213
213
|
{
|
|
214
214
|
name: 'workover_propose_edit',
|
|
215
215
|
description:
|
|
216
|
-
"Propose a revised version of a Workover document. You do NOT edit the document directly — the change appears as tracked-change SUGGESTIONS that the human reviews and accepts or rejects in Workover, and only they can publish. Read the document first (workover_read_doc), then provide the FULL revised document as markdown.",
|
|
216
|
+
"Propose a revised version of a Workover document. You do NOT edit the document directly — the change appears as tracked-change SUGGESTIONS that the human reviews and accepts or rejects in Workover, and only they can publish. Read the document first (workover_read_doc), then provide the FULL revised document as markdown. Start from the markdown workover_read_doc returned and change only the words you mean to; leave every other line exactly as it was, so the person reviews your edit rather than a reformatting. Tables come back as HTML: edit the text inside the cells and do not convert them to markdown tables. Keep tasks as `- [x]` / `- [ ]` and code in ``` fences. Do not reflow paragraphs, renumber lists or change bullet markers.",
|
|
217
217
|
inputSchema: {
|
|
218
218
|
type: 'object',
|
|
219
219
|
properties: {
|
|
@@ -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.
|
|
253
|
+
const VERSION = '0.8.1';
|
|
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.
|
|
3
|
+
"version": "0.8.1",
|
|
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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
35
|
+
"@modelcontextprotocol/sdk": "^1.31.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"test": "node --test"
|