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
POST https://wikinestpagediff.usefulweb.app/api/v1/calculate– run Wikinest Page DiffGET https://wikinestpagediff.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
before | textarea | — | Older version |
after | textarea | — | Newer version |
context | integer | 3 | Unchanged lines around each change |
ignoreWhitespace | boolean | false | Ignore 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)
- Streamable HTTP endpoint:
https://wikinestpagediff.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
wikinest_page_diff - Local stdio connector:
node src/mcp-stdio.ts --tool=wikinest-page-diff
{
"mcpServers": {
"wikinest-page-diff": { "type": "http", "url": "https://wikinestpagediff.usefulweb.app/mcp" }
}
}