@floatonnear/mcp 0.6.2 → 0.6.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/dist/create.d.ts CHANGED
@@ -183,7 +183,7 @@ export interface CreatePlanInput {
183
183
  * per day?" and "how much per payment?".
184
184
  *
185
185
  * WHY THESE EXIST. The signing page has read `?daily=`, `?pertx=`, `?token=`
186
- * and `?decimals=` since it was written, defaulting to 2.04/0.51 USDC on
186
+ * and `?decimals=` since it was written, defaulting to 25/10 USDC on
187
187
  * mainnet. This builder sent four params and never those, so an agent could
188
188
  * not ask the user their budget and hand back a ready-to-sign link — which
189
189
  * is the entire point of the flow. The page was finished; this side was not,
package/dist/create.js CHANGED
@@ -155,7 +155,7 @@ export function validateCaps(i) {
155
155
  if (v === undefined)
156
156
  continue;
157
157
  if (!numeric.test(v)) {
158
- problems.push(`${name} must be a plain decimal in HUMAN units, e.g. "100" or "2.04", got "${v}"`);
158
+ problems.push(`${name} must be a plain decimal in HUMAN units, e.g. "100" or "25", got "${v}"`);
159
159
  continue;
160
160
  }
161
161
  if (Number(v) <= 0) {
package/dist/server.js CHANGED
@@ -251,7 +251,7 @@ WORTH KNOWING
251
251
  An implicit account (a 64-character hex id) cannot own a vault at all. Tell the user to use a
252
252
  named account rather than retrying.
253
253
  Amounts are whole tokens in these tools (1.5 means 1.5 USDC), never base units.`;
254
- const server = new McpServer({ name: "float", version: "0.6.2" }, { instructions: INSTRUCTIONS });
254
+ const server = new McpServer({ name: "float", version: "0.6.3" }, { instructions: INSTRUCTIONS });
255
255
  // ----------------------------------------------------------------- reads
256
256
  /**
257
257
  * Wait for a create to land, and prove the result belongs to the user.
@@ -454,11 +454,11 @@ server.tool("vault_create", "For a user who has NO vault yet. Works out where th
454
454
  daily: z
455
455
  .string()
456
456
  .optional()
457
- .describe("ASK THE USER. The root budget per UTC day, in HUMAN units of the token, e.g. \"100\" or \"2.04\" — not base units. Defaults on the page to 2.04 (mainnet) / 100 (testnet). This is the number the vault enforces on chain, so it is worth asking rather than defaulting."),
457
+ .describe("The root budget per UTC day, in HUMAN units of the token, e.g. \"25\" or \"100\" — not base units. PROPOSE a figure rather than interrogating the user; caps are changeable later with a signed vault_plan_set_caps. Page default when omitted: 25 (mainnet) / 100 (testnet)."),
458
458
  perTx: z
459
459
  .string()
460
460
  .optional()
461
- .describe("ASK THE USER. Maximum per single payment, HUMAN units. Must be <= daily or it can never bind. Page defaults: 0.51 (mainnet) / 10 (testnet)."),
461
+ .describe("Maximum per single payment, HUMAN units. Must be <= daily or it can never bind, and must EXCEED the largest payment intended — cross-chain is EXACT_OUTPUT, so the vault is charged more than the payee receives and a cap of 5 refuses a round 5.00. Page default when omitted: 10 (mainnet) / 10 (testnet)."),
462
462
  token: z
463
463
  .string()
464
464
  .optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floatonnear/mcp",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "type": "module",
5
5
  "description": "MCP server for the hierarchical budget vault. The agent key signs request_payment only; owner methods emit unsigned payloads for wallet approval.",
6
6
  "license": "MIT",