MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / connectClient

Function connectClient

e2e/cloud/repro-transport-brick.test.ts:47–54  ·  view source on GitHub ↗
(mcpUrl: string, bearer: string)

Source from the content-addressed store, hash-verified

45}
46
47const connectClient = async (mcpUrl: string, bearer: string): Promise<Connected> => {
48 const client = new Client({ name: "executor-e2e-brick", version: "0.0.1" }, { capabilities: {} });
49 const transport = new StreamableHTTPClientTransport(new URL(mcpUrl), {
50 requestInit: { headers: { authorization: `Bearer ${bearer}` } },
51 });
52 await client.connect(transport);
53 return { client, transport };
54};
55
56interface RawResult {
57 readonly status: number;

Callers 1

Calls 1

connectMethod · 0.65

Tested by

no test coverage detected