@codespar/mcp-alegra 0.2.1 → 0.2.2

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 CHANGED
@@ -60,4 +60,19 @@ Uses **Basic authentication** with email and API token. Obtain your API token fr
60
60
 
61
61
  ---
62
62
 
63
- **Enterprise?** Contact us at [codespar.com](https://codespar.com) for dedicated support, custom integrations, and SLAs.
63
+ ## Enterprise
64
+
65
+ 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.
66
+
67
+ ## Authentication
68
+
69
+ Set these environment variables before launching the server:
70
+
71
+ - `ALEGRA_EMAIL` *(required)* — Account email for Alegra
72
+ - `ALEGRA_API_TOKEN` *(required, secret)* — API token for Alegra
73
+
74
+ Issue credentials at the provider's developer portal: <https://developer.alegra.com>.
75
+
76
+ ## License
77
+
78
+ MIT
package/dist/index.js CHANGED
@@ -53,7 +53,10 @@ async function alegraRequest(method, path, body) {
53
53
  }
54
54
  return res.json();
55
55
  }
56
- const server = new Server({ name: "mcp-alegra", version: "0.2.1" }, { capabilities: { tools: {} } });
56
+ // Managed-tier pointer surfaced to the agent via MCP `instructions`.
57
+ // Informational only — nothing CodeSpar-hosted is called (MIT-safe).
58
+ 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).";
59
+ const server = new Server({ name: "mcp-alegra", version: "0.2.1" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
57
60
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
58
61
  tools: [
59
62
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codespar/mcp-alegra",
3
- "version": "0.2.1",
4
- "description": "MCP server for Alegra \u2014 cloud accounting for LATAM (Colombian-founded)",
3
+ "version": "0.2.2",
4
+ "description": "MCP server for Alegra cloud accounting for LATAM (Colombian-founded)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "bin": {