@pdfmakerapi/mcp
Advanced tools
+9
-6
@@ -55,7 +55,10 @@ #!/usr/bin/env node | ||
| `; | ||
| const server = new McpServer({ name: "pdfmakerapi", version: "0.1.0" }); | ||
| server.tool("create_document", `Create a professional, shareable PDF document — invoices, receipts, certificates, reports, resumes, letters, and more. Returns a link that opens the document in the PDFMakerAPI editor, where the user can preview it, edit any field, and download the PDF.\n${DOCUMENT_GUIDE}`, { | ||
| document: z | ||
| .record(z.string(), z.any()) | ||
| .describe("The PDFMakerAPI Document object to create, following the schema in this tool's description."), | ||
| const server = new McpServer({ name: "pdfmakerapi", version: "0.1.3" }); | ||
| server.registerTool("create_document", { | ||
| description: `Create a professional, shareable PDF document — invoices, receipts, certificates, reports, resumes, letters, and more. Returns a link that opens the document in the PDFMakerAPI editor, where the user can preview it, edit any field, and download the PDF.\n${DOCUMENT_GUIDE}`, | ||
| inputSchema: { | ||
| document: z | ||
| .record(z.string(), z.any()) | ||
| .describe("The PDFMakerAPI Document object to create, following the schema in this tool's description."), | ||
| }, | ||
| }, async ({ document }) => { | ||
@@ -65,3 +68,3 @@ try { | ||
| method: "POST", | ||
| headers: { "Content-Type": "application/json" }, | ||
| headers: { "Content-Type": "application/json", "User-Agent": "pdfmakerapi-mcp" }, | ||
| body: JSON.stringify({ document }), | ||
@@ -68,0 +71,0 @@ }); |
+1
-1
| { | ||
| "name": "@pdfmakerapi/mcp", | ||
| "version": "0.1.2", | ||
| "version": "0.1.3", | ||
| "mcpName": "io.github.GerardoBarrera/pdfmakerapi-mcp", | ||
@@ -5,0 +5,0 @@ "description": "MCP server for PDFMakerAPI — turn a description into a shareable, editable PDF (invoices, certificates, reports, resumes) from any MCP client (Claude, Cursor, etc.).", |
10496
0.92%102
2%