Version Packages#115
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
cc4a0b2 to
6ba1139
Compare
8088e97 to
b9d1559
Compare
b9d1559 to
8dbdbe9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@baruchiro/paperless-mcp@2.0.0
Major Changes
18d49ce: Secure HTTP mode by default and stop leaking the API token in logs.
BREAKING CHANGE: In HTTP mode, requests without an
Authorization: Bearer <token>header are now rejected with401 Unauthorized. Previously they silently fell back to the server-configuredPAPERLESS_API_KEY, which left the endpoint unauthenticated for anyone able to reach the port. To restore the old fallback behaviour (trusted/local networks only), start the server with the new--no-authflag; it requires a server token to be configured. Client-supplied Bearer tokens and stdio mode are unchanged.Also stops logging the raw request
options(which included the request body) on API errors; onlyurl,method, andstatusare logged now.Minor Changes
archive_serial_number,archive_serial_number__isnull,custom_field_query, andcustom_fields__icontainsfilters to thelist_documentstool.Patch Changes
0d236aa: Stop pre-enumerating Paperless documents in MCP
resources/list. Documents remain available on demand via tools andresources/readonpaperless://documents/{id}/{resource}.Fixes Performance: Documents registered as MCP Resources with thumbnails causes context window bloat #112.
62e5b06: Fix setting
selectcustom field values failing against Paperless (Setting aselect-type custom field value fails (Paperless 500) — label string forwarded instead of option id/index #119). The MCP forwarded the option label, which Paperless rejects. The server now fetches the field definition and translates the label to the encoding each write path expects:update_document(the document endpoint) takes the option's zero-based index, whilebulk_edit_documents→modify_custom_fieldswrites the stored form directly and takes the option id on 2.17+ (or the index on pre-2.17 string options). A label, an already-encoded value, or an option id read back from a document all resolve correctly, and unknown options are rejected with an actionable error listing the valid choices.6f8aada: Allow
post_documentto upload from an absolute server-sidefile_pathinstead of base64file, avoiding base64 overhead for large files. Reads are validated (absolute path, regular file, 100MB limit, non-empty) and can be confined to allowed directories via thePAPERLESS_MCP_UPLOAD_PATHSenvironment variable.