@superdoc/mcp 1.21.0-next.6 → 1.21.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.
Files changed (3) hide show
  1. package/README.md +0 -75
  2. package/dist/index.js +15242 -8753
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -54,66 +54,6 @@ The agent opens the document, inspects it, makes the edit, saves the copy, and
54
54
  closes the session. Open the copy in Word or the SuperDoc editor to review the
55
55
  tracked changes.
56
56
 
57
- ## Tools
58
-
59
- Three lifecycle tools are always available. The editing tools depend on
60
- `MCP_PRESET`:
61
-
62
- | `MCP_PRESET` | Tools |
63
- | --- | --- |
64
- | `core` (recommended) | 5: lifecycle tools plus `superdoc_inspect` and `superdoc_perform_action` |
65
- | `legacy` (default) | 13: lifecycle tools plus 10 grouped intent tools |
66
-
67
- | Lifecycle tool | Does |
68
- | --- | --- |
69
- | `superdoc_open` | Opens a DOCX by absolute path and returns a `session_id`. |
70
- | `superdoc_save` | Writes the document to its original path or to `out`. |
71
- | `superdoc_close` | Closes the session and releases memory. |
72
-
73
- Every other tool takes the `session_id` from `superdoc_open`.
74
-
75
- <details>
76
- <summary>Intent tools in the <code>legacy</code> preset</summary>
77
-
78
- Most take an `action` argument that selects the operation. `superdoc_search`
79
- takes `select` instead.
80
-
81
- | Tool | Covers |
82
- | --- | --- |
83
- | `superdoc_get_content` | Read the document as text, Markdown, HTML, blocks, or metadata |
84
- | `superdoc_search` | Find content and return stable targets |
85
- | `superdoc_edit` | Insert, replace, and delete text or blocks, plus undo and redo |
86
- | `superdoc_format` | Inline and paragraph formatting, styles, direction, and flow |
87
- | `superdoc_create` | Create paragraphs, headings, and tables |
88
- | `superdoc_list` | Create, convert, nest, split, merge, and renumber lists |
89
- | `superdoc_table` | Table structure, content, and styling |
90
- | `superdoc_comment` | Create, update, resolve, and read comment threads |
91
- | `superdoc_track_changes` | List tracked changes and accept or reject them |
92
- | `superdoc_mutations` | Preview and apply multi-step edits as one atomic batch |
93
-
94
- </details>
95
-
96
- Each tool's JSON Schema is generated from the Document API contract and served
97
- over MCP. Read the advertised schema rather than a copy of it.
98
- `getToolCatalog('core')` or `getToolCatalog('legacy')` in `@superdoc/sdk` returns the same data for that preset.
99
-
100
- ## Tracked changes
101
-
102
- Edits that support it take `changeMode: "tracked"`. To accept or reject
103
- changes, use `superdoc_perform_action` with `accept_tracked_changes` or
104
- `reject_tracked_changes` under `core`, or `superdoc_track_changes` under
105
- `legacy`.
106
-
107
- Not every action honors `changeMode`. Some edit directly, and `move_range`
108
- accepts it and then fails without editing, so check each receipt.
109
-
110
- Tracked changes are authored as `MCP Server` by default. Set
111
- `SUPERDOC_MCP_AUTHOR_NAME` to name the agent or workflow:
112
-
113
- ```json
114
- "env": { "MCP_PRESET": "core", "SUPERDOC_MCP_AUTHOR_NAME": "Contract Review Agent" }
115
- ```
116
-
117
57
  ## Configuration
118
58
 
119
59
  | Variable | Default | Does |
@@ -121,21 +61,6 @@ Tracked changes are authored as `MCP Server` by default. Set
121
61
  | `MCP_PRESET` | `legacy` | Tool set: `core` or `legacy`. Other values fail at startup. |
122
62
  | `SUPERDOC_MCP_AUTHOR_NAME` | `MCP Server` | Author name on tracked changes. |
123
63
 
124
- ## Common mistakes
125
-
126
- | Wrong | Right |
127
- | --- | --- |
128
- | `npx @superdoc-dev/mcp` | `npx @superdoc/mcp`. The old name no longer gets releases |
129
- | Relative paths | Absolute paths. Relative paths resolve against the directory your client chose |
130
- | A path that does not exist | Check it first. A missing path opens a blank document instead of failing |
131
- | Saving over the source or an earlier result | Save to a new path. `superdoc_save` overwrites without asking |
132
- | Asking the model to stay in one folder | Run the server under a dedicated user, a container, or an OS sandbox |
133
- | Assuming an edit was tracked | Check the receipt. Not every action honors `changeMode` |
134
-
135
- The server reads and writes any path its account can reach. Your client can
136
- send document content to its model provider through tool results. See
137
- [agent safety](https://docs.superdoc.dev/agents/operate/safety).
138
-
139
64
  ## Related packages
140
65
 
141
66
  - [`@superdoc/sdk`](https://www.npmjs.com/package/@superdoc/sdk): Node.js SDK and agent toolkit for building your own agent loop.