@suveren/gateway 0.33.0 → 0.35.0

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.
@@ -6,7 +6,7 @@
6
6
  "icon": "briefcase",
7
7
  "profile": "sales",
8
8
  "npmPackage": "@humanagencyp/erp-mcp",
9
- "npmVersion": "0.6.0",
9
+ "npmVersion": "0.9.0",
10
10
  "mcp": {
11
11
  "command": "erp-mcp",
12
12
  "args": [],
@@ -27,11 +27,35 @@
27
27
  "type": "text",
28
28
  "placeholder": "simulation (default) — live needs an adapter for your ERP",
29
29
  "optional": true
30
+ },
31
+ {
32
+ "key": "liveAdapter",
33
+ "label": "Live adapter (optional)",
34
+ "type": "text",
35
+ "placeholder": "local — your own company's invoicing. Leave empty unless Mode is \"live\"",
36
+ "optional": true
37
+ },
38
+ {
39
+ "key": "companyFile",
40
+ "label": "Company data file (optional)",
41
+ "type": "text",
42
+ "placeholder": "Path to your company file (name, address, UID, bank, VAT mode) — required when the live adapter is \"local\"",
43
+ "optional": true
44
+ },
45
+ {
46
+ "key": "invoiceTemplate",
47
+ "label": "Invoice template (optional)",
48
+ "type": "text",
49
+ "placeholder": "Path to an invoice template file — leave empty for the bundled German template",
50
+ "optional": true
30
51
  }
31
52
  ],
32
53
  "envMapping": {
33
54
  "DATABASE_URL": "databaseUrl",
34
- "ERP_MODE": "mode"
55
+ "ERP_MODE": "mode",
56
+ "ERP_LIVE_ADAPTER": "liveAdapter",
57
+ "ERP_LIVE_COMPANY_FILE": "companyFile",
58
+ "ERP_INVOICE_TEMPLATE": "invoiceTemplate"
35
59
  }
36
60
  },
37
61
  "simulation": {
@@ -40,6 +64,18 @@
40
64
  },
41
65
  "personalDefault": true,
42
66
  "oauth": null,
