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

Function main

scripts/agent-config-smoke.ts:322–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320};
321
322const main = async () => {
323 await Effect.runPromise(
324 Effect.scoped(
325 Effect.gen(function* () {
326 const oauth = yield* serveOAuthTestServer();
327 const graph = yield* serveGraphqlTestServer({
328 schema: makeGreetingGraphqlSchema(),
329 auth: {
330 validateAuthorization: oauth.acceptsAuthorizationHeader,
331 wwwAuthenticate: `Bearer resource_metadata="${oauth.protectedResourceMetadataUrl}/graphql"`,
332 },
333 });
334 yield* Effect.promise(() => runSmoke(oauth, graph));
335 }),
336 ),
337 );
338};
339
340await main();

Callers 1

Calls 4

serveOAuthTestServerFunction · 0.90
serveGraphqlTestServerFunction · 0.90
runSmokeFunction · 0.85

Tested by

no test coverage detected