@agenttrust-sdk/mcp 0.3.4 → 0.3.5
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.
|
@@ -46,6 +46,17 @@ Output:
|
|
|
46
46
|
|
|
47
47
|
Open the `explorerTxUrl` to see the on-chain transaction. The `policyPda` is the `PolicyAccount` PDA the gate evaluates against on every payment.
|
|
48
48
|
|
|
49
|
+
### Before you simulate: seed a counterparty
|
|
50
|
+
|
|
51
|
+
`agenttrust_simulate_payment` runs `gate_payment` against a payee agent that must already exist on Quantu's `agent_registry`. A brand-new agent_asset that has never been registered will surface an `AccountNotInitialized` error (now correctly classified as `chain_error` in the envelope), not a clean gate decision.
|
|
52
|
+
|
|
53
|
+
Two ways to get a counterparty the simulator can reach:
|
|
54
|
+
|
|
55
|
+
1. Use a bundled demo counterparty. The repo ships three pre-seeded agents at `examples/pay-sh-demo/devnet-counterparties.json` (tier 0, tier 1, tier 3). The pubkey `BTcgiDauqVHoGMiXujytE5wycfncDEmNnXJiUZ4s4oWL` is one of them and is safe to drop into the prompt below as the `payee_agent`.
|
|
56
|
+
2. Register your own. Run the Quantu `register_agent` flow (see the Quantu reference at `/quantu` for the full instruction set, or call `agenttrust_register_agent` via the MCP server) and use the new agent_asset.
|
|
57
|
+
|
|
58
|
+
If neither is set up, the simulator still returns a structured envelope. The hint inside it names the missing on-chain account so you know exactly which step to run next.
|
|
59
|
+
|
|
49
60
|
## 3. Run a gate-decision simulation
|
|
50
61
|
|
|
51
62
|
Now ask:
|
|
@@ -254,6 +254,18 @@ function assembleDemoApp(args: AssembleArgs): DemoApp {
|
|
|
254
254
|
const app = express();
|
|
255
255
|
app.use(express.json({ limit: "256kb" }));
|
|
256
256
|
|
|
257
|
+
// Friendly root handler. Replaces the bare Express "Cannot GET /"
|
|
258
|
+
// 404 for visitors landing on https://demo.agenttrust.tech/ from a
|
|
259
|
+
// browser. Returns 200 with a small JSON payload pointing at the
|
|
260
|
+
// docs and the functional endpoints.
|
|
261
|
+
app.get("/", (_req, res) => {
|
|
262
|
+
res.status(200).json({
|
|
263
|
+
service: "agenttrust-demo",
|
|
264
|
+
docs: "https://docs.agenttrust.tech",
|
|
265
|
+
endpoints: ["/protected", "/health"],
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
|
|
257
269
|
app.get("/health", (_req, res) => {
|
|
258
270
|
res.json({
|
|
259
271
|
status: "ok",
|
package/dist/errors.js
CHANGED
|
@@ -143,6 +143,26 @@ function isAnchorError(err, name, message) {
|
|
|
143
143
|
return true;
|
|
144
144
|
if (/\bCustom:\s*\d+\b/.test(message))
|
|
145
145
|
return true;
|
|
146
|
+
// web3.js `SendTransactionError` — thrown by `Connection.simulateTransaction`
|
|
147
|
+
// and `Connection.sendRawTransaction` when the runtime rejects a tx for a
|
|
148
|
+
// reason that isn't an Anchor-decoded `Custom NNN`. The error class name
|
|
149
|
+
// appears in the auto-appended guide text ("Catch the
|
|
150
|
+
// `SendTransactionError` and call `getLogs()` on it for full details.").
|
|
151
|
+
// The constructor itself starts the message with "Simulation failed." or
|
|
152
|
+
// "Transaction ... resulted in an error." — match both shapes so the
|
|
153
|
+
// envelope lands as `chain_error` not `internal`. See the gate E2E rerun
|
|
154
|
+
// Beat F polish note for the originating transcript shape (downstream CPI
|
|
155
|
+
// hits "An account required by the instruction is missing").
|
|
156
|
+
if (name === "SendTransactionError")
|
|
157
|
+
return true;
|
|
158
|
+
if (/SendTransactionError/.test(message))
|
|
159
|
+
return true;
|
|
160
|
+
if (/Simulation failed\.\s*\nMessage:/i.test(message))
|
|
161
|
+
return true;
|
|
162
|
+
if (/^Transaction \w+ resulted in an error/i.test(message))
|
|
163
|
+
return true;
|
|
164
|
+
if (/Transaction simulation failed:/i.test(message))
|
|
165
|
+
return true;
|
|
146
166
|
return false;
|
|
147
167
|
}
|
|
148
168
|
/**
|
|
@@ -181,6 +201,31 @@ function formatInstructionErrorHint(message) {
|
|
|
181
201
|
const suffix = label ? ` (${label})` : "";
|
|
182
202
|
return `On-chain program returned Custom ${code}${suffix}. Inspect the transaction logs on the explorer; the failing constraint or seed mismatch is named in the program's error.rs.`;
|
|
183
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Build a hint for a `SendTransactionError` text-shape failure — the
|
|
206
|
+
* web3.js error class thrown by `Connection.simulateTransaction` and
|
|
207
|
+
* `Connection.sendRawTransaction` when the runtime rejects a tx for a
|
|
208
|
+
* reason that didn't come back as an Anchor `Custom NNN` code.
|
|
209
|
+
*
|
|
210
|
+
* The most common diagnostic embedded in the message is "An account
|
|
211
|
+
* required by the instruction is missing" — this is what a CPI-deep
|
|
212
|
+
* call into an unseeded counterparty (e.g. emit_feedback against an
|
|
213
|
+
* agent_asset whose Quantu `agent_account` PDA hasn't been registered)
|
|
214
|
+
* surfaces in practice. Capture that shape with a remediation-specific
|
|
215
|
+
* hint so the LLM doesn't fall back to a generic "check the logs"
|
|
216
|
+
* blurb. See the gate E2E rerun Beat F transcript for the originating
|
|
217
|
+
* sample.
|
|
218
|
+
*/
|
|
219
|
+
function formatSendTransactionErrorHint(message) {
|
|
220
|
+
if (/An account required by the instruction is missing/i.test(message)) {
|
|
221
|
+
return ("Transaction failed because a required account was not in the instruction's account list. " +
|
|
222
|
+
"This usually means a downstream CPI target (e.g. a Quantu agent_account PDA or facilitator authority PDA) " +
|
|
223
|
+
"has not been seeded for this signer / counterparty. Inspect the embedded logs in the cause to identify the " +
|
|
224
|
+
"missing account, then run the matching init / register tool before retrying.");
|
|
225
|
+
}
|
|
226
|
+
return ("Transaction was rejected by the Solana runtime. Inspect the embedded logs in the cause for the failing " +
|
|
227
|
+
"program invoke + the precise runtime error; in a SendTransactionError handler, call `getLogs()` for the full set.");
|
|
228
|
+
}
|
|
184
229
|
function isConfigError(err, name) {
|
|
185
230
|
if (name === "ConfigError")
|
|
186
231
|
return true;
|
|
@@ -282,10 +327,21 @@ function classifyError(err, toolName) {
|
|
|
282
327
|
// submission/e2e-claude-code-2026-05-13/README.md.
|
|
283
328
|
if (isAnchorError(err, name, message)) {
|
|
284
329
|
const anchorHint = formatAnchorHint(err);
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
330
|
+
let fallbackHint;
|
|
331
|
+
if (/InstructionError/.test(message) || /\bCustom\b/.test(message)) {
|
|
332
|
+
fallbackHint = formatInstructionErrorHint(message);
|
|
333
|
+
}
|
|
334
|
+
else if (name === "SendTransactionError" ||
|
|
335
|
+
/SendTransactionError/.test(message) ||
|
|
336
|
+
/Simulation failed\.\s*\nMessage:/i.test(message) ||
|
|
337
|
+
/Transaction simulation failed:/i.test(message)) {
|
|
338
|
+
fallbackHint = formatSendTransactionErrorHint(message);
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
fallbackHint =
|
|
342
|
+
"Inspect the transaction logs on the explorer; the failing constraint or " +
|
|
343
|
+
"custom error code is included in the cause.";
|
|
344
|
+
}
|
|
289
345
|
return {
|
|
290
346
|
errorCode: "chain_error",
|
|
291
347
|
message: "On-chain transaction failed.",
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;;AAiPH,sCAwGC;AAqBD,0CAkBC;AA9XD,6BAA+B;AAmB/B,4EAA4E;AAC5E,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B,gEAAgE;AAChE,SAAS,KAAK,CAAC,CAAS,EAAE,GAAG,GAAG,aAAa;IAC3C,IAAI,CAAC,CAAC,MAAM,IAAI,GAAG;QAAE,OAAO,CAAC,CAAC;IAC9B,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GA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I,SAAS,CAAC,KAAK,KAAK,SAAS;QAAE,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;IAEnE,OAAO;QACL,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;QACnE,iBAAiB,EAAE,OAAO;KAC3B,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenttrust-sdk/mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "MCP server for AgentTrust — query and call deployed Solana programs from Claude Desktop / Cursor / any MCP client",
|
|
5
5
|
"author": "AgentTrust Labs (https://agenttrust.tech)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"bs58": "^6.0.0",
|
|
48
48
|
"zod": "^3.25.76",
|
|
49
49
|
"zod-to-json-schema": "^3.23.5",
|
|
50
|
-
"@agenttrust-sdk/trustgate": "^0.3.
|
|
50
|
+
"@agenttrust-sdk/trustgate": "^0.3.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/chai": "^4.3.0",
|