MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / connect

Function connect

mcp/tests/tools.test.ts:172–178  ·  view source on GitHub ↗
(stub: McpClient)

Source from the content-addressed store, hash-verified

170}
171
172async function connect(stub: McpClient): Promise<Client> {
173 const server = buildServer({ client: stub, version: "0.0.0-test" });
174 const client = new Client({ name: "test-client", version: "0.0.0" });
175 const [clientT, serverT] = InMemoryTransport.createLinkedPair();
176 await Promise.all([server.connect(serverT), client.connect(clientT)]);
177 return client;
178}
179
180describe("e2a MCP server", () => {
181 let stub: McpClient;

Callers 1

tools.test.tsFile · 0.70

Calls 2

buildServerFunction · 0.85
connectMethod · 0.80

Tested by

no test coverage detected