@exactpdf/mcp 0.2.11 → 0.2.12

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
@@ -8,9 +8,11 @@ Use it when an agent needs to inspect, merge, split, rotate, compress, extract,
8
8
 
9
9
  **Design principle:** every tool should work on first run, explain credit cost before risky work, return a local output path for files, and expose precise HTTP/API errors when something fails.
10
10
 
11
+ Developer quickstart: [https://exactpdf.com/developers](https://exactpdf.com/developers)
12
+
11
13
  ## Setup
12
14
 
13
- 1. Create an API key at [exactpdf.com](https://exactpdf.com) (Max API keys).
15
+ 1. Create an API key at [max.exactpdf.com/account](https://max.exactpdf.com/account). New accounts get **20 free test credits**. Buy one-time credit packs only after the workflow works; no subscription is required for API/MCP.
14
16
  2. Export:
15
17
 
16
18
  ```bash
@@ -60,6 +62,14 @@ Safe first run:
60
62
 
61
63
  Document outputs are saved to `EXACTPDF_API_OUTPUT_DIR` or your OS temp directory. Paid document tools consume credits only on successful output. Async speech jobs are metered by generated minutes.
62
64
 
65
+ Credit model:
66
+
67
+ - Free probes: checklist, account, PDF info, voice preview, speech cost estimate, and job polling.
68
+ - New accounts: 20 free test credits for API/MCP workflows.
69
+ - Standard document tools: 1 credit only after a successful output.
70
+ - Long audio jobs: metered by generated minutes.
71
+ - One-time packs: available in Max Account when you need more; no subscription required for API/MCP.
72
+
63
73
  | Tool | Endpoint | Credits |
64
74
  |------|----------|--------:|
65
75
  | `exactpdf_first_run_checklist` | local guidance | 0 |
@@ -151,6 +161,7 @@ The package must exist on the public npm registry before the MCP Registry can ve
151
161
 
152
162
  ## Docs
153
163
 
164
+ - [https://exactpdf.com/developers](https://exactpdf.com/developers)
154
165
  - [https://exactpdf.com/docs/api](https://exactpdf.com/docs/api)
155
166
 
156
167
  ## License
package/dist/run.d.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
3
  * ExactPDF MCP — stdio server for Cursor / Claude Desktop / Codex.
4
- * Requires EXACTPDF_API_KEY (sk_live_…) from exactpdf.com (Max dashboard → API keys).
4
+ * Requires EXACTPDF_API_KEY (sk_live_…) from max.exactpdf.com/account.
5
+ * New accounts get free test credits; one-time credit packs are available
6
+ * after the first workflow works.
5
7
  *
8
+ * @see https://exactpdf.com/developers
6
9
  * @see https://exactpdf.com/docs/api
7
10
  */
8
11
  export {};
package/dist/run.js CHANGED
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
3
  * ExactPDF MCP — stdio server for Cursor / Claude Desktop / Codex.
4
- * Requires EXACTPDF_API_KEY (sk_live_…) from exactpdf.com (Max dashboard → API keys).
4
+ * Requires EXACTPDF_API_KEY (sk_live_…) from max.exactpdf.com/account.
5
+ * New accounts get free test credits; one-time credit packs are available
6
+ * after the first workflow works.
5
7
  *
8
+ * @see https://exactpdf.com/developers
6
9
  * @see https://exactpdf.com/docs/api
7
10
  */
8
11
  import { mkdir, readFile, stat, writeFile } from 'node:fs/promises';
@@ -20,12 +23,12 @@ function outputDir() {
20
23
  function requireKey() {
21
24
  const k = process.env.EXACTPDF_API_KEY?.trim();
22
25
  if (!k) {
23
- throw new Error('EXACTPDF_API_KEY is not set. Create a key at exactpdf.com (Max → API keys), then export EXACTPDF_API_KEY=sk_live_');
26
+ throw new Error('EXACTPDF_API_KEY is not set. Create a key with free test credits at https://max.exactpdf.com/account, then export EXACTPDF_API_KEY=sk_live_…. Quickstart: https://exactpdf.com/developers');
24
27
  }
25
28
  return k;
26
29
  }
27
- const server = new McpServer({ name: 'exactpdf', version: '0.2.11' }, {
28
- instructions: 'ExactPDF turns local PDFs into production outputs for agents: inspect metadata, merge/split/rotate/compress, create portal-ready merge/images workflows, extract text/structured Markdown, create voice previews, and queue async PDF speech/audiobook/translation/presentation narration jobs. Start with exactpdf_first_run_checklist, then exactpdf_account and exactpdf_pdf_info before paid work. Free tools: first-run checklist, account, pdf-info, voice-preview, speech cost estimate. Standard document tools cost 1 credit on success, including launch portal-ready workflows. Async speech jobs are metered by generated minutes. Use absolute local file paths; binary outputs are saved to EXACTPDF_API_OUTPUT_DIR or the OS temp directory. For async jobs, submit first, then poll exactpdf_get_speech_job, then download with exactpdf_download_audio when succeeded.',
30
+ const server = new McpServer({ name: 'exactpdf', version: '0.2.12' }, {
31
+ instructions: 'ExactPDF turns local PDFs into production outputs for agents: inspect metadata, merge/split/rotate/compress, create portal-ready merge/images workflows, extract text/structured Markdown, create voice previews, and queue async PDF speech/audiobook/translation/presentation narration jobs. Start with exactpdf_first_run_checklist, then exactpdf_account and exactpdf_pdf_info before paid work. New users can create a key with free test credits at https://max.exactpdf.com/account; developer quickstart: https://exactpdf.com/developers. Free tools: first-run checklist, account, pdf-info, voice-preview, speech cost estimate. Standard document tools cost 1 credit on success, including launch portal-ready workflows. Async speech jobs are metered by generated minutes. Use absolute local file paths; binary outputs are saved to EXACTPDF_API_OUTPUT_DIR or the OS temp directory. For async jobs, submit first, then poll exactpdf_get_speech_job, then download with exactpdf_download_audio when succeeded.',
29
32
  });
30
33
  async function saveBinaryFromResponse(res, prefix, fallbackExt) {
31
34
  const buf = Buffer.from(await res.arrayBuffer());
@@ -68,7 +71,8 @@ server.registerTool('exactpdf_first_run_checklist', {
68
71
  ok: true,
69
72
  setup: {
70
73
  required_env: 'EXACTPDF_API_KEY=sk_live_...',
71
- create_key_url: `${BASE}/max/account`,
74
+ create_key_url: 'https://max.exactpdf.com/account',
75
+ developer_quickstart: `${BASE}/developers`,
72
76
  optional_output_dir: 'EXACTPDF_API_OUTPUT_DIR=/absolute/output/folder',
73
77
  docs: `${BASE}/docs/api`,
74
78
  openapi: `${BASE}/openapi.json`,
@@ -81,7 +85,9 @@ server.registerTool('exactpdf_first_run_checklist', {
81
85
  ],
82
86
  credit_model: {
83
87
  free: ['exactpdf_first_run_checklist', 'exactpdf_account', 'exactpdf_pdf_info', 'exactpdf_voice_preview', 'exactpdf_estimate_speech_cost', 'job polling'],
88
+ starter_trial: 'New accounts get 20 free test credits for API/MCP workflows.',
84
89
  standard_document_tools: '1 credit only after successful output',
90
+ credit_packs: 'Buy one-time credit packs when the workflow works; subscription is not required for API/MCP.',
85
91
  launch_portal_ready_workflows: '1 credit on successful output: exactpdf_merge_and_compress_pdfs, exactpdf_images_to_pdf_and_compress',
86
92
  speech_audiobook_presentation: '1 credit per generated minute',
87
93
  translate_and_speak: '3 credits per generated minute',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exactpdf/mcp",
3
- "version": "0.2.11",
4
- "description": "MCP server for ExactPDF — PDF tools, voice previews, async PDF speech/audiobook jobs, polling, and API credits.",
3
+ "version": "0.2.12",
4
+ "description": "MCP server for ExactPDF — agent PDF workflows, structured Markdown/RAG, merge/compress, voice previews, async audio jobs, and API credits.",
5
5
  "mcpName": "com.exactpdf/mcp",
6
6
  "type": "module",
7
7
  "main": "./dist/run.js",
@@ -19,7 +19,7 @@
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },
22
- "homepage": "https://exactpdf.com/docs/api",
22
+ "homepage": "https://exactpdf.com/developers",
23
23
  "bugs": {
24
24
  "url": "https://exactpdf.com/docs/api",
25
25
  "email": "support@exactpdf.com"
package/server.json CHANGED
@@ -3,13 +3,13 @@
3
3
  "name": "com.exactpdf/mcp",
4
4
  "title": "ExactPDF",
5
5
  "description": "Agent-facing PDF API: merge, split, rotate, compress, images, metadata, text, Markdown, voice previews, async speech/audiobook, multilingual speech, and presentation narration jobs.",
6
- "version": "0.2.11",
6
+ "version": "0.2.12",
7
7
  "websiteUrl": "https://exactpdf.com/docs/api",
8
8
  "packages": [
9
9
  {
10
10
  "registryType": "npm",
11
11
  "identifier": "@exactpdf/mcp",
12
- "version": "0.2.11",
12
+ "version": "0.2.12",
13
13
  "transport": {
14
14
  "type": "stdio"
15
15
  }