@codespar/mcp-nequi 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.
Files changed (3) hide show
  1. package/README.md +35 -6
  2. package/dist/index.js +5 -2
  3. package/package.json +12 -3
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # MCP Nequi
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 **Nequi** — Colombia's leading digital wallet with 50M+ users, powered by Bancolombia. Supports push payments, QR payments, and subscriptions.
4
7
 
5
8
  ## Quick Start
@@ -28,16 +31,26 @@ npx tsx packages/colombia/nequi/src/index.ts --http
28
31
  | `MCP_HTTP` | No | Set to `"true"` to enable HTTP transport |
29
32
  | `MCP_PORT` | No | HTTP port (default: 3000) |
30
33
 
31
- ## Tools
34
+ ## Tools (16)
32
35
 
33
- | Tool | Description |
34
- |------|-------------|
36
+ | Tool | Purpose |
37
+ |---|---|
35
38
  | `create_push_payment` | Send a push payment notification to a Nequi user |
36
- | `get_payment_status` | Check payment status |
39
+ | `get_payment_status` | Check the status of a payment |
37
40
  | `create_qr_payment` | Generate a QR code for payment |
38
41
  | `reverse_payment` | Reverse a completed payment |
39
- | `get_subscription` | Get subscription details |
42
+ | `get_subscription` | Get subscription details for a phone number |
40
43
  | `unsubscribe` | Cancel a subscription |
44
+ | `create_static_qr` | Generate a static (reusable) Nequi QR code for a merchant |
45
+ | `reverse_transaction` | Reverse any Nequi transaction by transaction ID (refund flow) |
46
+ | `validate_phone` | Check whether a phone number is enrolled in Nequi |
47
+ | `notify_unregistered_payment` | Notify a non-Nequi recipient with instructions to claim a payment |
48
+ | `list_transactions` | List transactions for a merchant within a date range |
49
+ | `get_balance` | Get the merchant's own Nequi account balance |
50
+ | `schedule_payment` | Schedule a Nequi push payment for a future date |
51
+ | `authorize_recurring_charge` | Authorize a recurring charge agreement against a Nequi user |
52
+ | `get_merchant_info` | Retrieve registered merchant business profile |
53
+ | `get_settlement` | Query settlement (liquidation) for a given date |
41
54
 
42
55
  ## Auth
43
56
 
@@ -49,4 +62,20 @@ Uses **OAuth2 client credentials** flow. The server obtains an access token usin
49
62
 
50
63
  ---
51
64
 
52
- **Enterprise?** Contact us at [codespar.com](https://codespar.com) for dedicated support, custom integrations, and SLAs.
65
+ ## Enterprise
66
+
67
+ 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.
68
+
69
+ ## Authentication
70
+
71
+ Set these environment variables before launching the server:
72
+
73
+ - `NEQUI_API_KEY` *(required, secret)* — API key for Nequi
74
+ - `NEQUI_CLIENT_ID` *(required)* — OAuth2 client ID
75
+ - `NEQUI_CLIENT_SECRET` *(required, secret)* — OAuth2 client secret
76
+
77
+ Issue credentials at the provider's developer portal: <https://api.nequi.com.co>.
78
+
79
+ ## License
80
+
81
+ MIT
package/dist/index.js CHANGED
@@ -77,7 +77,10 @@ async function nequiRequest(method, path, body) {
77
77
  }
78
78
  return res.json();
79
79
  }
80
- const server = new Server({ name: "mcp-nequi", version: "0.2.0-alpha.1" }, { capabilities: { tools: {} } });
80
+ // Managed-tier pointer surfaced to the agent via MCP `instructions`.
81
+ // Informational only — nothing CodeSpar-hosted is called (MIT-safe).
82
+ 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).";
83
+ const server = new Server({ name: "mcp-nequi", version: "0.2.0-alpha.2" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
81
84
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
82
85
  tools: [
83
86
  {
@@ -578,7 +581,7 @@ async function main() {
578
581
  const t = new StreamableHTTPServerTransport({ sessionIdGenerator: () => randomUUID(), onsessioninitialized: (id) => { transports.set(id, t); } });
579
582
  t.onclose = () => { if (t.sessionId)
580
583
  transports.delete(t.sessionId); };
581
- const s = new Server({ name: "mcp-nequi", version: "0.2.0-alpha.1" }, { capabilities: { tools: {} } });
584
+ const s = new Server({ name: "mcp-nequi", version: "0.2.0-alpha.2" }, { capabilities: { tools: {} } });
582
585
  server._requestHandlers.forEach((v, k) => s._requestHandlers.set(k, v));
583
586
  server._notificationHandlers?.forEach((v, k) => s._notificationHandlers.set(k, v));
584
587
  await s.connect(t);
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@codespar/mcp-nequi",
3
- "version": "0.2.0-alpha.1",
3
+ "version": "0.2.0-alpha.3",
4
4
  "description": "MCP server for Nequi — Colombian digital wallet (by Bancolombia)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "bin": {
8
8
  "mcp-nequi": "dist/index.js"
9
9
  },
10
- "files": ["dist"],
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": ["nequi", "wallet", "colombia", "bancolombia", "payments", "mcp"],
25
+ "keywords": [
26
+ "nequi",
27
+ "wallet",
28
+ "colombia",
29
+ "bancolombia",
30
+ "payments",
31
+ "mcp"
32
+ ],
24
33
  "mcpName": "io.github.codespar/mcp-nequi"
25
34
  }