@baruchiro/paperless-mcp 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/build/package.json +60 -0
  2. package/build/{index.js → src/index.js} +2 -1
  3. package/build/{tools → src/tools}/documents.js +1 -1
  4. package/package.json +1 -1
  5. package/paperless-mcp.dxt +0 -0
  6. /package/build/{api → src/api}/PaperlessAPI.d.ts +0 -0
  7. /package/build/{api → src/api}/PaperlessAPI.js +0 -0
  8. /package/build/{api → src/api}/documentEnhancer.d.ts +0 -0
  9. /package/build/{api → src/api}/documentEnhancer.js +0 -0
  10. /package/build/{api → src/api}/types.d.ts +0 -0
  11. /package/build/{api → src/api}/types.js +0 -0
  12. /package/build/{api → src/api}/utils.d.ts +0 -0
  13. /package/build/{api → src/api}/utils.js +0 -0
  14. /package/build/{index.d.ts → src/index.d.ts} +0 -0
  15. /package/build/{tools → src/tools}/correspondents.d.ts +0 -0
  16. /package/build/{tools → src/tools}/correspondents.js +0 -0
  17. /package/build/{tools → src/tools}/customFields.d.ts +0 -0
  18. /package/build/{tools → src/tools}/customFields.js +0 -0
  19. /package/build/{tools → src/tools}/documentTypes.d.ts +0 -0
  20. /package/build/{tools → src/tools}/documentTypes.js +0 -0
  21. /package/build/{tools → src/tools}/documents.d.ts +0 -0
  22. /package/build/{tools → src/tools}/tags.d.ts +0 -0
  23. /package/build/{tools → src/tools}/tags.js +0 -0
  24. /package/build/{tools → src/tools}/utils/descriptions.d.ts +0 -0
  25. /package/build/{tools → src/tools}/utils/descriptions.js +0 -0
  26. /package/build/{tools → src/tools}/utils/empty.d.ts +0 -0
  27. /package/build/{tools → src/tools}/utils/empty.js +0 -0
  28. /package/build/{tools → src/tools}/utils/middlewares.d.ts +0 -0
  29. /package/build/{tools → src/tools}/utils/middlewares.js +0 -0
  30. /package/build/{tools → src/tools}/utils/monetary.d.ts +0 -0
  31. /package/build/{tools → src/tools}/utils/monetary.js +0 -0
  32. /package/build/{tools → src/tools}/utils/monetary.test.d.ts +0 -0
  33. /package/build/{tools → src/tools}/utils/monetary.test.js +0 -0
  34. /package/build/{tools → src/tools}/utils/queryString.d.ts +0 -0
  35. /package/build/{tools → src/tools}/utils/queryString.js +0 -0
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@baruchiro/paperless-mcp",
3
+ "version": "0.4.2",
4
+ "description": "Model Context Protocol (MCP) server for interacting with Paperless-NGX document management system. Enables AI assistants to manage documents, tags, correspondents, and document types through the Paperless-NGX API.",
5
+ "main": "build/index.js",
6
+ "bin": {
7
+ "paperless-mcp": "build/index.js"
8
+ },
9
+ "scripts": {
10
+ "test": "node --require ts-node/register --test src/**/*.test.ts",
11
+ "start": "ts-node src/index.ts",
12
+ "build": "tsc",
13
+ "dxt-pack": "dxt pack",
14
+ "inspect": "npm run build && npx -y @modelcontextprotocol/inspector node build/index.js",
15
+ "prepack": "npm run build && npm run dxt-pack"
16
+ },
17
+ "keywords": [
18
+ "mcp",
19
+ "paperless-ngx",
20
+ "document-management",
21
+ "ai",
22
+ "claude",
23
+ "model-context-protocol",
24
+ "paperless"
25
+ ],
26
+ "author": "Baruch Odem",
27
+ "license": "ISC",
28
+ "engines": {
29
+ "node": ">=24.0.0"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/baruchiro/paperless-mcp.git"
34
+ },
35
+ "homepage": "https://github.com/baruchiro/paperless-mcp",
36
+ "files": [
37
+ "build",
38
+ "README.md",
39
+ "LICENSE",
40
+ "paperless-mcp.dxt"
41
+ ],
42
+ "bugs": {
43
+ "url": "https://github.com/baruchiro/paperless-mcp/issues"
44
+ },
45
+ "dependencies": {
46
+ "@modelcontextprotocol/sdk": "^1.11.1",
47
+ "axios": "^1.9.0",
48
+ "express": "^5.1.0",
49
+ "form-data": "^4.0.2",
50
+ "typescript": "^5.8.3",
51
+ "zod": "^3.24.1"
52
+ },
53
+ "devDependencies": {
54
+ "@anthropic-ai/dxt": "^0.2.6",
55
+ "@changesets/cli": "^2.29.4",
56
+ "@types/express": "^5.0.2",
57
+ "@types/node": "^24.0.0",
58
+ "ts-node": "^10.9.2"
59
+ }
60
+ }
@@ -25,6 +25,7 @@ const customFields_1 = require("./tools/customFields");
25
25
  const documents_1 = require("./tools/documents");
26
26
  const documentTypes_1 = require("./tools/documentTypes");
27
27
  const tags_1 = require("./tools/tags");
28
+ const package_json_1 = require("../package.json");
28
29
  const { values: { baseUrl, token, http: useHttp, port, publicUrl }, } = (0, node_util_1.parseArgs)({
29
30
  options: {
30
31
  baseUrl: { type: "string" },
@@ -48,7 +49,7 @@ function main() {
48
49
  return __awaiter(this, void 0, void 0, function* () {
49
50
  // Initialize API client and server once
50
51
  const api = new PaperlessAPI_1.PaperlessAPI(resolvedBaseUrl, resolvedToken);
51
- const server = new mcp_js_1.McpServer({ name: "paperless-ngx", version: "1.0.0" }, {
52
+ const server = new mcp_js_1.McpServer({ name: "paperless-ngx", version: package_json_1.version }, {
52
53
  instructions: `
53
54
  Paperless-NGX MCP Server Instructions
54
55
 
@@ -102,7 +102,7 @@ function registerDocumentTools(server, api) {
102
102
  if (args.method === "delete" && !args.confirm) {
103
103
  throw new Error("Confirmation required for destructive operation. Set confirm: true to proceed.");
104
104
  }
105
- const { documents, method, add_custom_fields } = args, parameters = __rest(args, ["documents", "method", "add_custom_fields"]);
105
+ const { documents, method, add_custom_fields, confirm } = args, parameters = __rest(args, ["documents", "method", "add_custom_fields", "confirm"]);
106
106
  (0, monetary_1.validateCustomFields)(add_custom_fields);
107
107
  // Transform add_custom_fields into the two separate API parameters
108
108
  const apiParameters = Object.assign({}, parameters);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baruchiro/paperless-mcp",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Model Context Protocol (MCP) server for interacting with Paperless-NGX document management system. Enables AI assistants to manage documents, tags, correspondents, and document types through the Paperless-NGX API.",
5
5
  "main": "build/index.js",
6
6
  "bin": {
package/paperless-mcp.dxt CHANGED
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes