@blanketbyte/wise-mcp 1.0.8 → 1.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/dist/wise/service.js +13 -2
- package/package.json +1 -1
package/dist/wise/service.js
CHANGED
|
@@ -346,10 +346,21 @@ function mapQuote(q) {
|
|
|
346
346
|
estimated_delivery: o?.estimatedDelivery,
|
|
347
347
|
delivery: o?.formattedEstimatedDelivery,
|
|
348
348
|
notices: (q.notices ?? []).map((n) => stripTags(n.text)).filter(Boolean),
|
|
349
|
-
//
|
|
350
|
-
|
|
349
|
+
// Every way to pay in the app, cheapest first; methods with the same price are merged (~20 cards and wallets
|
|
350
|
+
// collapse to a few lines). An unpaid transfer shows the BANK_TRANSFER price until it's paid.
|
|
351
|
+
pay_in_options: groupPayIns(options),
|
|
351
352
|
};
|
|
352
353
|
}
|
|
354
|
+
function groupPayIns(options) {
|
|
355
|
+
const groups = new Map();
|
|
356
|
+
for (const x of options) {
|
|
357
|
+
const key = `${x.fee?.total}|${x.targetAmount}`;
|
|
358
|
+
const g = groups.get(key) ?? { pay_in: [], fee: x.fee?.total, target_amount: x.targetAmount };
|
|
359
|
+
g.pay_in.push(x.payIn);
|
|
360
|
+
groups.set(key, g);
|
|
361
|
+
}
|
|
362
|
+
return [...groups.values()].sort((a, b) => a.fee - b.fee).map((g) => ({ ...g, pay_in: g.pay_in.join(", ") }));
|
|
363
|
+
}
|
|
353
364
|
function mapRequirementField(g) {
|
|
354
365
|
return {
|
|
355
366
|
key: String(g.key),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blanketbyte/wise-mcp",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "MCP server for Wise: read balances, card payments, transfers and recipients, and prepare transfers you approve twice. Runs locally (npx, for Claude, Codex, Cursor…) or as a remote connector for Claude and ChatGPT.",
|
|
5
5
|
"mcpName": "io.github.BlanketByte/wise-mcp",
|
|
6
6
|
"keywords": [
|