pleaxy-mcp 0.1.1 → 0.1.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 +1 -0
- package/dist/server.js +18 -0
- package/package.json +5 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -128,6 +128,7 @@ REST API refuses them.
|
|
|
128
128
|
| `approve_service_entry_sheet` | Buyer (a person; an API key gets 403) | `POST .../purchase-orders/:poId/receipts/:receiptId/approve` |
|
|
129
129
|
| `reject_service_entry_sheet` | Buyer (a person; an API key gets 403) | `POST .../purchase-orders/:poId/receipts/:receiptId/reject` |
|
|
130
130
|
| `list_invoices` | Both | `GET /v1/workspaces/:regionId/invoices` |
|
|
131
|
+
| `list_payments` | Both | `GET /v1/workspaces/:regionId/payments` |
|
|
131
132
|
| `get_invoice` | Both | `GET .../invoices/:invoiceId` |
|
|
132
133
|
| `link_replaced_invoices` | Buyer | `POST .../invoices/:invoiceId/replaces` |
|
|
133
134
|
| `unlink_replaced_invoice` | Buyer | `DELETE .../invoices/:invoiceId/replaces/:replacedInvoiceId` |
|
package/dist/server.js
CHANGED
|
@@ -321,6 +321,24 @@ export function createServer() {
|
|
|
321
321
|
return failed(e);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
|
+
server.registerTool("list_payments", {
|
|
325
|
+
title: "List payments",
|
|
326
|
+
description: "Invoices by payment state, with a summary of what is overdue, due this week and paid this month (per currency; totals are never converted). With a buyer key, state is to_pay (approved and unpaid, by due date; overdueDays when past due), in_progress (exported for a payment run, paying through Stripe, or in the accounting system and unpaid there), paid (newest first, with source: stripe, recorded, export, accounting, api or pleaxy) or attention (a failed Stripe payment or an accounting sync problem). With a supplier key, state is awaiting, in_progress or paid, with what each buyer owes. Reads only: pay or record a payment on the invoice itself. Pass nextCursor back as cursor for the next page.",
|
|
327
|
+
inputSchema: {
|
|
328
|
+
state: z.enum(["to_pay", "in_progress", "paid", "attention", "awaiting"]).optional(),
|
|
329
|
+
cursor: z.string().max(500).optional(),
|
|
330
|
+
limit: z.number().int().min(1).max(200).optional(),
|
|
331
|
+
},
|
|
332
|
+
annotations: reads,
|
|
333
|
+
}, async ({ state, cursor, limit }) => {
|
|
334
|
+
try {
|
|
335
|
+
const query = new URLSearchParams({ ...(state ? { state } : {}), ...(cursor ? { cursor } : {}), ...(limit ? { limit: String(limit) } : {}) }).toString();
|
|
336
|
+
return ok(await pleaxyRequest(`/payments${query ? `?${query}` : ""}`));
|
|
337
|
+
}
|
|
338
|
+
catch (e) {
|
|
339
|
+
return failed(e);
|
|
340
|
+
}
|
|
341
|
+
});
|
|
324
342
|
server.registerTool("get_invoice", {
|
|
325
343
|
title: "Get an invoice",
|
|
326
344
|
description: "One invoice by id, shaped as in list_invoices. With a buyer key it also says how a credit and rebill stands: on a replaced invoice, replacement.creditedInFull and replacement.uncredited (what its credit notes leave uncredited); on a replacement, uncreditedOriginals lists the invoices it replaces that aren't credited in full. When something is uncredited, tell the user not to pay the replaced invoice as well as its replacement, which pays twice, and to ask the supplier for the credit note. If several of your buyers use this id, the call fails listing them; call again with `buyer`.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pleaxy-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "MCP server for Pleaxy: purchase orders, receipts and invoices as tools for AI agents (Claude, ChatGPT, Cursor and any MCP client)",
|
|
5
5
|
"mcpName": "ai.pleaxy/pleaxy-mcp",
|
|
6
6
|
"keywords": [
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"ai-agents"
|
|
16
16
|
],
|
|
17
17
|
"homepage": "https://pleaxy.ai/docs",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/PleaxyAI/pleaxy-mcp.git"
|
|
21
|
+
},
|
|
18
22
|
"bugs": {
|
|
19
23
|
"email": "support@pleaxy.ai"
|
|
20
24
|
},
|
package/server.json
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"name": "ai.pleaxy/pleaxy-mcp",
|
|
4
4
|
"title": "Pleaxy",
|
|
5
5
|
"description": "Purchase orders, receipts and invoices in Pleaxy: read them, raise them, and route approvals.",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.2",
|
|
7
7
|
"websiteUrl": "https://pleaxy.ai/docs",
|
|
8
8
|
"packages": [
|
|
9
9
|
{
|
|
10
10
|
"registryType": "npm",
|
|
11
11
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
12
12
|
"identifier": "pleaxy-mcp",
|
|
13
|
-
"version": "0.1.
|
|
13
|
+
"version": "0.1.2",
|
|
14
14
|
"runtimeHint": "npx",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|