(body: unknown, status = 200)
| 9 | import { CORS_ALLOW_ORIGIN } from "./responses"; |
| 10 | |
| 11 | const 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 |
no outgoing calls
no test coverage detected