@derive-to/mcp 0.5.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@derive-to/mcp",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "description": "Stdio MCP server for Derive — list, read, catch up on, comment on, and publish artifacts on a Derive instance.",
6
6
  "keywords": [
@@ -48,10 +48,10 @@
48
48
  "@types/node": "^25.9.3",
49
49
  "typescript": "^6.0.3",
50
50
  "vitest": "^4.1.9",
51
+ "@derive/api": "0.1.0",
51
52
  "@derive/core": "0.1.0",
52
53
  "@derive/db": "0.1.0",
53
- "@derive/storage": "0.1.0",
54
- "@derive/api": "0.1.0"
54
+ "@derive/storage": "0.1.0"
55
55
  },
56
56
  "scripts": {
57
57
  "start": "tsx src/index.ts",
package/src/client.ts CHANGED
@@ -157,7 +157,7 @@ export interface ContentOpts {
157
157
  version?: number
158
158
  /** A heading slug (single-file) or page path (bundle, optionally page#slug). */
159
159
  section?: string
160
- format?: "markdown" | "text"
160
+ format?: "markdown" | "text" | "html"
161
161
  }
162
162
 
163
163
  /** A content read: the body plus the server's X-Derive-* capability headers, so a
package/src/index.ts CHANGED
@@ -214,9 +214,11 @@ server.registerTool(
214
214
  'A heading slug (single-file) or page path (bundle, optionally page#slug). Pass "*" for the full document.',
215
215
  ),
216
216
  format: z
217
- .enum(["markdown", "text"])
217
+ .enum(["markdown", "text", "html"])
218
218
  .optional()
219
- .describe("markdown (default, HTML converted) or text (flat visible text)."),
219
+ .describe(
220
+ "markdown (default, HTML converted), text (flat visible text), or html (the exact stored source — read it before revising with publish `edits`).",
221
+ ),
220
222
  version: z.number().int().optional().describe("Defaults to the current version."),
221
223
  workspace: wsArg,
222
224
  },
@@ -722,6 +724,7 @@ server.registerTool(
722
724
  published: true,
723
725
  short_id: a.short_id,
724
726
  ...(a.review_requested ? { review_requested: true } : {}),
727
+ ...(echoedSha ? { content_sha256: echoedSha } : {}),
725
728
  ...(pathSha && echoedSha ? { content_verified: true } : {}),
726
729
  version: a.current_version,
727
730
  url: a.url,