storno-cli 1.0.9 → 1.0.11
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 +52 -4
- package/TOOLS.md +282 -15
- package/dist/http-server.d.ts.map +1 -1
- package/dist/http-server.js +26 -0
- package/dist/http-server.js.map +1 -1
- package/dist/landing.d.ts +8 -0
- package/dist/landing.d.ts.map +1 -0
- package/dist/landing.js +346 -0
- package/dist/landing.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +4 -0
- package/dist/server.js.map +1 -1
- package/dist/tools/declarations.d.ts +14 -0
- package/dist/tools/declarations.d.ts.map +1 -0
- package/dist/tools/declarations.js +360 -0
- package/dist/tools/declarations.js.map +1 -0
- package/dist/tools/delivery-notes.d.ts +93 -0
- package/dist/tools/delivery-notes.d.ts.map +1 -1
- package/dist/tools/delivery-notes.js +56 -0
- package/dist/tools/delivery-notes.js.map +1 -1
- package/dist/tools/document-series.d.ts +4 -4
- package/dist/tools/email-templates.d.ts +19 -2
- package/dist/tools/email-templates.d.ts.map +1 -1
- package/dist/tools/email-templates.js +18 -9
- package/dist/tools/email-templates.js.map +1 -1
- package/dist/tools/invoices.d.ts.map +1 -1
- package/dist/tools/invoices.js +83 -0
- package/dist/tools/invoices.js.map +1 -1
- package/dist/tools/products.d.ts.map +1 -1
- package/dist/tools/products.js +49 -0
- package/dist/tools/products.js.map +1 -1
- package/dist/tools/receipts.d.ts.map +1 -1
- package/dist/tools/receipts.js +3 -0
- package/dist/tools/receipts.js.map +1 -1
- package/dist/tools/recurring-invoices.d.ts +2 -2
- package/dist/tools/telemetry.d.ts +40 -0
- package/dist/tools/telemetry.d.ts.map +1 -0
- package/dist/tools/telemetry.js +86 -0
- package/dist/tools/telemetry.js.map +1 -0
- package/dist/tools/vat-rates.d.ts +2 -8
- package/dist/tools/vat-rates.d.ts.map +1 -1
- package/dist/tools/vat-rates.js +10 -1
- package/dist/tools/vat-rates.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,55 @@ A **Model Context Protocol (MCP) server** that exposes the entire [Storno.ro](ht
|
|
|
16
16
|
|
|
17
17
|
## Quick Start
|
|
18
18
|
|
|
19
|
-
###
|
|
19
|
+
### Hosted Server (recommended)
|
|
20
|
+
|
|
21
|
+
Storno hosts a public MCP server at **https://mcp.storno.ro/mcp** with OAuth authentication — no API keys or tokens to manage.
|
|
22
|
+
|
|
23
|
+
Visit **[mcp.storno.ro](https://mcp.storno.ro)** for setup instructions and a one-click "Add to Claude" button.
|
|
24
|
+
|
|
25
|
+
**Claude (claude.ai):**
|
|
26
|
+
|
|
27
|
+
1. Copy the URL: `https://mcp.storno.ro/mcp`
|
|
28
|
+
2. Go to [claude.ai/settings/connectors](https://claude.ai/settings/connectors)
|
|
29
|
+
3. Click "Add" and paste the URL
|
|
30
|
+
4. Authorize via OAuth
|
|
31
|
+
|
|
32
|
+
**Claude Code:**
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
claude mcp add storno --transport http https://mcp.storno.ro/mcp
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Cursor / Windsurf:**
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
{
|
|
42
|
+
"mcpServers": {
|
|
43
|
+
"storno": {
|
|
44
|
+
"url": "https://mcp.storno.ro/mcp"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Claude Desktop:**
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"mcpServers": {
|
|
55
|
+
"storno": {
|
|
56
|
+
"command": "npx",
|
|
57
|
+
"args": ["-y", "mcp-remote", "https://mcp.storno.ro/mcp"]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Self-hosted / Token-based Setup
|
|
64
|
+
|
|
65
|
+
If you prefer to use a JWT token directly (e.g. for self-hosted Storno instances):
|
|
66
|
+
|
|
67
|
+
#### 1. Install
|
|
20
68
|
|
|
21
69
|
```bash
|
|
22
70
|
npm install -g storno-cli
|
|
@@ -24,7 +72,7 @@ npm install -g storno-cli
|
|
|
24
72
|
|
|
25
73
|
Or use directly with `npx` — no install needed.
|
|
26
74
|
|
|
27
|
-
|
|
75
|
+
#### 2. Configure for Claude Code
|
|
28
76
|
|
|
29
77
|
Add to your project's `.claude/settings.json` or global `~/.claude/settings.json`:
|
|
30
78
|
|
|
@@ -43,7 +91,7 @@ Add to your project's `.claude/settings.json` or global `~/.claude/settings.json
|
|
|
43
91
|
}
|
|
44
92
|
```
|
|
45
93
|
|
|
46
|
-
|
|
94
|
+
#### 3. Configure for Cursor
|
|
47
95
|
|
|
48
96
|
Add to `.cursor/mcp.json`:
|
|
49
97
|
|
|
@@ -62,7 +110,7 @@ Add to `.cursor/mcp.json`:
|
|
|
62
110
|
}
|
|
63
111
|
```
|
|
64
112
|
|
|
65
|
-
|
|
113
|
+
#### 4. Configure for Claude Desktop
|
|
66
114
|
|
|
67
115
|
Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
68
116
|
|
package/TOOLS.md
CHANGED
|
@@ -48,8 +48,10 @@ Each tool can be called by any MCP-compatible AI assistant (Claude Code, Cursor,
|
|
|
48
48
|
- [Import](#import)
|
|
49
49
|
- [CPV Codes](#cpv-codes)
|
|
50
50
|
- [NC Codes](#nc-codes)
|
|
51
|
+
- [Telemetry](#telemetry)
|
|
52
|
+
- [Tax Declarations](#tax-declarations)
|
|
51
53
|
|
|
52
|
-
**Total tools:
|
|
54
|
+
**Total tools: 249**
|
|
53
55
|
|
|
54
56
|
---
|
|
55
57
|
|
|
@@ -279,7 +281,11 @@ Create a new draft invoice. Requires a clientId and at least one line item. The
|
|
|
279
281
|
| Name | Type | Required | Description |
|
|
280
282
|
|------|------|----------|-------------|
|
|
281
283
|
| `companyId` | string | No | Company UUID override (uses active company if not set) |
|
|
282
|
-
| `clientId` | string |
|
|
284
|
+
| `clientId` | string | No | Client UUID (from clients_list). Either `clientId` or `receiverName` should be provided |
|
|
285
|
+
| `receiverName` | string | No | Receiver name (when no client entity exists) |
|
|
286
|
+
| `receiverCif` | string | No | Receiver tax ID / CIF (used with `receiverName`) |
|
|
287
|
+
| `documentType` | string | No | Document type: `invoice` (default), `credit_note` |
|
|
288
|
+
| `parentDocumentId` | string | No | Parent document UUID (required for credit notes / refunds) |
|
|
283
289
|
| `issueDate` | string | Yes | Invoice issue date in ISO 8601 format (YYYY-MM-DD) |
|
|
284
290
|
| `dueDate` | string | No | Payment due date in ISO 8601 format (YYYY-MM-DD) |
|
|
285
291
|
| `seriesId` | string | No | Invoice series UUID (from document_series_list). Uses default if not provided. |
|
|
@@ -300,7 +306,12 @@ Create a new draft invoice. Requires a clientId and at least one line item. The
|
|
|
300
306
|
| `deputyName` | string | No | Deputy/representative name |
|
|
301
307
|
| `deputyIdentityCard` | string | No | Deputy ID card number |
|
|
302
308
|
| `deputyAuto` | string | No | Deputy vehicle registration number |
|
|
303
|
-
| `
|
|
309
|
+
| `tvaLaIncasare` | boolean | No | VAT on collection / TVA la încasare (default: false) |
|
|
310
|
+
| `platitorTva` | boolean | No | Whether sender is VAT payer (default: false) |
|
|
311
|
+
| `plataOnline` | boolean | No | Enable online payment via Stripe (default: from company settings) |
|
|
312
|
+
| `showClientBalance` | boolean | No | Show client balance on invoice (default: false) |
|
|
313
|
+
| `idempotencyKey` | string | No | Idempotency key to prevent duplicate creation |
|
|
314
|
+
| `collect` | boolean/object | No | Create an immediate payment. Pass `true` for full payment with defaults, or object with `value` (amount, defaults to total), `type` (payment method, defaults to `bank_transfer`), `issueDate` (YYYY-MM-DD), `documentNumber` (reference), `mentions` (notes) |
|
|
304
315
|
| `penaltyEnabled` | boolean | No | Enable late payment penalty (default: false) |
|
|
305
316
|
| `penaltyPercentPerDay` | number | No | Daily penalty percentage (e.g., 0.05 for 0.05% per day) |
|
|
306
317
|
| `penaltyGraceDays` | number | No | Grace period in days before penalty starts applying |
|
|
@@ -310,6 +321,20 @@ Create a new draft invoice. Requires a clientId and at least one line item. The
|
|
|
310
321
|
| `ublExtensions` | object | No | UBL extension fields for advanced e-Factura compliance. Supports: `invoicePeriod` (startDate, endDate, descriptionCode), `delivery` (actualDeliveryDate, deliveryAddress), `allowanceCharges` (array, max 20 — each with chargeIndicator, amount, taxCategoryCode, taxRate), `prepaidAmount`, `additionalDocumentReferences` (array, max 10 — each with id, documentTypeCode, documentDescription) |
|
|
311
322
|
| `lines` | array | Yes | Invoice line items (at least one required). Each line may include `ublExtensions` with: `invoicePeriod`, `allowanceCharges` (max 10), `additionalItemProperties` (max 20, name/value), `originCountry` |
|
|
312
323
|
|
|
324
|
+
**e-Factura BT fields (CIUS-RO schematron compliance):**
|
|
325
|
+
|
|
326
|
+
| Name | Type | Required | Description |
|
|
327
|
+
|------|------|----------|-------------|
|
|
328
|
+
| `taxPointDate` | string | No | Tax point date if different from issue date (YYYY-MM-DD) |
|
|
329
|
+
| `taxPointDateCode` | string | No | Tax point date code |
|
|
330
|
+
| `buyerReference` | string | No | Buyer reference identifier (BT-10) |
|
|
331
|
+
| `receivingAdviceReference` | string | No | Receiving advice reference |
|
|
332
|
+
| `despatchAdviceReference` | string | No | Despatch advice reference |
|
|
333
|
+
| `tenderOrLotReference` | string | No | Tender or lot reference |
|
|
334
|
+
| `invoicedObjectIdentifier` | string | No | Invoiced object identifier |
|
|
335
|
+
| `buyerAccountingReference` | string | No | Buyer accounting reference |
|
|
336
|
+
| `businessProcessType` | string | No | Business process type |
|
|
337
|
+
|
|
313
338
|
### `invoices_update`
|
|
314
339
|
|
|
315
340
|
Update an existing draft invoice. Only invoices with status "draft" can be updated. When updating the lines array, the entire array is replaced — include all lines you want to keep. Once issued, use invoices_cancel instead.
|
|
@@ -321,6 +346,10 @@ Update an existing draft invoice. Only invoices with status "draft" can be updat
|
|
|
321
346
|
| `uuid` | string | Yes | Invoice UUID to update |
|
|
322
347
|
| `companyId` | string | No | Company UUID override (uses active company if not set) |
|
|
323
348
|
| `clientId` | string | No | Client UUID |
|
|
349
|
+
| `receiverName` | string | No | Receiver name (when no client entity exists) |
|
|
350
|
+
| `receiverCif` | string | No | Receiver tax ID / CIF |
|
|
351
|
+
| `documentType` | string | No | Document type: `invoice`, `credit_note` |
|
|
352
|
+
| `parentDocumentId` | string | No | Parent document UUID (for credit notes) |
|
|
324
353
|
| `seriesId` | string | No | Invoice series UUID |
|
|
325
354
|
| `issueDate` | string | No | Invoice issue date (YYYY-MM-DD) |
|
|
326
355
|
| `dueDate` | string | No | Payment due date (YYYY-MM-DD) |
|
|
@@ -341,6 +370,10 @@ Update an existing draft invoice. Only invoices with status "draft" can be updat
|
|
|
341
370
|
| `deputyName` | string | No | Deputy/representative name |
|
|
342
371
|
| `deputyIdentityCard` | string | No | Deputy ID card number |
|
|
343
372
|
| `deputyAuto` | string | No | Deputy vehicle registration |
|
|
373
|
+
| `tvaLaIncasare` | boolean | No | VAT on collection / TVA la încasare |
|
|
374
|
+
| `platitorTva` | boolean | No | Whether sender is VAT payer |
|
|
375
|
+
| `plataOnline` | boolean | No | Enable online payment via Stripe |
|
|
376
|
+
| `showClientBalance` | boolean | No | Show client balance on invoice |
|
|
344
377
|
| `penaltyEnabled` | boolean | No | Enable late payment penalty |
|
|
345
378
|
| `penaltyPercentPerDay` | number | No | Daily penalty percentage |
|
|
346
379
|
| `penaltyGraceDays` | number | No | Grace period before penalty applies |
|
|
@@ -350,6 +383,8 @@ Update an existing draft invoice. Only invoices with status "draft" can be updat
|
|
|
350
383
|
| `ublExtensions` | object | No | UBL extension fields (same schema as invoices_create). Pass `null` to clear. |
|
|
351
384
|
| `lines` | array | No | Invoice line items. WARNING: replaces all existing lines — include every line you want to keep. Each line may include `ublExtensions`. |
|
|
352
385
|
|
|
386
|
+
**e-Factura BT fields:** Same as `invoices_create` (taxPointDate, taxPointDateCode, buyerReference, receivingAdviceReference, despatchAdviceReference, tenderOrLotReference, invoicedObjectIdentifier, buyerAccountingReference, businessProcessType).
|
|
387
|
+
|
|
353
388
|
### `invoices_delete`
|
|
354
389
|
|
|
355
390
|
Permanently delete a draft invoice. Only invoices with status "draft" can be deleted. This action is irreversible. For issued invoices, use invoices_cancel instead.
|
|
@@ -941,6 +976,12 @@ Get all default values and dropdown options needed for invoice creation. Returns
|
|
|
941
976
|
|
|
942
977
|
## VAT Rates
|
|
943
978
|
|
|
979
|
+
### `vat_category_codes_list`
|
|
980
|
+
|
|
981
|
+
List all available VAT category codes with their i18n message keys. Codes: S (standard rate), Z (zero-rated), E (exempt from tax), AE (reverse charge), K (exempt for export), L (intra-community supply), O (outside scope), M (margin scheme). Does not require authentication.
|
|
982
|
+
|
|
983
|
+
**Parameters:** None
|
|
984
|
+
|
|
944
985
|
### `vat_rates_list`
|
|
945
986
|
|
|
946
987
|
List all VAT rates configured for the active company, sorted by display position. Returns rate percentage, display label, e-Factura category code, and which rate is the default. Common Romanian rates: 19% (standard), 9% (reduced), 5% (super-reduced), 0% (exempt).
|
|
@@ -953,7 +994,7 @@ List all VAT rates configured for the active company, sorted by display position
|
|
|
953
994
|
|
|
954
995
|
### `vat_rates_create`
|
|
955
996
|
|
|
956
|
-
Create a new VAT rate for the active company. If isDefault is true, any existing default rate is demoted. If this is the first VAT rate, it automatically becomes the default.
|
|
997
|
+
Create a new VAT rate for the active company. If isDefault is true, any existing default rate is demoted. If this is the first VAT rate, it automatically becomes the default. Category codes: S=standard, Z=zero-rated, E=exempt, AE=reverse charge, K=export, L=intra-community, O=outside scope, M=margin scheme.
|
|
957
998
|
|
|
958
999
|
**Parameters:**
|
|
959
1000
|
|
|
@@ -962,7 +1003,7 @@ Create a new VAT rate for the active company. If isDefault is true, any existing
|
|
|
962
1003
|
| `companyId` | string | No | Company UUID override (uses active company if not set) |
|
|
963
1004
|
| `rate` | number | Yes | VAT percentage (e.g., 19 for 19%, 0 for exempt) |
|
|
964
1005
|
| `label` | string | Yes | Display label shown in dropdowns (e.g., "TVA 19%", "Scutit") |
|
|
965
|
-
| `categoryCode` | string | No | e-Factura category code (default: "S"). Options: S,
|
|
1006
|
+
| `categoryCode` | string | No | e-Factura category code (default: "S"). Options: S, Z, E, AE, K, L, O, M |
|
|
966
1007
|
| `isDefault` | boolean | No | Set this as the default VAT rate for new invoice lines (default: false) |
|
|
967
1008
|
| `position` | number | No | Display order position in dropdowns (lower = first). Auto-assigned if not provided. |
|
|
968
1009
|
|
|
@@ -1524,8 +1565,40 @@ Create a new delivery note in draft status. Delivery notes document physical del
|
|
|
1524
1565
|
| `notes` | string | No | Public notes about the delivery |
|
|
1525
1566
|
| `mentions` | string | No | Additional mentions or instructions |
|
|
1526
1567
|
| `internalNote` | string | No | Internal note (not visible to client) |
|
|
1568
|
+
| `etransportOperationType` | number | No | Operation type: 10 (intra-EU acquisition), 12 (intra-EU delivery), 20 (domestic transaction), 30 (TTN), 40 (import), 50 (export), 60 (not released) |
|
|
1569
|
+
| `etransportPostIncident` | boolean | No | Post-incident declaration |
|
|
1570
|
+
| `etransportVehicleNumber` | string | No | Vehicle registration (3-20 uppercase alphanumeric, BR-031) |
|
|
1571
|
+
| `etransportTrailer1` | string | No | First trailer registration number |
|
|
1572
|
+
| `etransportTrailer2` | string | No | Second trailer registration number |
|
|
1573
|
+
| `etransportTransporterCountry` | string | No | Transporter country (ISO 3166-1 alpha-2). Must be "RO" for TTN (BR-005) |
|
|
1574
|
+
| `etransportTransporterCode` | string | No | Transporter CUI/CIF (numeric only, BR-002) |
|
|
1575
|
+
| `etransportTransporterName` | string | No | Transporter legal name |
|
|
1576
|
+
| `etransportTransportDate` | string | No | Transport start date (YYYY-MM-DD) |
|
|
1577
|
+
| `etransportStartCounty` | number | No | Start county code (1-52 per ANAF nomenclature, BR-210) |
|
|
1578
|
+
| `etransportStartLocality` | string | No | Start locality (2-100 chars, BR-214) |
|
|
1579
|
+
| `etransportStartStreet` | string | No | Start street (2-100 chars, BR-215) |
|
|
1580
|
+
| `etransportStartNumber` | string | No | Start street number |
|
|
1581
|
+
| `etransportStartOtherInfo` | string | No | Start additional address info |
|
|
1582
|
+
| `etransportStartPostalCode` | string | No | Start postal code |
|
|
1583
|
+
| `etransportEndCounty` | number | No | End county code (1-52, BR-211) |
|
|
1584
|
+
| `etransportEndLocality` | string | No | End locality (2-100 chars) |
|
|
1585
|
+
| `etransportEndStreet` | string | No | End street (2-100 chars) |
|
|
1586
|
+
| `etransportEndNumber` | string | No | End street number |
|
|
1587
|
+
| `etransportEndOtherInfo` | string | No | End additional address info |
|
|
1588
|
+
| `etransportEndPostalCode` | string | No | End postal code |
|
|
1527
1589
|
| `lines` | array | Yes | Array of line items (minimum 1 required) |
|
|
1528
1590
|
|
|
1591
|
+
**Line item e-Transport fields:**
|
|
1592
|
+
|
|
1593
|
+
| Name | Type | Required | Description |
|
|
1594
|
+
|------|------|----------|-------------|
|
|
1595
|
+
| `tariffCode` | string | No | 8-digit HS/CN tariff code (e.g., "84131100"). Required for e-Transport (BR-206) |
|
|
1596
|
+
| `purposeCode` | number | No | Purpose code. For TTN: 101 (commercial), 704, 705, 9901 (other) per BR-070 |
|
|
1597
|
+
| `unitOfMeasureCode` | string | No | UN/ECE Rec 20 code (e.g., "H87"=piece, "KGM"=kg, "SET"=set) |
|
|
1598
|
+
| `netWeight` | string | No | Net weight in kg (e.g., "120.00"). Required for e-Transport (BR-207) |
|
|
1599
|
+
| `grossWeight` | string | No | Gross weight in kg (e.g., "140.00") |
|
|
1600
|
+
| `valueWithoutVat` | string | No | Line value without VAT (e.g., "15000.00"). Required for e-Transport (BR-208) |
|
|
1601
|
+
|
|
1529
1602
|
### `delivery_notes_update`
|
|
1530
1603
|
|
|
1531
1604
|
Update an existing delivery note. Delivery notes in draft or issued status can be updated. Replaces all line items with the provided array.
|
|
@@ -1554,8 +1627,31 @@ Update an existing delivery note. Delivery notes in draft or issued status can b
|
|
|
1554
1627
|
| `notes` | string | No | Public notes about the delivery |
|
|
1555
1628
|
| `mentions` | string | No | Additional mentions or instructions |
|
|
1556
1629
|
| `internalNote` | string | No | Internal note (not visible to client) |
|
|
1630
|
+
| `etransportOperationType` | number | No | Operation type code (10, 12, 20, 30, 40, 50, 60) |
|
|
1631
|
+
| `etransportPostIncident` | boolean | No | Post-incident declaration |
|
|
1632
|
+
| `etransportVehicleNumber` | string | No | Vehicle registration (3-20 uppercase alphanumeric) |
|
|
1633
|
+
| `etransportTrailer1` | string | No | First trailer registration |
|
|
1634
|
+
| `etransportTrailer2` | string | No | Second trailer registration |
|
|
1635
|
+
| `etransportTransporterCountry` | string | No | Transporter country (e.g., "RO") |
|
|
1636
|
+
| `etransportTransporterCode` | string | No | Transporter CUI/CIF (numeric) |
|
|
1637
|
+
| `etransportTransporterName` | string | No | Transporter legal name |
|
|
1638
|
+
| `etransportTransportDate` | string | No | Transport date (YYYY-MM-DD) |
|
|
1639
|
+
| `etransportStartCounty` | number | No | Start county code (1-52) |
|
|
1640
|
+
| `etransportStartLocality` | string | No | Start locality |
|
|
1641
|
+
| `etransportStartStreet` | string | No | Start street |
|
|
1642
|
+
| `etransportStartNumber` | string | No | Start street number |
|
|
1643
|
+
| `etransportStartOtherInfo` | string | No | Start additional info |
|
|
1644
|
+
| `etransportStartPostalCode` | string | No | Start postal code |
|
|
1645
|
+
| `etransportEndCounty` | number | No | End county code (1-52) |
|
|
1646
|
+
| `etransportEndLocality` | string | No | End locality |
|
|
1647
|
+
| `etransportEndStreet` | string | No | End street |
|
|
1648
|
+
| `etransportEndNumber` | string | No | End street number |
|
|
1649
|
+
| `etransportEndOtherInfo` | string | No | End additional info |
|
|
1650
|
+
| `etransportEndPostalCode` | string | No | End postal code |
|
|
1557
1651
|
| `lines` | array | Yes | Array of line items (replaces all existing lines) |
|
|
1558
1652
|
|
|
1653
|
+
**Line item e-Transport fields:** Same as `delivery_notes_create` (tariffCode, purposeCode, unitOfMeasureCode, netWeight, grossWeight, valueWithoutVat).
|
|
1654
|
+
|
|
1559
1655
|
### `delivery_notes_delete`
|
|
1560
1656
|
|
|
1561
1657
|
Permanently delete a delivery note. Only draft delivery notes can be deleted. Use cancel for issued delivery notes to preserve audit trail.
|
|
@@ -2077,17 +2173,18 @@ Convert an amount between two currencies using current BNR exchange rates. For n
|
|
|
2077
2173
|
|
|
2078
2174
|
### `email_templates_list`
|
|
2079
2175
|
|
|
2080
|
-
List all email templates configured for the selected company.
|
|
2176
|
+
List all email templates configured for the selected company. Use the category parameter to filter by document type. If no templates exist for a category, a default template is automatically created.
|
|
2081
2177
|
|
|
2082
2178
|
**Parameters:**
|
|
2083
2179
|
|
|
2084
2180
|
| Name | Type | Required | Description |
|
|
2085
2181
|
|------|------|----------|-------------|
|
|
2086
2182
|
| `companyId` | string | No | Company UUID (overrides configured default) |
|
|
2183
|
+
| `category` | string | No | Template category: "invoice" (default), "delivery_note", or "receipt" |
|
|
2087
2184
|
|
|
2088
2185
|
### `email_templates_create`
|
|
2089
2186
|
|
|
2090
|
-
Create a new email template
|
|
2187
|
+
Create a new email template. Templates support dynamic variables that are replaced with actual data when emails are sent. Available variables depend on the category.
|
|
2091
2188
|
|
|
2092
2189
|
**Parameters:**
|
|
2093
2190
|
|
|
@@ -2095,13 +2192,14 @@ Create a new email template for invoice communications. Templates support dynami
|
|
|
2095
2192
|
|------|------|----------|-------------|
|
|
2096
2193
|
| `companyId` | string | No | Company UUID (overrides configured default) |
|
|
2097
2194
|
| `name` | string | Yes | Template name for internal reference |
|
|
2098
|
-
| `subject` | string | Yes | Email subject line (supports variables like
|
|
2099
|
-
| `body` | string | Yes | Email body content (supports variables and
|
|
2100
|
-
| `isDefault` | boolean | No | Set as default template (default: false). Only one template can be default |
|
|
2195
|
+
| `subject` | string | Yes | Email subject line (supports variables like [[invoice_number]]) |
|
|
2196
|
+
| `body` | string | Yes | Email body content (supports variables and Markdown formatting) |
|
|
2197
|
+
| `isDefault` | boolean | No | Set as default template (default: false). Only one template can be default per category |
|
|
2198
|
+
| `category` | string | No | Template category: "invoice" (default), "delivery_note", or "receipt" |
|
|
2101
2199
|
|
|
2102
2200
|
### `email_templates_update`
|
|
2103
2201
|
|
|
2104
|
-
Update an existing email template. All fields are optional but at least one must be provided. Setting isDefault to true will unset the current default template.
|
|
2202
|
+
Update an existing email template. All fields are optional but at least one must be provided. Setting isDefault to true will unset the current default template in the same category.
|
|
2105
2203
|
|
|
2106
2204
|
**Parameters:**
|
|
2107
2205
|
|
|
@@ -2111,8 +2209,8 @@ Update an existing email template. All fields are optional but at least one must
|
|
|
2111
2209
|
| `companyId` | string | No | Company UUID (overrides configured default) |
|
|
2112
2210
|
| `name` | string | No | Template name for internal reference |
|
|
2113
2211
|
| `subject` | string | No | Email subject line (supports variables) |
|
|
2114
|
-
| `body` | string | No | Email body content (supports variables and
|
|
2115
|
-
| `isDefault` | boolean | No | Set as default template. Only one template can be default
|
|
2212
|
+
| `body` | string | No | Email body content (supports variables and Markdown formatting) |
|
|
2213
|
+
| `isDefault` | boolean | No | Set as default template. Only one template can be default per category |
|
|
2116
2214
|
|
|
2117
2215
|
### `email_templates_delete`
|
|
2118
2216
|
|
|
@@ -3312,6 +3410,175 @@ Search NC (Combined Nomenclature / NACE) classification codes. Used in e-Transpo
|
|
|
3312
3410
|
|
|
3313
3411
|
---
|
|
3314
3412
|
|
|
3315
|
-
|
|
3413
|
+
---
|
|
3414
|
+
|
|
3415
|
+
## Telemetry
|
|
3416
|
+
|
|
3417
|
+
### `telemetry_send`
|
|
3418
|
+
|
|
3419
|
+
Send a batch of telemetry events for the current user and company. Events are processed asynchronously. Maximum 100 events per batch.
|
|
3420
|
+
|
|
3421
|
+
**Parameters:**
|
|
3422
|
+
|
|
3423
|
+
| Name | Type | Required | Description |
|
|
3424
|
+
|------|------|----------|-------------|
|
|
3425
|
+
| `events` | array | Yes | Array of telemetry events to send |
|
|
3426
|
+
| `events[].event` | string | Yes | Event name (e.g. "invoice.created", "client.deleted") |
|
|
3427
|
+
| `events[].properties` | object | No | Optional event properties |
|
|
3428
|
+
| `events[].timestamp` | string | No | ISO 8601 timestamp (defaults to now) |
|
|
3429
|
+
| `platform` | string | No | Platform identifier (default: "cli") |
|
|
3430
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3431
|
+
|
|
3432
|
+
---
|
|
3433
|
+
|
|
3434
|
+
## Tax Declarations
|
|
3435
|
+
|
|
3436
|
+
### `declarations_list`
|
|
3437
|
+
|
|
3438
|
+
List tax declarations for the active company. Supports filtering by type, status, year, and month.
|
|
3439
|
+
|
|
3440
|
+
**Parameters:**
|
|
3441
|
+
|
|
3442
|
+
| Name | Type | Required | Description |
|
|
3443
|
+
|------|------|----------|-------------|
|
|
3444
|
+
| `type` | string | No | Declaration type filter (d394, d300, d390, d100, d112) |
|
|
3445
|
+
| `status` | string | No | Status filter (draft, validated, submitted, processing, accepted, rejected, error) |
|
|
3446
|
+
| `year` | number | No | Year filter (e.g. 2026) |
|
|
3447
|
+
| `month` | number | No | Month filter (1–12) |
|
|
3448
|
+
| `page` | number | No | Page number (default: 1) |
|
|
3449
|
+
| `limit` | number | No | Items per page (default: 10, max: 20) |
|
|
3450
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3451
|
+
|
|
3452
|
+
### `declarations_get`
|
|
3453
|
+
|
|
3454
|
+
Get a single tax declaration by UUID. Returns full details including populated data and metadata.
|
|
3455
|
+
|
|
3456
|
+
**Parameters:**
|
|
3457
|
+
|
|
3458
|
+
| Name | Type | Required | Description |
|
|
3459
|
+
|------|------|----------|-------------|
|
|
3460
|
+
| `id` | string | Yes | Declaration UUID |
|
|
3461
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3462
|
+
|
|
3463
|
+
### `declarations_create`
|
|
3464
|
+
|
|
3465
|
+
Create a new tax declaration and auto-populate from existing invoice data. Aggregates invoices by partner CIF and VAT rate.
|
|
3466
|
+
|
|
3467
|
+
**Parameters:**
|
|
3468
|
+
|
|
3469
|
+
| Name | Type | Required | Description |
|
|
3470
|
+
|------|------|----------|-------------|
|
|
3471
|
+
| `type` | string | Yes | Declaration type (d394, d300, d390, d100, d112) |
|
|
3472
|
+
| `year` | number | Yes | Declaration year (e.g. 2026) |
|
|
3473
|
+
| `month` | number | Yes | Declaration month (1–12) |
|
|
3474
|
+
| `periodType` | string | No | Period type (default: "monthly") |
|
|
3475
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3476
|
+
|
|
3477
|
+
### `declarations_recalculate`
|
|
3478
|
+
|
|
3479
|
+
Recalculate a draft declaration by re-populating from current invoices.
|
|
3480
|
+
|
|
3481
|
+
**Parameters:**
|
|
3482
|
+
|
|
3483
|
+
| Name | Type | Required | Description |
|
|
3484
|
+
|------|------|----------|-------------|
|
|
3485
|
+
| `id` | string | Yes | Declaration UUID to recalculate |
|
|
3486
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3487
|
+
|
|
3488
|
+
### `declarations_validate`
|
|
3489
|
+
|
|
3490
|
+
Validate a declaration by generating and checking the XML output.
|
|
3491
|
+
|
|
3492
|
+
**Parameters:**
|
|
3493
|
+
|
|
3494
|
+
| Name | Type | Required | Description |
|
|
3495
|
+
|------|------|----------|-------------|
|
|
3496
|
+
| `id` | string | Yes | Declaration UUID to validate |
|
|
3497
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3498
|
+
|
|
3499
|
+
### `declarations_submit`
|
|
3500
|
+
|
|
3501
|
+
Submit a declaration to ANAF. Generates XML, uploads, and begins async status polling.
|
|
3502
|
+
|
|
3503
|
+
**Parameters:**
|
|
3504
|
+
|
|
3505
|
+
| Name | Type | Required | Description |
|
|
3506
|
+
|------|------|----------|-------------|
|
|
3507
|
+
| `id` | string | Yes | Declaration UUID to submit |
|
|
3508
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3509
|
+
|
|
3510
|
+
### `declarations_delete`
|
|
3511
|
+
|
|
3512
|
+
Soft-delete a tax declaration. Cannot delete accepted declarations.
|
|
3513
|
+
|
|
3514
|
+
**Parameters:**
|
|
3515
|
+
|
|
3516
|
+
| Name | Type | Required | Description |
|
|
3517
|
+
|------|------|----------|-------------|
|
|
3518
|
+
| `id` | string | Yes | Declaration UUID to delete |
|
|
3519
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3520
|
+
|
|
3521
|
+
### `declarations_sync`
|
|
3522
|
+
|
|
3523
|
+
Sync declarations from ANAF for a given year. Discovers filed declarations via SPV messages, creates missing local records, downloads recipise, and updates in-flight statuses. Returns 202 (async processing).
|
|
3524
|
+
|
|
3525
|
+
**Parameters:**
|
|
3526
|
+
|
|
3527
|
+
| Name | Type | Required | Description |
|
|
3528
|
+
|------|------|----------|-------------|
|
|
3529
|
+
| `year` | number | Yes | Year to sync declarations for (e.g. 2026) |
|
|
3530
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3531
|
+
|
|
3532
|
+
### `declarations_refresh_statuses`
|
|
3533
|
+
|
|
3534
|
+
Refresh statuses for all in-flight (submitted/processing) declarations from ANAF. Checks SPV messages for status updates and downloads recipise. Returns 202 (async processing).
|
|
3535
|
+
|
|
3536
|
+
**Parameters:**
|
|
3537
|
+
|
|
3538
|
+
| Name | Type | Required | Description |
|
|
3539
|
+
|------|------|----------|-------------|
|
|
3540
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3541
|
+
|
|
3542
|
+
### `declarations_download_xml`
|
|
3543
|
+
|
|
3544
|
+
Download the generated XML for a tax declaration.
|
|
3545
|
+
|
|
3546
|
+
**Parameters:**
|
|
3547
|
+
|
|
3548
|
+
| Name | Type | Required | Description |
|
|
3549
|
+
|------|------|----------|-------------|
|
|
3550
|
+
| `id` | string | Yes | Declaration UUID |
|
|
3551
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3552
|
+
|
|
3553
|
+
### `declarations_prepare`
|
|
3554
|
+
|
|
3555
|
+
Prepare a declaration for agent-based submission. Returns XML content, ANAF URL, Bearer token, and CIF needed by the local agent to proxy the mTLS request.
|
|
3556
|
+
|
|
3557
|
+
**Parameters:**
|
|
3558
|
+
|
|
3559
|
+
| Name | Type | Required | Description |
|
|
3560
|
+
|------|------|----------|-------------|
|
|
3561
|
+
| `id` | string | Yes | Declaration UUID |
|
|
3562
|
+
| `operation` | string | No | Operation type: submit (default), listMessages, download |
|
|
3563
|
+
| `downloadId` | string | No | ANAF download ID (required for operation=download) |
|
|
3564
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3565
|
+
|
|
3566
|
+
### `declarations_agent_result`
|
|
3567
|
+
|
|
3568
|
+
Submit the ANAF response received via the local agent back to the server. The server parses the response, extracts the upload ID, and dispatches status checking.
|
|
3569
|
+
|
|
3570
|
+
**Parameters:**
|
|
3571
|
+
|
|
3572
|
+
| Name | Type | Required | Description |
|
|
3573
|
+
|------|------|----------|-------------|
|
|
3574
|
+
| `id` | string | Yes | Declaration UUID |
|
|
3575
|
+
| `statusCode` | number | Yes | HTTP status code from ANAF response |
|
|
3576
|
+
| `headers` | object | No | Response headers from ANAF |
|
|
3577
|
+
| `body` | string | Yes | Response body from ANAF |
|
|
3578
|
+
| `companyId` | string | No | Company UUID (overrides STORNO_COMPANY_ID env var) |
|
|
3579
|
+
|
|
3580
|
+
---
|
|
3581
|
+
|
|
3582
|
+
**Total tools: 249**
|
|
3316
3583
|
|
|
3317
|
-
Generated from storno-cli source on 2026-
|
|
3584
|
+
Generated from storno-cli source on 2026-03-05
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-server.d.ts","sourceRoot":"","sources":["../src/http-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"http-server.d.ts","sourceRoot":"","sources":["../src/http-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAuPH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CA4HhE"}
|
package/dist/http-server.js
CHANGED
|
@@ -14,6 +14,7 @@ import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/
|
|
|
14
14
|
import { isInitializeRequest } from '@modelcontextprotocol/sdk/types.js';
|
|
15
15
|
import { createMcpServer } from './server.js';
|
|
16
16
|
import { getConfig } from './config.js';
|
|
17
|
+
import { getLandingHtml } from './landing.js';
|
|
17
18
|
const sessions = new Map();
|
|
18
19
|
function setCorsHeaders(res) {
|
|
19
20
|
res.setHeader('Access-Control-Allow-Origin', '*');
|
|
@@ -260,6 +261,31 @@ export function startHttpServer(port, host) {
|
|
|
260
261
|
res.end('Method Not Allowed');
|
|
261
262
|
return;
|
|
262
263
|
}
|
|
264
|
+
// Landing page
|
|
265
|
+
if (url.pathname === '/' && req.method === 'GET') {
|
|
266
|
+
const baseUrl = getPublicBaseUrl(req);
|
|
267
|
+
res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
|
|
268
|
+
res.end(getLandingHtml(baseUrl));
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
// Status API
|
|
272
|
+
if (url.pathname === '/api/status' && req.method === 'GET') {
|
|
273
|
+
const status = {
|
|
274
|
+
server: 'storno-mcp',
|
|
275
|
+
version: '1.0.9',
|
|
276
|
+
activeSessions: sessions.size,
|
|
277
|
+
uptime: process.uptime(),
|
|
278
|
+
};
|
|
279
|
+
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
280
|
+
res.end(JSON.stringify(status));
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
// Favicon (avoid 404 noise)
|
|
284
|
+
if (url.pathname === '/favicon.ico') {
|
|
285
|
+
res.writeHead(204);
|
|
286
|
+
res.end();
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
263
289
|
// Only handle /mcp for MCP protocol
|
|
264
290
|
if (url.pathname !== '/mcp') {
|
|
265
291
|
res.writeHead(404);
|
package/dist/http-server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-server.js","sourceRoot":"","sources":["../src/http-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,YAAY,EAAmC,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAOxC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAmB,CAAC;AAE5C,SAAS,cAAc,CAAC,GAAmB;IACzC,GAAG,CAAC,SAAS,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC;IAClD,GAAG,CAAC,SAAS,CAAC,8BAA8B,EAAE,4BAA4B,CAAC,CAAC;IAC5E,GAAG,CAAC,SAAS,CAAC,8BAA8B,EAAE,6CAA6C,CAAC,CAAC;IAC7F,GAAG,CAAC,SAAS,CAAC,+BAA+B,EAAE,gBAAgB,CAAC,CAAC;AACnE,CAAC;AAED,SAAS,SAAS,CAAC,GAAmB,EAAE,MAAc,EAAE,IAAY,EAAE,OAAe,EAAE,OAAgC;IACrH,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,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b,OAAO,CAAC,KAAK,CAAC,yBAAyB,SAAS,GAAG,EAAE,GAAG,CAAC,CAAC;YAC5D,CAAC;QACH,CAAC;QACD,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,CAAC,CAAC;IAEF,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Landing page for the Storno MCP server.
|
|
3
|
+
* Returns a self-contained HTML page with embedded Tailwind CSS and inline JS.
|
|
4
|
+
* Design matches storno.ro frontend: Public Sans font, blue primary, zinc neutral,
|
|
5
|
+
* rounded-lg cards with border, bg-primary/10 icon rings, decorative circles.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getLandingHtml(baseUrl: string): string;
|
|
8
|
+
//# sourceMappingURL=landing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"landing.d.ts","sourceRoot":"","sources":["../src/landing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAmVtD"}
|