@codespar/mcp-afip 0.2.0-alpha.2 → 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 +17 -1
- package/dist/index.js +4 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -66,4 +66,20 @@ Uses **certificate-based WSAA authentication** (SOAP). The MCP server wraps AFIP
|
|
|
66
66
|
|
|
67
67
|
---
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
## Enterprise
|
|
70
|
+
|
|
71
|
+
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.
|
|
72
|
+
|
|
73
|
+
## Authentication
|
|
74
|
+
|
|
75
|
+
Set these environment variables before launching the server:
|
|
76
|
+
|
|
77
|
+
- `AFIP_CERT_PATH` *(required)* — Path to AFIP certificate (.crt)
|
|
78
|
+
- `AFIP_KEY_PATH` *(required, secret)* — Path to AFIP private key (.key)
|
|
79
|
+
- `AFIP_CUIT` *(required)* — CUIT number
|
|
80
|
+
|
|
81
|
+
Issue credentials at the provider's developer portal: <https://www.afip.gob.ar/ws>.
|
|
82
|
+
|
|
83
|
+
## License
|
|
84
|
+
|
|
85
|
+
MIT
|
package/dist/index.js
CHANGED
|
@@ -60,7 +60,10 @@ async function afipRequest(method, path, body) {
|
|
|
60
60
|
}
|
|
61
61
|
return res.json();
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
64
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
65
|
+
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).";
|
|
66
|
+
const server = new Server({ name: "mcp-afip", version: "0.2.0-alpha.2" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
|
|
64
67
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
65
68
|
tools: [
|
|
66
69
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codespar/mcp-afip",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
4
|
-
"description": "MCP server for AFIP
|
|
3
|
+
"version": "0.2.0-alpha.3",
|
|
4
|
+
"description": "MCP server for AFIP — Argentine tax authority, electronic invoicing (Factura Electrónica)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|