mcp-server-acube 0.1.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.
- package/LICENSE +21 -0
- package/README.md +422 -0
- package/dist/client.d.ts +101 -0
- package/dist/client.js +172 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +66 -0
- package/dist/index.js.map +1 -0
- package/dist/pick-fields.js.map +1 -0
- package/dist/response.d.ts +79 -0
- package/dist/response.js +137 -0
- package/dist/response.js.map +1 -0
- package/dist/tools/cassetto-fiscale.d.ts +22 -0
- package/dist/tools/cassetto-fiscale.js +109 -0
- package/dist/tools/cassetto-fiscale.js.map +1 -0
- package/dist/tools/configurations.d.ts +18 -0
- package/dist/tools/configurations.js +101 -0
- package/dist/tools/configurations.js.map +1 -0
- package/dist/tools/invoice-extract.d.ts +22 -0
- package/dist/tools/invoice-extract.js +49 -0
- package/dist/tools/invoice-extract.js.map +1 -0
- package/dist/tools/invoices.d.ts +22 -0
- package/dist/tools/invoices.js +223 -0
- package/dist/tools/invoices.js.map +1 -0
- package/dist/tools/notifications.d.ts +3 -0
- package/dist/tools/notifications.js +79 -0
- package/dist/tools/notifications.js.map +1 -0
- package/dist/tools/receipts.d.ts +19 -0
- package/dist/tools/receipts.js +56 -0
- package/dist/tools/receipts.js.map +1 -0
- package/dist/tools/verify.d.ts +3 -0
- package/dist/tools/verify.js +69 -0
- package/dist/tools/verify.js.map +1 -0
- package/dist/tools/webhooks.d.ts +22 -0
- package/dist/tools/webhooks.js +86 -0
- package/dist/tools/webhooks.js.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module tools/verify
|
|
3
|
+
*
|
|
4
|
+
* Italian company and fiscal ID verification tools.
|
|
5
|
+
*
|
|
6
|
+
* Provides 4 tools:
|
|
7
|
+
* - `verify_fiscal_id` -- Validate a codice fiscale or P.IVA against the
|
|
8
|
+
* Agenzia delle Entrate registry.
|
|
9
|
+
* - `verify_company` -- Full company lookup: denominazione, PEC, codice
|
|
10
|
+
* destinatario, address, ATECO, shareholders, and more.
|
|
11
|
+
* - `verify_simple_company` -- Lightweight company info (subset of `verify_company`).
|
|
12
|
+
* - `verify_split_payment` -- Check if a P.IVA is subject to split payment
|
|
13
|
+
* (scissione dei pagamenti) for public administration invoicing.
|
|
14
|
+
*
|
|
15
|
+
* @see https://docs.acubeapi.com/ -- A-Cube verification endpoints
|
|
16
|
+
*/
|
|
17
|
+
import { z } from "zod";
|
|
18
|
+
import { formatResponse, errorResponse } from "../response.js";
|
|
19
|
+
export function registerVerifyTools(server, client) {
|
|
20
|
+
// ---------- verify_fiscal_id ----------
|
|
21
|
+
server.tool("verify_fiscal_id", "Verify an Italian codice fiscale or P.IVA with Agenzia delle Entrate.", {
|
|
22
|
+
id: z.string().describe("Codice fiscale or P.IVA"),
|
|
23
|
+
}, async (params) => {
|
|
24
|
+
try {
|
|
25
|
+
const result = await client.get(`/verify/fiscal/${encodeURIComponent(params.id)}`);
|
|
26
|
+
return formatResponse(result.data);
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
return errorResponse(error);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
// ---------- verify_company ----------
|
|
33
|
+
server.tool("verify_company", "Full company data by P.IVA/CF: denominazione, PEC, codice destinatario, indirizzo, ATECO, soci.", {
|
|
34
|
+
id: z.string().describe("P.IVA or codice fiscale"),
|
|
35
|
+
}, async (params) => {
|
|
36
|
+
try {
|
|
37
|
+
const result = await client.get(`/verify/company/${encodeURIComponent(params.id)}`);
|
|
38
|
+
return formatResponse(result.data);
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
return errorResponse(error);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
// ---------- verify_simple_company ----------
|
|
45
|
+
server.tool("verify_simple_company", "Basic company info by P.IVA/CF (simplified view).", {
|
|
46
|
+
id: z.string().describe("P.IVA or codice fiscale"),
|
|
47
|
+
}, async (params) => {
|
|
48
|
+
try {
|
|
49
|
+
const result = await client.get(`/verify/simple-company/${encodeURIComponent(params.id)}`);
|
|
50
|
+
return formatResponse(result.data);
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
return errorResponse(error);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
// ---------- verify_split_payment ----------
|
|
57
|
+
server.tool("verify_split_payment", "Check split payment (scissione pagamenti) status for a P.IVA.", {
|
|
58
|
+
id: z.string().describe("P.IVA to check"),
|
|
59
|
+
}, async (params) => {
|
|
60
|
+
try {
|
|
61
|
+
const result = await client.get(`/verify/split-payment/${encodeURIComponent(params.id)}`);
|
|
62
|
+
return formatResponse(result.data);
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
return errorResponse(error);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=verify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../../src/tools/verify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,UAAU,mBAAmB,CACjC,MAAiB,EACjB,MAAmB;IAEnB,yCAAyC;IACzC,MAAM,CAAC,IAAI,CACT,kBAAkB,EAClB,uEAAuE,EACvE;QACE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;KACnD,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,kBAAkB,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;YAC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/D;QACE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;KAC1C,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACf,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,yBAAyB,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;YAC1F,OAAO,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACrC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module tools/webhooks
|
|
3
|
+
*
|
|
4
|
+
* Webhook configuration tools.
|
|
5
|
+
*
|
|
6
|
+
* Provides 5 tools:
|
|
7
|
+
* - `list_webhook_configs` -- List all webhook subscriptions.
|
|
8
|
+
* - `create_webhook_config` -- Subscribe to one of 13 event types.
|
|
9
|
+
* - `get_webhook_config` -- Get a subscription by ID.
|
|
10
|
+
* - `update_webhook_config` -- Update event type, URL, or authentication.
|
|
11
|
+
* - `delete_webhook_config` -- Remove a subscription.
|
|
12
|
+
*
|
|
13
|
+
* Supported event types: `supplier-invoice`, `customer-invoice`,
|
|
14
|
+
* `customer-notification`, `invoice-status-quarantena`, `invoice-status-invoice-error`,
|
|
15
|
+
* `legal-storage-missing-vat`, `legal-storage-receipt`, `receipt`, `receipt-retry`,
|
|
16
|
+
* `receipt-error`, `appointee`, `sistemats-receipt-ready`, `job`.
|
|
17
|
+
*
|
|
18
|
+
* @see https://docs.acubeapi.com/ -- A-Cube webhook endpoints
|
|
19
|
+
*/
|
|
20
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
21
|
+
import type { AcubeClient } from "../client.js";
|
|
22
|
+
export declare function registerWebhookTools(server: McpServer, client: AcubeClient): void;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { formatResponse, errorResponse } from "../response.js";
|
|
3
|
+
export function registerWebhookTools(server, client) {
|
|
4
|
+
// ── list_webhook_configs ────────────────────────────────────────────
|
|
5
|
+
server.tool("list_webhook_configs", "List all webhook configurations.", {}, async () => {
|
|
6
|
+
try {
|
|
7
|
+
const response = await client.get("/api-configurations");
|
|
8
|
+
return formatResponse(response.data);
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
return errorResponse(error);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
// ── create_webhook_config ───────────────────────────────────────────
|
|
15
|
+
server.tool("create_webhook_config", "Create a webhook for A-Cube events.", {
|
|
16
|
+
event: z
|
|
17
|
+
.enum([
|
|
18
|
+
"supplier-invoice", "customer-invoice", "customer-notification",
|
|
19
|
+
"invoice-status-quarantena", "invoice-status-invoice-error",
|
|
20
|
+
"legal-storage-missing-vat", "legal-storage-receipt",
|
|
21
|
+
"receipt", "receipt-retry", "receipt-error",
|
|
22
|
+
"appointee", "sistemats-receipt-ready", "job",
|
|
23
|
+
])
|
|
24
|
+
.describe("Event type"),
|
|
25
|
+
target_url: z.string().url().describe("Callback URL"),
|
|
26
|
+
authentication_type: z.enum(["header", "query"]).optional().describe("Auth method"),
|
|
27
|
+
authentication_key: z.string().optional().describe("Auth header/param name"),
|
|
28
|
+
authentication_token: z.string().optional().describe("Auth token"),
|
|
29
|
+
}, async (params) => {
|
|
30
|
+
try {
|
|
31
|
+
const body = {
|
|
32
|
+
event: params.event,
|
|
33
|
+
target_url: params.target_url,
|
|
34
|
+
};
|
|
35
|
+
if (params.authentication_type !== undefined)
|
|
36
|
+
body.authentication_type = params.authentication_type;
|
|
37
|
+
if (params.authentication_key !== undefined)
|
|
38
|
+
body.authentication_key = params.authentication_key;
|
|
39
|
+
if (params.authentication_token !== undefined)
|
|
40
|
+
body.authentication_token = params.authentication_token;
|
|
41
|
+
const response = await client.post("/api-configurations", body);
|
|
42
|
+
return formatResponse(response.data);
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
return errorResponse(error);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
// ── get_webhook_config ──────────────────────────────────────────────
|
|
49
|
+
server.tool("get_webhook_config", "Get a webhook configuration by ID.", {
|
|
50
|
+
id: z.string().describe("Webhook config ID"),
|
|
51
|
+
}, async (params) => {
|
|
52
|
+
try {
|
|
53
|
+
const response = await client.get(`/api-configurations/${encodeURIComponent(params.id)}`);
|
|
54
|
+
return formatResponse(response.data);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
return errorResponse(error);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
// ── update_webhook_config ───────────────────────────────────────────
|
|
61
|
+
server.tool("update_webhook_config", "Update a webhook configuration.", {
|
|
62
|
+
id: z.string().describe("Webhook config ID"),
|
|
63
|
+
config: z.record(z.unknown()).describe("Fields to update"),
|
|
64
|
+
}, async (params) => {
|
|
65
|
+
try {
|
|
66
|
+
const response = await client.put(`/api-configurations/${encodeURIComponent(params.id)}`, params.config);
|
|
67
|
+
return formatResponse(response.data);
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
return errorResponse(error);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
// ── delete_webhook_config ───────────────────────────────────────────
|
|
74
|
+
server.tool("delete_webhook_config", "Delete a webhook configuration.", {
|
|
75
|
+
id: z.string().describe("Webhook config ID to delete"),
|
|
76
|
+
}, async (params) => {
|
|
77
|
+
try {
|
|
78
|
+
const response = await client.delete(`/api-configurations/${encodeURIComponent(params.id)}`);
|
|
79
|
+
return formatResponse(response.data);
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
return errorResponse(error);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=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YACxB,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mcp-server-acube",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP server for A-Cube API - Italian electronic invoicing (SDI/FatturaPA), smart receipts, company verification, and more",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"mcp-server-acube": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc",
|
|
15
|
+
"dev": "tsx watch src/index.ts",
|
|
16
|
+
"start": "node dist/index.js",
|
|
17
|
+
"prepublishOnly": "npm run build",
|
|
18
|
+
"test": "vitest run",
|
|
19
|
+
"test:watch": "vitest"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"mcp",
|
|
23
|
+
"model-context-protocol",
|
|
24
|
+
"acube",
|
|
25
|
+
"fattura-elettronica",
|
|
26
|
+
"fatturapa",
|
|
27
|
+
"sdi",
|
|
28
|
+
"e-invoicing",
|
|
29
|
+
"italian-invoicing",
|
|
30
|
+
"agenzia-entrate",
|
|
31
|
+
"claude",
|
|
32
|
+
"ai"
|
|
33
|
+
],
|
|
34
|
+
"author": "Cipay Srl <dev@cipay.it> (https://www.cipay.it)",
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/nick-preda/mcp-server-acube.git"
|
|
39
|
+
},
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/nick-preda/mcp-server-acube/issues"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/nick-preda/mcp-server-acube#readme",
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18.0.0"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@modelcontextprotocol/sdk": "^1.7.0",
|
|
49
|
+
"zod": "^3.24.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^22.0.0",
|
|
53
|
+
"tsx": "^4.19.0",
|
|
54
|
+
"typescript": "^5.7.0",
|
|
55
|
+
"vitest": "^4.0.18"
|
|
56
|
+
}
|
|
57
|
+
}
|