@codespar/mcp-colppy 0.2.0-alpha.1 → 0.2.0-alpha.3
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 +37 -5
- package/dist/index.js +5 -2
- package/package.json +12 -3
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# MCP Colppy
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
> **Alpha release** — published under the `alpha` npm dist-tag. Endpoint paths follow public docs and BACEN/provider conventions but have not been fully live-validated. Pin exact versions during `0.x.x-alpha`. Install with `npm install <pkg>@alpha`.
|
|
5
|
+
|
|
3
6
|
MCP server for **Colppy** — Argentine cloud accounting platform with integrated AFIP electronic invoicing.
|
|
4
7
|
|
|
5
8
|
## Quick Start
|
|
@@ -25,18 +28,32 @@ npx tsx packages/argentina/colppy/src/index.ts --http
|
|
|
25
28
|
| `MCP_HTTP` | No | Set to `"true"` to enable HTTP transport |
|
|
26
29
|
| `MCP_PORT` | No | HTTP port (default: 3000) |
|
|
27
30
|
|
|
28
|
-
## Tools
|
|
31
|
+
## Tools (22)
|
|
29
32
|
|
|
30
|
-
| Tool |
|
|
31
|
-
|
|
33
|
+
| Tool | Purpose |
|
|
34
|
+
|---|---|
|
|
32
35
|
| `list_customers` | List customers |
|
|
33
36
|
| `create_customer` | Create a customer |
|
|
34
37
|
| `list_products` | List products and services |
|
|
35
|
-
| `create_invoice` | Create an invoice (integrates with AFIP) |
|
|
38
|
+
| `create_invoice` | Create an invoice (integrates with AFIP for electronic invoicing) |
|
|
36
39
|
| `list_invoices` | List invoices |
|
|
37
40
|
| `get_balance` | Get account balance summary |
|
|
38
41
|
| `list_accounts` | List chart of accounts (plan de cuentas) |
|
|
39
42
|
| `create_payment` | Record a payment against an invoice |
|
|
43
|
+
| `update_customer` | Update an existing customer's data |
|
|
44
|
+
| `delete_customer` | Delete a customer |
|
|
45
|
+
| `get_customer_balance` | Get the current account balance (cuenta corriente) for a customer |
|
|
46
|
+
| `list_suppliers` | List suppliers (proveedores) |
|
|
47
|
+
| `create_supplier` | Create a supplier (proveedor) |
|
|
48
|
+
| `cancel_invoice` | Cancel/void an invoice (anular comprobante) |
|
|
49
|
+
| `get_invoice_pdf` | Get the PDF representation of an invoice (returns URL or base64) |
|
|
50
|
+
| `create_receipt` | Create a receipt (recibo) — record cash/transfer received against one or more invoices |
|
|
51
|
+
| `list_receipts` | List receipts (recibos) |
|
|
52
|
+
| `get_stock` | Get current stock for a product across warehouses |
|
|
53
|
+
| `list_warehouses` | List warehouses (depósitos) |
|
|
54
|
+
| `list_companies` | List companies (empresas) accessible to the current API user |
|
|
55
|
+
| `sales_report` | Sales report by date range |
|
|
56
|
+
| `expenses_report` | Expenses/purchases report by date range |
|
|
40
57
|
|
|
41
58
|
## Auth
|
|
42
59
|
|
|
@@ -48,4 +65,19 @@ Uses **API key + session** authentication. The API key is sent with each request
|
|
|
48
65
|
|
|
49
66
|
---
|
|
50
67
|
|
|
51
|
-
|
|
68
|
+
## Enterprise
|
|
69
|
+
|
|
70
|
+
Need governance, budget limits, and audit trails for agent payments? [CodeSpar Enterprise](https://codespar.dev/enterprise) adds policy engine, payment routing, and compliance templates on top of these MCP servers.
|
|
71
|
+
|
|
72
|
+
## Authentication
|
|
73
|
+
|
|
74
|
+
Set these environment variables before launching the server:
|
|
75
|
+
|
|
76
|
+
- `COLPPY_API_KEY` *(required, secret)* — API key for Colppy
|
|
77
|
+
- `COLPPY_COMPANY_ID` *(required)* — Company identifier
|
|
78
|
+
|
|
79
|
+
Issue credentials at the provider's developer portal: <https://api.colppy.com/>.
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
MIT
|
package/dist/index.js
CHANGED
|
@@ -47,7 +47,10 @@ async function colppyRequest(service, operation, params) {
|
|
|
47
47
|
}
|
|
48
48
|
return res.json();
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
51
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
52
|
+
const MANAGED_TIER_HINT = "This open-source CodeSpar server calls the provider's API directly. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, plus governance, CFO-grade audit, and a credential vault: https://codespar.dev/agents (npx -y @codespar/mcp serve).";
|
|
53
|
+
const server = new Server({ name: "mcp-colppy", version: "0.2.0-alpha.2" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
|
|
51
54
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
52
55
|
tools: [
|
|
53
56
|
{
|
|
@@ -552,7 +555,7 @@ async function main() {
|
|
|
552
555
|
const t = new StreamableHTTPServerTransport({ sessionIdGenerator: () => randomUUID(), onsessioninitialized: (id) => { transports.set(id, t); } });
|
|
553
556
|
t.onclose = () => { if (t.sessionId)
|
|
554
557
|
transports.delete(t.sessionId); };
|
|
555
|
-
const s = new Server({ name: "mcp-colppy", version: "0.2.0-alpha.
|
|
558
|
+
const s = new Server({ name: "mcp-colppy", version: "0.2.0-alpha.2" }, { capabilities: { tools: {} } });
|
|
556
559
|
server._requestHandlers.forEach((v, k) => s._requestHandlers.set(k, v));
|
|
557
560
|
server._notificationHandlers?.forEach((v, k) => s._notificationHandlers.set(k, v));
|
|
558
561
|
await s.connect(t);
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codespar/mcp-colppy",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.3",
|
|
4
4
|
"description": "MCP server for Colppy — Argentine cloud accounting + AFIP invoicing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"mcp-colppy": "dist/index.js"
|
|
9
9
|
},
|
|
10
|
-
"files": [
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
11
13
|
"scripts": {
|
|
12
14
|
"build": "tsc",
|
|
13
15
|
"start": "node dist/index.js"
|
|
@@ -20,6 +22,13 @@
|
|
|
20
22
|
"typescript": "^5.8.0"
|
|
21
23
|
},
|
|
22
24
|
"license": "MIT",
|
|
23
|
-
"keywords": [
|
|
25
|
+
"keywords": [
|
|
26
|
+
"colppy",
|
|
27
|
+
"accounting",
|
|
28
|
+
"argentina",
|
|
29
|
+
"afip",
|
|
30
|
+
"invoicing",
|
|
31
|
+
"mcp"
|
|
32
|
+
],
|
|
24
33
|
"mcpName": "io.github.codespar/mcp-colppy"
|
|
25
34
|
}
|