MCP Documentation Service

by alekspetrov
Verified

edit_document

Make line-based edits to a markdown document. Each edit replaces exact line sequences with new content. Returns a git-style diff showing the changes made.

Input Schema

NameRequiredDescriptionDefault
dryRunNo
editsYes
pathYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "dryRun": { "default": false, "type": "boolean" }, "edits": { "items": { "additionalProperties": false, "properties": { "newText": { "type": "string" }, "oldText": { "type": "string" } }, "required": [ "oldText", "newText" ], "type": "object" }, "type": "array" }, "path": { "type": "string" } }, "required": [ "path", "edits" ], "type": "object" }