pdfops-mcp 0.1.0 → 0.1.1

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 (2) hide show
  1. package/dist/index.js +5 -7
  2. package/package.json +7 -2
package/dist/index.js CHANGED
@@ -1,21 +1,19 @@
1
1
  #!/usr/bin/env node
2
-
3
- // src/index.ts
4
2
  import { readFile, writeFile } from "node:fs/promises";
5
3
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
6
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
7
5
  import { z } from "zod";
8
6
  import { PdfOps, PdfOpsError } from "pdfops-sdk";
9
- var client = new PdfOps({
7
+ const client = new PdfOps({
10
8
  apiKey: process.env.PDFOPS_API_KEY,
11
9
  baseUrl: process.env.PDFOPS_BASE_URL,
12
10
  clientTag: "mcp"
13
11
  });
14
- var server = new McpServer({
12
+ const server = new McpServer({
15
13
  name: "pdfops",
16
- version: "0.1.0"
14
+ version: "0.1.1"
17
15
  });
18
- var errText = (e) => e instanceof PdfOpsError ? `PDFops API error ${e.status} (${e.code}): ${e.message}` + (e.code === "rate_limited" ? " \u2014 get a free API key (250/mo) at https://pdfops.dev/pricing and set PDFOPS_API_KEY" : "") : String(e);
16
+ const errText = (e) => e instanceof PdfOpsError ? `PDFops API error ${e.status} (${e.code}): ${e.message}` + (e.code === "rate_limited" ? " \u2014 get a free API key (250/mo) at https://pdfops.dev/pricing and set PDFOPS_API_KEY" : "") : String(e);
19
17
  server.tool(
20
18
  "pdf_inspect",
21
19
  "List a PDF's AcroForm form fields \u2014 names, types, options, current values \u2014 plus a paste-ready fillTemplate object for pdf_fill. A PDF with no form returns count 0. Call this FIRST when filling an unfamiliar PDF: you cannot fill fields whose names you do not know.",
@@ -129,5 +127,5 @@ server.tool(
129
127
  }
130
128
  }
131
129
  );
132
- var transport = new StdioServerTransport();
130
+ const transport = new StdioServerTransport();
133
131
  await server.connect(transport);
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "pdfops-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
+ "mcpName": "dev.pdfops/pdfops-mcp",
4
5
  "description": "MCP server for the PDFops API \u2014 give AI agents deterministic PDF tools: inspect AcroForm fields, fill forms, merge PDFs, and generate invoices. Works with Claude Code, Claude Desktop, Cursor, and any MCP client.",
5
6
  "keywords": [
6
7
  "mcp",
@@ -15,7 +16,7 @@
15
16
  "cursor"
16
17
  ],
17
18
  "homepage": "https://pdfops.dev",
18
- "bugs": "mailto:hello@pdfops.dev",
19
+ "bugs": "https://github.com/pdfops/pdfops-mcp/issues",
19
20
  "author": "PDFops <hello@pdfops.dev> (https://pdfops.dev)",
20
21
  "license": "MIT",
21
22
  "type": "module",
@@ -33,5 +34,9 @@
33
34
  "@modelcontextprotocol/sdk": "^1.0.0",
34
35
  "pdfops-sdk": "^0.3.0",
35
36
  "zod": "^3.23.0"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/pdfops/pdfops-mcp.git"
36
41
  }
37
42
  }