@rapay/mcp-server 1.2.1 → 1.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/dist/handlers.js CHANGED
@@ -498,9 +498,9 @@ async function executeSend(args) {
498
498
  validateSendArgs(args);
499
499
  // Convert cents to dollars for CLI (CLI expects dollar amount)
500
500
  const amountDollars = args.amount / 100;
501
- // Calculate fee breakdown using integer math to avoid floating point errors
502
- // 2% Ra Pay application fee: fee_cents = amount_cents * 2 / 100
503
- const rapayFeeCents = Math.round(args.amount * 0.02);
501
+ // Calculate fee breakdown using true integer math to avoid floating point errors
502
+ // 2% Ra Pay application fee: integer ceiling of (amount_cents * 2 / 100)
503
+ const rapayFeeCents = Math.floor((args.amount * 2 + 99) / 100);
504
504
  const recipientReceivesCents = args.amount - rapayFeeCents;
505
505
  // Convert to dollars for display (after integer calculation)
506
506
  const rapayFee = rapayFeeCents / 100;
package/dist/index.d.ts CHANGED
@@ -13,5 +13,5 @@
13
13
  * - Privacy preserved (dumb pipe model intact)
14
14
  * - No blockers
15
15
  */
16
- export declare const SERVER_VERSION = "1.2.1";
16
+ export declare const SERVER_VERSION = "1.2.2";
17
17
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import { checkForUpdates } from "./version-check.js";
23
23
  * Server metadata
24
24
  */
25
25
  const SERVER_NAME = "rapay-mcp";
26
- export const SERVER_VERSION = "1.2.1";
26
+ export const SERVER_VERSION = "1.2.2";
27
27
  /**
28
28
  * Initialize MCP server
29
29
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rapay/mcp-server",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Ra Pay MCP Server for Claude Desktop and Claude Code - AI Agent Payment Infrastructure",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",