mirror of
https://github.com/morluto/rea.git
synced 2026-12-03 17:44:27 +00:00
* refactor(ghidra): reuse the verifier MCP call binding * test(ghidra): cover shared verifier call decoding
13 lines
464 B
JavaScript
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),
|
|
};
|
|
}
|