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

Function apiClient

e2e/local/oauth-token-durability.test.ts:98–104  ·  view source on GitHub ↗
(server: ServerHandle)

Source from the content-addressed store, hash-verified

96};
97
98const apiClient = (server: ServerHandle) =>
99 HttpApiClient.make(api, {
100 baseUrl: new URL("/api", server.origin).toString(),
101 transformClient: HttpClient.mapRequest((request) =>
102 HttpClientRequest.setHeader(request, "authorization", `Bearer ${server.token}`),
103 ),
104 }).pipe(Effect.provide(FetchHttpClient.layer));
105
106scenario(
107 "Local · an OAuth MCP connection survives a sandbox stop/recreate (data dir kept, keychain lost)",

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected