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

Function jsonWebResponse

apps/cloud/src/mcp/oauth-metadata.ts:11–15  ·  view source on GitHub ↗
(body: unknown, status = 200)

Source from the content-addressed store, hash-verified

9import { CORS_ALLOW_ORIGIN } from "./responses";
10
11const jsonWebResponse = (body: unknown, status = 200): Response =>
12 new Response(JSON.stringify(body), {
13 status,
14 headers: { "content-type": "application/json", ...CORS_ALLOW_ORIGIN },
15 });
16
17// The `resource` reflects the URL-pinned org (`…/org_xxx/mcp`) when present, so a
18// client that discovered metadata via the org-scoped well-known doc gets back the

Callers 2

oauth-metadata.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected