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

Function oauthClientMetadataResponse

apps/local/vite.config.ts:59–74  ·  view source on GitHub ↗
(requestUrl: string, webRequest: Request)

Source from the content-addressed store, hash-verified

57);
58
59const oauthClientMetadataResponse = (requestUrl: string, webRequest: Request): Response =>
60 new Response(
61 JSON.stringify(
62 oauthClientIdMetadataDocumentFromRequest({
63 requestUrl,
64 webRequest,
65 mountPrefix: "/api",
66 }),
67 ),
68 {
69 headers: {
70 "content-type": "application/json",
71 "cache-control": "public, max-age=300",
72 },
73 },
74 );
75
76/**
77 * Vite plugin that forwards /api and /mcp requests to the Effect handlers

Callers 1

configureServerFunction · 0.70

Tested by

no test coverage detected