(handlers: ServerHandlers)
| 315 | withCorsHeaders(req, new Response(null, { status: 204 }), allowedHosts); |
| 316 | |
| 317 | const closeProvidedHandlers = async (handlers: ServerHandlers): Promise<void> => { |
| 318 | await handlers.mcp.close(); |
| 319 | await handlers.api.dispose(); |
| 320 | }; |
| 321 | |
| 322 | const ignoreCleanupFailure = async (cleanup: () => Promise<unknown>): Promise<void> => { |
| 323 | // oxlint-disable-next-line executor/no-promise-catch -- boundary: startup cleanup is best-effort and must not mask the original startup failure |
no test coverage detected