agentsolis-mcp 0.1.0 → 0.2.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/README.md CHANGED
@@ -2,11 +2,48 @@
2
2
 
3
3
  A local [Model Context Protocol](https://modelcontextprotocol.io) server for [AgentSolis](https://agentsolis.solists.com.tr), a USDC escrow flow on Arbitrum One.
4
4
 
5
- An agent can read the public config, quote the protocol fee, build an **unsigned** transaction for a buyer-started deal, and read a deal from the chain. The server does not hold a wallet, does not sign, and does not broadcast. The wallet owner signs on the AgentSolis site or in their own wallet.
5
+ An agent can try a full escrow deal in a **wallet-free sandbox**, read the public config, quote the protocol fee, build an **unsigned** transaction for a buyer-started deal, and read a deal from the chain. The server does not hold a wallet, does not sign, and does not broadcast. The wallet owner signs on the AgentSolis site or in their own wallet.
6
6
 
7
7
  AgentSolis never asks for a private key or seed phrase.
8
8
 
9
- The package uses the MIT license. Publishing the package remains a separate owner decision.
9
+ The package is on npm as [`agentsolis-mcp`](https://www.npmjs.com/package/agentsolis-mcp) and uses the MIT license.
10
+
11
+ ## Try it with no wallet (2 minutes)
12
+
13
+ You need Node.js 20 or newer. No wallet, no USDC, no API key, no environment variables.
14
+
15
+ **1. Add the server to your client.**
16
+
17
+ Claude Code:
18
+
19
+ ```bash
20
+ claude mcp add agentsolis -- npx -y agentsolis-mcp
21
+ ```
22
+
23
+ Claude Desktop (`claude_desktop_config.json`) or Cursor (`~/.cursor/mcp.json` or `.cursor/mcp.json`):
24
+
25
+ ```json
26
+ {
27
+ "mcpServers": {
28
+ "agentsolis": {
29
+ "command": "npx",
30
+ "args": ["-y", "agentsolis-mcp"]
31
+ }
32
+ }
33
+ }
34
+ ```
35
+
36
+ Restart the client after editing the file.
37
+
38
+ **2. Ask your agent:**
39
+
40
+ > Use the AgentSolis sandbox tools to create a 25 USDC deal for "Write a 500-word blog post", deliver it, release it, and explain who got paid.
41
+
42
+ Or pick the `try_sandbox` prompt if your client shows MCP prompts.
43
+
44
+ **3. What happens.** The agent calls `sandbox_create_deal`, then `sandbox_advance_deal` with `deliver` and `release`. Every reply is labeled `SANDBOX - simulated, no real funds`. Sandbox deals live only in the memory of the running server. Nothing touches a blockchain.
45
+
46
+ When you want a real deal, `prepare_deal` builds the unsigned transactions and your own wallet signs them.
10
47
 
11
48
  ## What it is not
12
49
 
@@ -16,17 +53,18 @@ The package uses the MIT license. Publishing the package remains a separate owne
16
53
  - It prepares buyer-started deals only. Seller-started offers are quoted, not built.
17
54
  - It does not move funds. Funds are locked, then paid out, refunded or split by the agreed rules, only after a wallet signs and the network accepts the transaction.
18
55
  - It is not a hosted service. This package speaks stdio.
56
+ - The sandbox is a simplified simulation. Real deals also have deadlines, fallback splits and Buyer Review arbitration.
19
57
 
20
- ## Honest limits (17 Nov 2026)
58
+ ## Honest limits (23 Nov 2026)
21
59
 
22
60
  - Escrow contract: source verified on Arbiscan and Sourcify (14 Nov 2026); no independent review yet.
23
61
  - There is no production x402 integration.
24
62
  - No deals have been recorded yet.
25
63
  - The contract is not upgradeable. Pause stops new deals only. Fee changes wait 48 hours and stay at or below 3% and a 100 USDC cap. The team holds the owner keys. This server does not.
26
64
 
27
- ## Install and run
65
+ ## Install from source
28
66
 
29
- Node.js 20 or newer.
67
+ Node.js 20 or newer. Only needed if you want to change the code; otherwise use `npx -y agentsolis-mcp` as above.
30
68
 
31
69
  ```bash
32
70
  git clone https://github.com/Doublecheese1/agentsolis-mcp.git
@@ -49,22 +87,7 @@ Optional public settings, also listed in `.env.example`:
49
87
 
50
88
  The RPC chain id must be 42161 or 421614 and must match `AGENTSOLIS_CHAIN`. Any other chain is refused. `prepare_deal` only builds chain 42161 transactions.
51
89
 
52
- ## After npm publish (not published yet)
53
-
54
- Once the package is on npm, a client can start it with `npx -y agentsolis-mcp` instead of a local path:
55
-
56
- ```json
57
- {
58
- "mcpServers": {
59
- "agentsolis": {
60
- "command": "npx",
61
- "args": ["-y", "agentsolis-mcp"]
62
- }
63
- }
64
- }
65
- ```
66
-
67
- ## Claude Desktop (local build)
90
+ ## Claude Desktop or Cursor with a local build
68
91
 
69
92
  ```json
70
93
  {
@@ -77,20 +100,17 @@ Once the package is on npm, a client can start it with `npx -y agentsolis-mcp` i
77
100
  }
78
101
  ```
79
102
 
80
- ## Cursor (local build)
103
+ ## Tools
81
104
 
82
- ```json
83
- {
84
- "mcpServers": {
85
- "agentsolis": {
86
- "command": "node",
87
- "args": ["/absolute/path/to/agentsolis-mcp/dist/index.js"]
88
- }
89
- }
90
- }
91
- ```
105
+ ### Sandbox tools (no wallet, simulated)
92
106
 
93
- ## Tools
107
+ All three work offline, keep state only in memory, and label every reply `SANDBOX - simulated, no real funds`.
108
+
109
+ - `sandbox_create_deal` — inputs: `amount_usdc`, `job_description`, optional `mode` (`automatic` default, or `buyer_review`). Returns a `sandbox-…` deal id in state `funded`, with the job amount, fee and simulated locked deposit, using the same fee math as `quote_fee`.
110
+ - `sandbox_advance_deal` — inputs: `deal_id`, `action`. `deliver` (funded → delivered), `release` (delivered → released: seller paid, fee charged), `refund` (funded → refunded: buyer gets everything back, no fee). Each reply lists the allowed next actions.
111
+ - `sandbox_get_deal` — input: `deal_id`. Returns state, amounts, payout and history.
112
+
113
+ Prompt: `try_sandbox` walks through a release and a refund using only the sandbox tools.
94
114
 
95
115
  ### `get_config`
96
116
 
@@ -147,6 +167,10 @@ Reads `deals(bytes32)` with `eth_call`. Returns the mode, state, parties, amount
147
167
  - `agentsolis://addresses` — escrow and USDC addresses, with mainnet and the paused Sepolia deployment labeled separately.
148
168
  - `agentsolis://rules` — modes, fee, bond, limits, and the honest "not done" list.
149
169
 
170
+ ## Prompts
171
+
172
+ - `try_sandbox` — a guided, wallet-free walkthrough of the sandbox tools.
173
+
150
174
  ## Links
151
175
 
152
176
  - Wallet-free demo: https://agentsolis.solists.com.tr/play
package/dist/resources.js CHANGED
@@ -36,8 +36,9 @@ export const rulesResource = {
36
36
  "Funds are locked, then paid out, refunded or split by the agreed rules.",
37
37
  "The contract is not upgradeable. Pause stops new deals only. Fee changes have a 48-hour delay and stay at or below 3% and a 100 USDC cap. The team holds the owner keys. This tool does not.",
38
38
  "",
39
- "Not done, as of 14 Nov 2026:",
40
- "- Contract source was not verified on Sourcify (no match).",
39
+ "Escrow contract: source verified on Arbiscan and Sourcify (14 Nov 2026); no independent review yet.",
40
+ "",
41
+ "Not done, as of 23 Nov 2026:",
41
42
  "- No independent review.",
42
43
  "- No production x402.",
43
44
  "- No deals recorded yet.",
@@ -46,6 +47,7 @@ export const rulesResource = {
46
47
  "AgentSolis never asks for a private key or seed phrase.",
47
48
  "Live config: https://agentsolis.solists.com.tr/mainnet/config",
48
49
  "Wallet-free demo: https://agentsolis.solists.com.tr/play",
50
+ "Wallet-free MCP tools: sandbox_create_deal, sandbox_advance_deal, sandbox_get_deal (simulated, no real funds).",
49
51
  ].join("\n"),
50
52
  };
51
53
  //# sourceMappingURL=resources.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources.js","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,SAAS,EACT,SAAS,EACT,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,EAAE,wBAAwB;IAC7B,QAAQ,EAAE,kBAAkB;IAC5B,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB;QACE,OAAO,EAAE;YACP,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,cAAc;YACvB,SAAS,EAAE,SAAS;YACpB,0BAA0B,EAAE,SAAS;YACrC,IAAI,EAAE,iBAAiB;YACvB,MAAM,EAAE,2EAA2E;SACpF;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,kBAAkB;YAC3B,MAAM,EAAE,cAAc;YACtB,IAAI,EAAE,qBAAqB;YAC3B,MAAM,EAAE,iGAAiG;SAC1G;KACF,EACD,IAAI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oBAAoB;IACzB,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE;QACJ,2CAA2C;QAC3C,EAAE;QACF,4EAA4E;QAC5E,4DAA4D;QAC5D,mIAAmI;QACnI,0EAA0E;QAC1E,wKAAwK;QACxK,uFAAuF;QACvF,iMAAiM;QACjM,yEAAyE;QACzE,8LAA8L;QAC9L,EAAE;QACF,qGAAqG;QACrG,EAAE;QACF,8BAA8B;QAC9B,0BAA0B;QAC1B,uBAAuB;QACvB,0BAA0B;QAC1B,wDAAwD;QACxD,EAAE;QACF,yDAAyD;QACzD,+DAA+D;QAC/D,0DAA0D;QAC1D,gHAAgH;KACjH,CAAC,IAAI,CAAC,IAAI,CAAC;CACb,CAAC"}
@@ -0,0 +1,132 @@
1
+ /**
2
+ * Wallet-free sandbox. Everything here is simulated in this process's memory.
3
+ * It never reads or writes a blockchain, never uses a wallet, key or USDC,
4
+ * and never calls the network. Data is lost when the process stops.
5
+ */
6
+ import { randomBytes } from "node:crypto";
7
+ import { quoteFee } from "./fee.js";
8
+ import { rejectKeyMaterial } from "./guard.js";
9
+ import { formatUsdc } from "./money.js";
10
+ export const SANDBOX_LABEL = "SANDBOX - simulated, no real funds";
11
+ export const SANDBOX_NOTE = "Nothing touched a blockchain. No wallet, key or USDC was used. This is a simplified flow: real deals also have deadlines, fallback splits and Buyer Review arbitration (see agentsolis://rules). For a real deal, use prepare_deal; a wallet owner signs.";
12
+ export const SANDBOX_MAX_DEALS = 50;
13
+ const NEXT = {
14
+ funded: ["deliver", "refund"],
15
+ delivered: ["release"],
16
+ released: [],
17
+ refunded: [],
18
+ };
19
+ const HINT = {
20
+ funded: "Simulated USDC is locked. Next: call sandbox_advance_deal with action 'deliver' (seller delivers) or 'refund' (buyer gets everything back, no fee).",
21
+ delivered: "The seller marked the job delivered. Next: call sandbox_advance_deal with action 'release' to pay the seller.",
22
+ released: "Done. The seller was paid and the protocol fee was charged, all simulated. Try prepare_deal to see a real unsigned transaction.",
23
+ refunded: "Done. The buyer got the full deposit back and no fee was charged, all simulated.",
24
+ };
25
+ function addUnits(...values) {
26
+ return formatUsdc(values.reduce((sum, value) => sum + BigInt(value), 0n));
27
+ }
28
+ export class SandboxStore {
29
+ now;
30
+ deals = new Map();
31
+ constructor(now = () => new Date()) {
32
+ this.now = now;
33
+ }
34
+ create(input) {
35
+ rejectKeyMaterial(input);
36
+ const job = (input.job_description ?? "").trim();
37
+ if (!job)
38
+ throw new Error("job_description is required. Example: 'Translate a 300-word product page to Spanish.'");
39
+ if (job.length > 2000)
40
+ throw new Error("job_description must be 2000 characters or fewer.");
41
+ const mode = input.mode ?? "automatic";
42
+ const quote = quoteFee({ amount_usdc: input.amount_usdc, mode, starter: "buyer" });
43
+ const reserveUnits = quote.review_bond_each_side_units ?? "0";
44
+ if (this.deals.size >= SANDBOX_MAX_DEALS) {
45
+ const oldest = this.deals.keys().next().value;
46
+ if (oldest !== undefined)
47
+ this.deals.delete(oldest);
48
+ }
49
+ const deal_id = `sandbox-${randomBytes(6).toString("hex")}`;
50
+ const deal = {
51
+ deal_id,
52
+ mode,
53
+ job_description: job,
54
+ state: "funded",
55
+ amount_usdc: quote.amount_usdc,
56
+ fee: quote.fee,
57
+ review_reserve: addUnits(reserveUnits),
58
+ buyer_locked: quote.buyer_deposit,
59
+ history: [{ step: "created and funded (simulated)", at: this.now().toISOString() }],
60
+ units: { amount: quote.amount_units, fee: quote.fee_units, reserve: reserveUnits },
61
+ };
62
+ this.deals.set(deal_id, deal);
63
+ return this.view(deal);
64
+ }
65
+ get(dealId) {
66
+ return this.view(this.find(dealId));
67
+ }
68
+ advance(dealId, action) {
69
+ const deal = this.find(dealId);
70
+ const allowed = NEXT[deal.state];
71
+ if (!allowed.includes(action)) {
72
+ const options = allowed.length ? allowed.join(" or ") : "nothing, the deal is finished";
73
+ throw new Error(`${SANDBOX_LABEL}: cannot '${action}' a ${deal.state} deal. Allowed now: ${options}.`);
74
+ }
75
+ const at = this.now().toISOString();
76
+ if (action === "deliver") {
77
+ deal.state = "delivered";
78
+ deal.history.push({ step: "seller marked delivered (simulated)", at });
79
+ }
80
+ else if (action === "release") {
81
+ deal.state = "released";
82
+ deal.payout = {
83
+ seller_received: addUnits(deal.units.amount),
84
+ protocol_fee: addUnits(deal.units.fee),
85
+ returned_to_buyer: addUnits(deal.units.reserve),
86
+ };
87
+ deal.history.push({ step: "buyer released payment to seller (simulated)", at });
88
+ }
89
+ else {
90
+ deal.state = "refunded";
91
+ deal.payout = {
92
+ seller_received: "0.00",
93
+ protocol_fee: "0.00",
94
+ returned_to_buyer: addUnits(deal.units.amount, deal.units.fee, deal.units.reserve),
95
+ };
96
+ deal.history.push({ step: "refunded to buyer (simulated)", at });
97
+ }
98
+ return this.view(deal);
99
+ }
100
+ find(dealId) {
101
+ rejectKeyMaterial(dealId, "sandbox_deal_id");
102
+ const deal = this.deals.get(String(dealId ?? "").trim());
103
+ if (!deal) {
104
+ throw new Error(`${SANDBOX_LABEL}: no sandbox deal with id '${dealId}'. Sandbox deals live only in this server process. Create one with sandbox_create_deal.`);
105
+ }
106
+ return deal;
107
+ }
108
+ view(deal) {
109
+ return {
110
+ sandbox: true,
111
+ label: SANDBOX_LABEL,
112
+ deal_id: deal.deal_id,
113
+ state: deal.state,
114
+ mode: deal.mode,
115
+ job_description: deal.job_description,
116
+ buyer: "demo-buyer (simulated)",
117
+ seller: "demo-seller (simulated)",
118
+ amounts_usdc: {
119
+ job: deal.amount_usdc,
120
+ protocol_fee_if_seller_paid: deal.fee,
121
+ review_reserve: deal.review_reserve,
122
+ buyer_locked: deal.buyer_locked,
123
+ },
124
+ ...(deal.payout ? { payout_usdc: deal.payout } : {}),
125
+ allowed_actions: NEXT[deal.state],
126
+ next: HINT[deal.state],
127
+ history: deal.history,
128
+ note: SANDBOX_NOTE,
129
+ };
130
+ }
131
+ }
132
+ //# sourceMappingURL=sandbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../src/sandbox.ts"],"names":[],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;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,KAAK,EAAE,wBAAwB;YAC/B,MAAM,EAAE,yBAAyB;YACjC,YAAY,EAAE;gBACZ,GAAG,EAAE,IAAI,CAAC,WAAW;gBACrB,2BAA2B,EAAE,IAAI,CAAC,GAAG;gBACrC,cAAc,EAAE,IAAI,CAAC,cAAc;gBACnC,YAAY,EAAE,IAAI,CAAC,YAAY;aAChC;YACD,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACpD,eAAe,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;YACjC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;YACtB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,YAAY;SACnB,CAAC;IACJ,CAAC;CACF"}
package/dist/server.js CHANGED
@@ -2,13 +2,15 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { z } from "zod";
3
3
  import { createEscrowReader } from "./chain.js";
4
4
  import { addressesResource, rulesResource } from "./resources.js";
5
+ import { SANDBOX_LABEL, SandboxStore } from "./sandbox.js";
5
6
  import { loadSettings } from "./settings.js";
6
7
  import { getConfig, getDealStatusTool, prepareDealTool, quoteFeeTool, } from "./tools.js";
7
8
  const INSTRUCTIONS = [
8
9
  "AgentSolis MCP prepares unsigned USDC escrow transactions and reads public deal status on Arbitrum One.",
10
+ "To try the flow with no wallet and no USDC, start with the sandbox_* tools; they are simulated in memory and never touch a blockchain.",
9
11
  "It never holds a private key or seed phrase, never signs, and never broadcasts.",
10
12
  "The wallet owner signs. Funds are locked, then paid out, refunded or split by the agreed rules.",
11
- "Contract source was not verified on Sourcify as of 14 Nov 2026. There is no independent review and no recorded deals yet.",
13
+ "Escrow contract: source verified on Arbiscan and Sourcify (14 Nov 2026); no independent review yet. No deals recorded yet.",
12
14
  ].join(" ");
13
15
  function textResult(value) {
14
16
  return { content: [{ type: "text", text: JSON.stringify(value, null, 2) }] };
@@ -21,10 +23,11 @@ export function createAgentServer(deps = {}) {
21
23
  const settings = deps.settings ?? loadSettings();
22
24
  const reader = deps.reader ?? createEscrowReader(settings);
23
25
  const fetchImpl = deps.fetchImpl;
24
- const server = new McpServer({ name: "agentsolis", version: "0.1.0" }, { instructions: INSTRUCTIONS });
26
+ const sandbox = deps.sandbox ?? new SandboxStore();
27
+ const server = new McpServer({ name: "agentsolis", version: "0.2.0" }, { instructions: INSTRUCTIONS });
25
28
  server.registerTool("get_config", {
26
29
  title: "Get AgentSolis config",
27
- description: "Read the public AgentSolis config and cross-check paused, public access, fee bps and fee cap with eth_call. Returns both results and a drift list when they differ. Does not sign, send, or change a deal.",
30
+ description: "Check whether AgentSolis is open for real deals. Use before prepare_deal. Reads the public config and the contract (paused, public access, fee) and lists any drift between them. No inputs. Read-only.",
28
31
  inputSchema: {},
29
32
  annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: true },
30
33
  }, async () => {
@@ -37,12 +40,12 @@ export function createAgentServer(deps = {}) {
37
40
  });
38
41
  server.registerTool("quote_fee", {
39
42
  title: "Quote protocol fee",
40
- description: "Calculate the protocol fee, buyer deposit, seller receipt and Buyer Review bond with the integer formula: 1.5% of the job amount, capped at 50 USDC. Does not move funds. If buyer_address is set, also read protocolFeeFor and arbitrationReserveFor and flag any difference. Does not sign or send.",
43
+ description: "Work out what a deal costs. Use when someone asks about fees or deposits. Returns the fee (1.5% of the job, max 50 USDC), buyer deposit, seller payout and Buyer Review bond. Example: amount_usdc '100', mode 'automatic', starter 'buyer' gives fee 1.50 and deposit 101.50. Read-only.",
41
44
  inputSchema: {
42
- amount_usdc: z.string().describe("Job amount in USDC as a decimal string with at most 6 fraction digits."),
43
- mode: z.enum(["automatic", "buyer_review"]),
44
- starter: z.enum(["buyer", "seller"]),
45
- buyer_address: z.string().optional().describe("Optional checksummed buyer address for an on-chain fee cross-check."),
45
+ amount_usdc: z.string().describe("Job amount in USDC, e.g. '100' or '12.5'. Automatic min 10, Buyer Review min 100."),
46
+ mode: z.enum(["automatic", "buyer_review"]).describe("automatic: seller is paid unless the buyer objects in time. buyer_review: buyer approves, with a bond each side."),
47
+ starter: z.enum(["buyer", "seller"]).describe("Who starts the deal. The starter pays the fee."),
48
+ buyer_address: z.string().optional().describe("Optional buyer address. If set, the fee is also checked against the contract."),
46
49
  },
47
50
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
48
51
  }, async (args) => {
@@ -55,17 +58,17 @@ export function createAgentServer(deps = {}) {
55
58
  });
56
59
  server.registerTool("prepare_deal", {
57
60
  title: "Prepare an unsigned buyer-started deal",
58
- description: "Build two unsigned transactions for a buyer-started deal: a USDC approve and proposeDeal. Returns calldata only. Does not store the manifest, does not hold a key, does not sign, and does not broadcast. Refuses when funding is paused or closed.",
61
+ description: "Build a real, unsigned buyer-started deal on Arbitrum One: a USDC approve and a proposeDeal transaction for the buyer's wallet to sign. Use only when the user wants a real deal; to just try the flow, use sandbox_create_deal. Nothing is signed or sent. Refuses when funding is paused or closed.",
59
62
  inputSchema: {
60
63
  buyer: z.string().describe("Checksummed buyer address. This wallet would sign. The tool does not sign."),
61
64
  seller: z.string().describe("Checksummed seller address, different from the buyer."),
62
- amount_usdc: z.string(),
65
+ amount_usdc: z.string().describe("Job amount in USDC, e.g. '100'."),
63
66
  mode: z.enum(["automatic", "buyer_review"]),
64
- fallback_seller_bps: z.number().int().min(0).max(10_000),
65
- acceptance_window: z.number().int(),
66
- delivery_window: z.number().int(),
67
- decision_window: z.number().int(),
68
- arbitration_window: z.number().int(),
67
+ fallback_seller_bps: z.number().int().min(0).max(10_000).describe("Seller share if the deal falls back, in basis points. 5000 = 50%. Automatic needs at least 5000."),
68
+ acceptance_window: z.number().int().describe("Seconds the seller has to accept. 600 to 2592000."),
69
+ delivery_window: z.number().int().describe("Seconds the seller has to deliver. 600 to 2592000."),
70
+ decision_window: z.number().int().describe("Seconds the buyer has to decide. Automatic at least 86400, Buyer Review at least 172800."),
71
+ arbitration_window: z.number().int().describe("Seconds for arbitration. Buyer Review at least 604800."),
69
72
  manifest: z.string().min(1).max(20_000).describe("Agreed deal text. It is hashed locally and is not stored by this tool."),
70
73
  salt: z.string().optional().describe("Optional 0x-prefixed 32-byte salt. A random salt is used when omitted."),
71
74
  },
@@ -80,7 +83,7 @@ export function createAgentServer(deps = {}) {
80
83
  });
81
84
  server.registerTool("get_deal_status", {
82
85
  title: "Read deal status",
83
- description: "Read deals(bytes32) with eth_call and decode the public deal fields, deadlines and a read-only hint about who can act next. An unknown id returns not_found. Does not sign or send.",
86
+ description: "Look up a real on-chain deal by its 0x deal id. Returns state, parties, amounts, deadlines and who can act next. An unknown id returns not_found. Not for sandbox ids; use sandbox_get_deal for those. Read-only.",
84
87
  inputSchema: {
85
88
  deal_id: z.string().describe("0x-prefixed 32-byte deal id."),
86
89
  escrow: z.enum(["v2", "v1-legacy"]).optional().describe("Defaults to v2. v1-legacy is read-only and only on Arbitrum One."),
@@ -95,6 +98,75 @@ export function createAgentServer(deps = {}) {
95
98
  return errorResult(error);
96
99
  }
97
100
  });
101
+ server.registerTool("sandbox_create_deal", {
102
+ title: "Sandbox: create a simulated deal (no wallet)",
103
+ description: "Try AgentSolis with no wallet and no USDC. Creates a simulated, already-funded deal in memory and returns a sandbox deal id. Use this first when someone wants to see how the escrow flow works. Example: amount_usdc '25', job_description 'Write a 500-word blog post'. SANDBOX - simulated, no real funds.",
104
+ inputSchema: {
105
+ amount_usdc: z.string().describe("Pretend job amount in USDC, e.g. '25'. Automatic min 10, Buyer Review min 100."),
106
+ job_description: z.string().min(1).max(2000).describe("Short description of the pretend job."),
107
+ mode: z.enum(["automatic", "buyer_review"]).optional().describe("Defaults to automatic."),
108
+ },
109
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
110
+ }, async (args) => {
111
+ try {
112
+ return textResult(sandbox.create(args));
113
+ }
114
+ catch (error) {
115
+ return errorResult(error);
116
+ }
117
+ });
118
+ server.registerTool("sandbox_advance_deal", {
119
+ title: "Sandbox: move a simulated deal forward",
120
+ description: "Move a sandbox deal to its next step. Actions: 'deliver' (seller delivers), 'release' (buyer pays the seller, fee charged), 'refund' (before delivery; buyer gets everything back, no fee). The reply lists the allowed next actions. SANDBOX - simulated, no real funds.",
121
+ inputSchema: {
122
+ deal_id: z.string().describe("Sandbox deal id from sandbox_create_deal, e.g. 'sandbox-1a2b3c4d5e6f'."),
123
+ action: z.enum(["deliver", "release", "refund"]),
124
+ },
125
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
126
+ }, async (args) => {
127
+ try {
128
+ return textResult(sandbox.advance(args.deal_id, args.action));
129
+ }
130
+ catch (error) {
131
+ return errorResult(error);
132
+ }
133
+ });
134
+ server.registerTool("sandbox_get_deal", {
135
+ title: "Sandbox: read a simulated deal",
136
+ description: "Read a sandbox deal: state, amounts, payout, history and allowed next actions. Sandbox deals live only while this server runs. SANDBOX - simulated, no real funds.",
137
+ inputSchema: {
138
+ deal_id: z.string().describe("Sandbox deal id from sandbox_create_deal."),
139
+ },
140
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
141
+ }, async (args) => {
142
+ try {
143
+ return textResult(sandbox.get(args.deal_id));
144
+ }
145
+ catch (error) {
146
+ return errorResult(error);
147
+ }
148
+ });
149
+ server.registerPrompt("try_sandbox", {
150
+ title: "Try AgentSolis with no wallet",
151
+ description: `Walk through a full simulated escrow deal in two minutes. ${SANDBOX_LABEL}.`,
152
+ }, () => ({
153
+ messages: [
154
+ {
155
+ role: "user",
156
+ content: {
157
+ type: "text",
158
+ text: [
159
+ "Show me how AgentSolis escrow works using only the sandbox tools. Nothing real should happen.",
160
+ "1. Call sandbox_create_deal with amount_usdc '25' and job_description 'Write a 500-word blog post'.",
161
+ "2. Call sandbox_advance_deal with action 'deliver', then with action 'release'.",
162
+ "3. Explain in plain words what was locked, who got paid, and what the fee was.",
163
+ "4. Then create a second sandbox deal and use action 'refund' to show the refund path.",
164
+ "Finish by noting that a real deal uses prepare_deal and the user's own wallet signs.",
165
+ ].join("\n"),
166
+ },
167
+ },
168
+ ],
169
+ }));
98
170
  server.registerResource("addresses", addressesResource.uri, {
99
171
  title: "AgentSolis addresses",
100
172
  description: "Public escrow and USDC addresses for Arbitrum One and the paused Sepolia deployment.",
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAqB,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAiB,MAAM,eAAe,CAAC;AAC5D,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,YAAY,GAEb,MAAM,YAAY,CAAC;AAEpB,MAAM,YAAY,GAAG;IACnB,yGAAyG;IACzG,iFAAiF;IACjF,iGAAiG;IACjG,2HAA2H;CAC5H,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AACxF,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OA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IAAI,EAAE,CAAC;KAC1F,CAAC,CACH,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "agentsolis-mcp",
3
- "version": "0.1.0",
4
- "description": "Prepare unsigned USDC escrow transactions and read deal status on Arbitrum One. Never holds keys.",
3
+ "version": "0.2.0",
4
+ "description": "Wallet-free escrow sandbox, plus unsigned USDC deal prep on Arbitrum One. Never holds keys.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Solis Trade Solutions",
package/server.json CHANGED
@@ -2,18 +2,18 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.Doublecheese1/agentsolis",
4
4
  "title": "AgentSolis",
5
- "description": "Prepare unsigned USDC escrow transactions and read deal status on Arbitrum One. Never holds keys.",
5
+ "description": "Wallet-free escrow sandbox, plus unsigned USDC deal prep on Arbitrum One. Never holds keys.",
6
6
  "websiteUrl": "https://agentsolis.solists.com.tr",
7
7
  "repository": {
8
8
  "url": "https://github.com/Doublecheese1/agentsolis-mcp",
9
9
  "source": "github"
10
10
  },
11
- "version": "0.1.0",
11
+ "version": "0.2.0",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "agentsolis-mcp",
16
- "version": "0.1.0",
16
+ "version": "0.2.0",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },