@fidesbuild/mcp-server 0.5.0 → 0.5.1

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 (2) hide show
  1. package/dist/server.js +3 -2
  2. package/package.json +2 -2
package/dist/server.js CHANGED
@@ -168,7 +168,7 @@ export function createFidesMcpServer(cfg) {
168
168
  ...(outside > 0n ? { warning: `${amount(outside)} sits on the agent key ${agent.address} outside the FIDES: it was sent to the agent address directly instead of to the FIDES Account. FIDES never spends it. To get it back, the owner can import the agent key from ${path.join(cfg.home, 'agent.json')} into a wallet on this computer, add a little ETH for gas, and send it to themselves. Funds for the agent always go to the FIDES Account address.` } : {}),
169
169
  };
170
170
  }
171
- const server = new McpServer({ name: 'fides', version: '0.5.0' }, {
171
+ const server = new McpServer({ name: 'fides', version: '0.5.1' }, {
172
172
  instructions: 'FIDES lets you act with the owner\'s funds only inside limits the owner signed (a FIDES): a budget, allowed contracts and functions, paid services, and an expiry. ' +
173
173
  'Funds move from the owner\'s FIDES Account, never from the owner\'s wallet. If no FIDES is set up yet, call fides_setup and give the user the link. Always call fides_plan first and show the user what is inside the FIDES, what is blocked and why, ' +
174
174
  'and ask before calling fides_execute. Actions outside the FIDES are blocked before anything is sent. Amounts are in whole token units, like "1.5". ' +
@@ -192,6 +192,7 @@ export function createFidesMcpServer(cfg) {
192
192
  'Send USDG from the FIDES Account, to one address or many, inside the budget. Several transfers go out as one transaction.',
193
193
  'Call contracts the FIDES allows, with the functions it allows.',
194
194
  'Buy from paid APIs that charge per request over x402, paying from the FIDES budget, each capped per service.',
195
+ 'Settle with FIDES NET: give the payments owed to and from the FIDES Account, and they are netted to final positions and settled in one transaction, with the round published onchain (fides_net). The FIDES must allow NET: fides_setup with net: true.',
195
196
  'Show the budget spent and left, what is allowed, the expiry, and every transaction executed, with explorer links.',
196
197
  'Everything is planned and simulated first, and shown to the user before anything is sent. Anything outside the FIDES is blocked. The hosted relayer pays the gas.',
197
198
  ],
@@ -402,7 +403,7 @@ export function createFidesMcpServer(cfg) {
402
403
  return { from: party(o.from, i + 1, 'from'), to: party(o.to, i + 1, 'to'), asset, amount, fidesId: fides.id, ref: o.ref ?? `${i + 1}` };
403
404
  });
404
405
  const s = netObligations(list);
405
- const p = settle(s, { account: fides.account, chainId: cfg.chainId });
406
+ const p = settle(s, { account: fides.account, chainId: cfg.chainId, decimals: t.decimals, symbol: t.symbol });
406
407
  const plan = await new FidesBuilder({ client, fides, agent }).add(p.actions).build();
407
408
  const savings = plan.estimatedSavings();
408
409
  const simulations = savings.estimatedTransactions ? await plan.simulate() : [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fidesbuild/mcp-server",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "FIDES as tools for Claude and any MCP client: plan and execute actions inside a signed FIDES, gas paid by the hosted relayer.",
5
5
  "keywords": [
6
6
  "fides",
@@ -40,6 +40,6 @@
40
40
  "viem": "^2.21.0",
41
41
  "zod": "^4.6.5",
42
42
  "@fidesbuild/x402": "0.2.0",
43
- "@fidesbuild/net": "0.2.0"
43
+ "@fidesbuild/net": "0.2.1"
44
44
  }
45
45
  }