(mcpUrl: string, bearer: string)
| 45 | } |
| 46 | |
| 47 | const 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 | |
| 56 | interface RawResult { |
| 57 | readonly status: number; |
no test coverage detected