Files
rea/scripts/lib/ghidra-verifier-mcp.mjs
T
Vincent Koc 41589492e0 refactor(ghidra): reuse the verifier MCP call binding (#14590)
* refactor(ghidra): reuse the verifier MCP call binding

* test(ghidra): cover shared verifier call decoding
2026-11-25 16:56:05 +00:00

13 lines
464 B
JavaScript

/** Bind verifier calls to the SDK client and the selected request budget. */
export function createGhidraVerifierMcpOperations(client, requestOptions) {
const callTool = (request) => client.callTool(request, requestOptions);
return {
connect: (transport) => client.connect(transport, requestOptions),
callTool,
decodedCall:
(decode) =>
async (name, args = {}) =>
decode(await callTool({ name, arguments: args }), name),
};
}