mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 16:57:19 +00:00
* fix(ghidra): qualify selected project call coverage * test(ghidra): retain verifier MCP cleanup ownership * test(ghidra): document trusted verifier compiler selection * test(ghidra): document owned verifier exit marker * test(ghidra): remove ineffective scan directives * fix(ghidra): supervise project coverage verification * fix(ghidra): supervise verifier compiler process
22 lines
777 B
TypeScript
22 lines
777 B
TypeScript
import type { Client, Transport } from "@modelcontextprotocol/client";
|
|
import { StdioClientTransport } from "@modelcontextprotocol/client/stdio";
|
|
|
|
/** Share an in-flight SDK close, including one started during failed initialization. */
|
|
export class VerifierStdioTransport extends StdioClientTransport {}
|
|
|
|
type VerifierConnection = {
|
|
client: Client;
|
|
transport: Transport;
|
|
definitions: Map<
|
|
string,
|
|
Awaited<ReturnType<Client["listTools"]>>["tools"][number]
|
|
>;
|
|
};
|
|
|
|
/** Own MCP transports from connection through discovery, use, and cleanup retry. */
|
|
export function createVerifierMcpOwner(): {
|
|
open(client: Client, transport: Transport): Promise<VerifierConnection>;
|
|
closeConnection(connection: VerifierConnection): Promise<void>;
|
|
close(): Promise<void>;
|
|
};
|