API & MCP

Everything a person can do on Wikinest Page Diff, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Wikinest Page Diff

Compares two versions of a wiki page (or any text) line by line with the Myers algorithm, pairs replaced lines and marks the changed words inside them, counts added and removed words and writes a unified diff you can save as a patch. It is the comparison Wikinest shows in a page’s version history.

Inputs of Wikinest Page Diff
FieldTypeDefaultDescription
beforetextarea—Older version
aftertextarea—Newer version
contextinteger3Unchanged lines around each change
ignoreWhitespacebooleanfalseIgnore spaces and indentation

Example request

Release checklist: status, tasks and commands changed

curl -X POST https://wikinestpagediff.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"before":"# Release checklist\n\nStatus: {status:yellow|In progress}\n\n- [x] Freeze the release branch\n- [ ] Run the smoke tests\n- [ ] Write the release notes\n\n## Commands\n```sh\ngit tag -a v2.4.0\n```\n\nAsk @[Ada] before tagging.\n","after":"# Release checklist\n\nStatus: {status:green|Done}\n\n- [x] Freeze the release branch\n- [x] Run the smoke tests\n- [x] Write the release notes\n- [x] Announce the release in #general\n\n## Commands\n```sh\ngit tag -a v2.4.0 -m \"Release 2.4.0\"\ngit push origin v2.4.0\n```\n\nAsk @[Grace] before tagging.\n"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "wikinest-page-diff": { "type": "http", "url": "https://wikinestpagediff.usefulweb.app/mcp" }
  }
}