Minor Changes
-
f5953cc: Surface the resource URI as text in
download_documentandget_document_thumbnail(#134).Both tools returned a single
resourcecontent block, so MCP clients that read
onlycontent[].textand drop resource blocks (Hermes Agent, older Claude
Desktop) saw an empty result and never learned the URI. Each tool now also
returns the barepaperless://URI in a leadingtextblock. The resource block
is unchanged, so clients that already follow it keep working.Thanks to @zbingos for the report and diagnosis.
Patch Changes
- 031bde9: fix(documents):
bulk_edit_documentswithmethod: "set_permissions"always failed with HTTP 500. The tool nestedset_permissions/owner/mergeunder an extrapermissionskey, but Paperless reads them directly fromparameters. The tool now takesset_permissions,ownerandmergeas top-level arguments matching the Paperless API, supports owner-only changes (sends the emptyset_permissionsobject Paperless requires), and rejects a call with neitherset_permissionsnorownerinstead of forwarding a request that would crash the server or silently clear ownership.