mirror of
https://github.com/outline/outline.git
synced 2026-11-22 22:02:35 +03:00
* fix: Reject document updates that contain no updatable fields A documents.update request carrying a valid id but no recognized body field (e.g. text omitted, or an unmapped key stripped by validation) previously returned 200 OK while writing nothing, so API and MCP callers could believe content was persisted when nothing changed. documentUpdater now throws a ValidationError when none of the updatable properties are provided, making the no-op fail loud with a 400 for both the REST route and the MCP update_document tool. Requests that only signal an editing session (done) or publish a draft continue to work. Closes #12875 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCYPC1guJ85BezXLNw8Zjo * fix: Error on MCP document update with no fields provided Scope the no-op guard to the MCP surface only, and derive it from the provided input rather than a hardcoded list of properties: any key other than id counts, since the tool schema already strips unrecognized fields. Closes #12875 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCYPC1guJ85BezXLNw8Zjo * fix: Base MCP no-op update detection on whether the document changed Compare the document's revisionCount before and after documentUpdater runs instead of inspecting the request input. Every save increments revisionCount, so an unchanged count means nothing was persisted — this catches both requests with no recognized fields and requests whose values are identical to the current document. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCYPC1guJ85BezXLNw8Zjo * fix: Extend no-op update detection to all MCP update tools Apply the same fail-loud behavior to update_collection and update_comment: check model.changed() before saving and return an error when the request would persist nothing. Mark all three update tools as non-idempotent since retrying an already-applied update now returns an error rather than a second success. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCYPC1guJ85BezXLNw8Zjo * chore: Fix punctuation in no-op update error messages Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QCYPC1guJ85BezXLNw8Zjo --------- Co-authored-by: Claude <noreply@anthropic.com>
Tools are the building blocks of functionality for our internal MCP server.
Each tool is a self-contained unit of functionality that can be invoked by the MCP client to perform a specific task. To test the MCP with Claude in development make sure to run with the following command to ensure that the MCP server trusts the mkcert root CA certificate.
NODE_EXTRA_CA_CERTS=$(mkcert -CAROOT)/rootCA.pem claude