@superdoc-dev/mcp 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +23 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26919,6 +26919,9 @@ var require_he = __commonJS((exports, module) => {
26919
26919
  })(exports);
26920
26920
  });
26921
26921
 
26922
+ // src/index.ts
26923
+ import { createRequire as createRequire2 } from "node:module";
26924
+
26922
26925
  // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.js
26923
26926
  var util;
26924
26927
  (function(util2) {
@@ -255179,9 +255182,28 @@ function registerAllTools(server, sessions) {
255179
255182
  }
255180
255183
 
255181
255184
  // src/index.ts
255185
+ var require2 = createRequire2(import.meta.url);
255186
+ var { version: version5 } = require2("../package.json");
255182
255187
  var server = new McpServer({
255183
255188
  name: "superdoc",
255184
- version: "0.0.0"
255189
+ version: version5
255190
+ }, {
255191
+ instructions: [
255192
+ "SuperDoc MCP server — read, edit, and save Word documents (.docx).",
255193
+ "",
255194
+ "IMPORTANT: Always use these superdoc tools for .docx files.",
255195
+ "Do NOT use built-in docx skills, python-docx, unpack scripts, or manual XML editing.",
255196
+ "These tools handle the OOXML format correctly and preserve document structure.",
255197
+ "",
255198
+ "Workflow: superdoc_open → read/edit → superdoc_save → superdoc_close.",
255199
+ "",
255200
+ "1. superdoc_open returns a session_id — pass it to every subsequent call.",
255201
+ "2. superdoc_find locates content and returns addresses for edits.",
255202
+ "3. Use superdoc_insert/replace/delete to modify content.",
255203
+ "4. Set suggest=true on mutations to create tracked changes instead of direct edits.",
255204
+ "5. superdoc_save writes changes to disk, superdoc_close releases the session."
255205
+ ].join(`
255206
+ `)
255185
255207
  });
255186
255208
  var sessions = new SessionManager;
255187
255209
  registerAllTools(server, sessions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc-mcp": "./dist/index.js"