diff --git a/ai/mintlify-mcp.mdx b/ai/mintlify-mcp.mdx index 2acc0be81b..9133627508 100644 --- a/ai/mintlify-mcp.mdx +++ b/ai/mintlify-mcp.mdx @@ -173,8 +173,8 @@ To revoke a credential, click the delete icon next to it. - **`read`**: Fetch the full MDX of any page on `branch`, or on your deploy branch when you omit it. Pass in a file path or UUID. To read a [private page](/editor/pages#private-pages), pass its `private-page-` node ID from `list_nodes` with `visibility: "private"`. Private reads don't need a `branch` and require an OAuth session. The admin MCP rejects client and machine-to-machine tokens for private-page access. - **`search`**: Find lines matching a substring or regular expression across every page on `branch`. Searches your deploy branch when you omit it. -- **`edit_page`**: Apply a targeted edit to a page. To edit a [private page](/editor/pages#private-pages), pass its `private-page-` node ID as `path`. Private edits require an OAuth session with an editor role or higher on the page and don't need a `branch`. -- **`write_page`**: Overwrite a page's full MDX content. Accepts a `private-page-` node ID to overwrite a private page under the same OAuth and role requirements as `edit_page`. Use `create_node` to create a new private page. +- **`edit_page`**: Apply a targeted edit to a page. Pass `oldString` and `newString` for one replacement, or pass an `edits` list of up to 100 replacements to change several parts of a page in one call. Mintlify applies the edits in order, each to the result of the previous one. If any edit fails, none of them apply. Like `write_page`, `edit_page` returns `notRendered` for markup the edit adds that the editor drops. It doesn't report markup that was already on the page. To edit a [private page](/editor/pages#private-pages), pass its `private-page-` node ID as `path`. Private edits require an OAuth session with an editor role or higher on the page and don't need a `branch`. +- **`write_page`**: Overwrite a page's full MDX content. Accepts a `private-page-` node ID to overwrite a private page under the same OAuth and role requirements as `edit_page`. Use `create_node` to create a new private page. If the content includes markup the Mintlify editor drops, such as `