Repository navigation
v0.1.6
Added
post_documentcan now wait for the consumer. New optionalpollflag: whentrue, the tool waits for the Paperless consumer task to finish and returns the final result in a single call — the newdocument_idon success, or the consumer error (e.g.InputFileError) on failure — instead of just a task UUID you have to chase vialist_tasks. New optionalpoll_timeout_seconds(default 30, max 300) caps the wait and returns the in-progress status on timeout; raise it for large scans where OCR is slow. Default behaviour is unchanged — withoutpoll, the tool still returns the task UUID immediately.
Fixed
post_documentno longer misleads callers about thefilepath option on remote deployments. Thefileparameter description now makes clear that base64 content is the universal method (the bytes travel over the wire) and that the absolute-path option only works when the MCP server runs on the same machine as the file (local/stdio deployments). When a path can't be read (e.g. a remote server can't see the caller's filesystem), the bareENOENTis replaced with a message that explains why and tells the caller to pass base64 instead — so an AI client can self-correct instead of dead-ending.
Full Changelog: v0.1.5...v0.1.6