@baruchiro/paperless-mcp 0.0.1 → 0.0.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.
package/README.md CHANGED
@@ -28,7 +28,7 @@ Add these to your MCP config file:
28
28
  ],
29
29
  "env": {
30
30
  "PAPERLESS_URL": "http://your-paperless-instance:8000",
31
- "API_KEY": "your-api-token"
31
+ "PAPERLESS_API_KEY": "your-api-token"
32
32
  }
33
33
  }
34
34
  ```
@@ -45,7 +45,7 @@ Add these to your MCP config file:
45
45
  ],
46
46
  "env": {
47
47
  "PAPERLESS_URL": "http://your-paperless-instance:8000",
48
- "API_KEY": "your-api-token"
48
+ "PAPERLESS_API_KEY": "your-api-token"
49
49
  }
50
50
  }
51
51
  ```
package/build/index.js CHANGED
@@ -34,11 +34,11 @@ const { values: { baseUrl, token, http: useHttp, port }, } = (0, node_util_1.par
34
34
  allowPositionals: true,
35
35
  });
36
36
  const resolvedBaseUrl = baseUrl || process.env.PAPERLESS_URL;
37
- const resolvedToken = token || process.env.API_KEY;
37
+ const resolvedToken = token || process.env.PAPERLESS_API_KEY;
38
38
  const resolvedPort = port ? parseInt(port, 10) : 3000;
39
39
  if (!resolvedBaseUrl || !resolvedToken) {
40
40
  console.error("Usage: paperless-mcp --baseUrl <url> --token <token> [--http] [--port <port>]");
41
- console.error("Or set PAPERLESS_URL and API_KEY environment variables.");
41
+ console.error("Or set PAPERLESS_URL and PAPERLESS_API_KEY environment variables.");
42
42
  process.exit(1);
43
43
  }
44
44
  function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baruchiro/paperless-mcp",
3
- "version": "0.0.1",
3
+ "version": "0.0.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": {