67
+ "documents": {
68
+ "invoice-pdf": {
69
+ "tool": "get_document",
70
+ "args": { "kind": "invoice-pdf", "id": "$id" },
71
+ "label": "issued invoice {id}"
72
+ },
73
+ "credit-note-pdf": {
74
+ "tool": "get_document",
75
+ "args": { "kind": "credit-note-pdf", "id": "$id" },
76
+ "label": "issued credit note {id}"
77
+ }
78
+ },
43
79
  "context": {
44
80
  "recordKeys": {
45
81
  "customer": {
@@ -200,6 +236,119 @@
200
236
  "fields": ["number", "revision", "status", "customer_id", "lines", "net_total", "discount_pct", "valid_until"]
201
237
  }
202
238
  },
239
+ "create_invoice": {
240
+ "profile": "invoicing",
241
+ "summary": "Invoice[ {number}] of {net_total|money} net to {customer_id}[ for order {order_id}]",
242
+ "executionMapping": {
243
+ "net_total": "net_total",
244
+ "currency": "currency"
245
+ },
246
+ "staticExecution": {
247
+ "action_type": "invoice"
248
+ },
249
+ "actionLabel": "Invoice issued",
250
+ "contextKeys": { "customer": "customer_id" },
251
+ "preview": [
252
+ { "tool": "get_customer", "args": { "id": "customer_id" }, "attach": "customer_id" },
253
+ {
254
+ "tool": "preview_invoice",
255
+ "args": {
256
+ "customer_id": "customer_id",
257
+ "number": "number",
258
+ "document_date": "document_date",
259
+ "service_period": "service_period",
260
+ "lines": "lines",
261
+ "net_total": "net_total",
262
+ "currency": "currency",
263
+ "payment_term_days": "payment_term_days",
264
+ "memo": "memo"
265
+ },
266
+ "kind": "document"
267
+ }
268
+ ],
269
+ "display": {
270
+ "order": ["customer_id", "order_id", "number", "document_date", "service_period", "lines", "net_total", "currency", "payment_term_days", "memo"],
271
+ "money": ["net_total", "customer_id.credit_limit", "customer_id.open_balance", "customer_id.available_credit"],
272
+ "currencyField": "currency",
273
+ "labels": {
274
+ "customer_id": "Customer",
275
+ "order_id": "Order",
276
+ "number": "Invoice number",
277
+ "document_date": "Invoice date",
278
+ "service_period": "Service period",
279
+ "net_total": "Total (net)",
280
+ "payment_term_days": "Payment terms (days)",
281
+ "memo": "Memo",
282
+ "customer_id.credit_limit": "Credit limit",
283
+ "customer_id.open_balance": "Open balance",
284
+ "customer_id.available_credit": "Available credit"
285
+ }
286
+ }
287
+ },
288
+ "create_credit_note": {
289
+ "profile": "invoicing",
290
+ "summary": "Credit note[ {number}] of {credit_total|money} net for invoice {invoice_id}: {reason|short}",
291
+ "executionMapping": {
292
+ "credit_total": "credit_total",
293
+ "currency": "currency"
294
+ },
295
+ "staticExecution": {
296
+ "action_type": "credit"
297
+ },
298
+ "actionLabel": "Credit note issued",
299
+ "preview": {
300
+ "tool": "get_invoice",
301
+ "args": { "id": "invoice_id" },
302
+ "fields": ["number", "customer_id", "net_total", "currency", "status"]
303
+ },
304
+ "display": {
305
+ "order": ["invoice_id", "number", "document_date", "credit_total", "currency", "reason", "service_period", "lines"],
306
+ "money": ["credit_total"],
307
+ "currencyField": "currency",
308
+ "labels": {
309
+ "invoice_id": "Invoice",
310
+ "number": "Credit note number",
311
+ "document_date": "Credit note date",
312
+ "credit_total": "Total (net)",
313
+ "reason": "Reason",
314
+ "service_period": "Service period"
315
+ }
316
+ }
317
+ },
318
+ "preview_invoice": {
319
+ "profile": "invoicing",
320
+ "category": "read",
321
+ "internal": true
322
+ },
323
+ "get_document": {
324
+ "profile": "invoicing",
325
+ "category": "read",
326
+ "internal": true
327
+ },
328
+ "list_invoices": {
329
+ "profile": "invoicing",
330
+ "category": "read",
331
+ "boundField": "read_access",
332
+ "requiredValue": "unlimited"
333
+ },
334
+ "get_invoice": {
335
+ "profile": "invoicing",
336
+ "category": "read",
337
+ "boundField": "read_access",
338
+ "requiredValue": "unlimited"
339
+ },
340
+ "list_credit_notes": {
341
+ "profile": "invoicing",
342
+ "category": "read",
343
+ "boundField": "read_access",
344
+ "requiredValue": "unlimited"
345
+ },
346
+ "get_credit_note": {
347
+ "profile": "invoicing",
348
+ "category": "read",
349
+ "boundField": "read_access",
350
+ "requiredValue": "unlimited"
351
+ },
203
352
  "load_simulation": {
204
353
  "executionMapping": {},
205
354
  "staticExecution": {
@@ -38,6 +38,10 @@
38
38
  "REFRESH_TOKEN": "refreshToken"
39
39
  }
40
40
  },
41
+ "attachments": {
42
+ "transport": "mime-raw",
43
+ "arg": "raw"
44
+ },
41
45
  "context": {
42
46
  "sources": {
43
47
  "message": {
@@ -106,7 +110,10 @@
106
110
  "argEncoding": {
107
111
  "subject": "rfc2047"
108
112
  },
109
- "actionLabel": "Email sent"
113
+ "actionLabel": "Email sent",
114
+ "attachmentsArg": "attachments",
115
+ "insertFields": ["body"],
116
+ "display": { "aiText": "body" }
110
117
  },
111
118
  "create_draft": {
112
119
  "summary": "Draft email to {to|list}[: {subject|short}]",
@@ -6,7 +6,7 @@
6
6
  "icon": "mail",
7
7
  "profile": "email",
8
8
  "npmPackage": "@humanagencyp/email-mcp",
9
- "npmVersion": "0.3.0",
9
+ "npmVersion": "0.4.0",
10
10
  "readPolicy": {
11
11
  "defaultAgeDays": 30
12
12
  },
@@ -42,6 +42,10 @@
42
42
  },
43
43
  "personalDefault": false,
44
44
  "oauth": null,
45
+ "attachments": {
46
+ "transport": "field",
47
+ "arg": "attachments"
48
+ },
45
49
  "context": {
46
50
  "sources": {
47
51
  "message": {
@@ -101,7 +105,10 @@
101
105
  },
102
106
  "actionLabel": "Email sent",
103
107
  "sourceFromArg": { "kind": "message", "arg": "in_reply_to" },
104
- "contextKeys": { "email": "to" }
108
+ "contextKeys": { "email": "to" },
109
+ "attachmentsArg": "attachments",
110
+ "insertFields": ["body"],
111
+ "display": { "aiText": "body" }
105
112
  },
106
113
  "load_simulation": {
107
114
  "executionMapping": {},