(handlers: ServerHandlers)
| 286 | withCorsHeaders(req, new Response(null, { status: 204 }), allowedHosts); |
| 287 | |
| 288 | const closeProvidedHandlers = async (handlers: ServerHandlers): Promise<void> => { |
| 289 | await handlers.mcp.close(); |
| 290 | await handlers.api.dispose(); |
| 291 | }; |
| 292 | |
| 293 | const ignoreCleanupFailure = async (cleanup: () => Promise<unknown>): Promise<void> => { |
| 294 | // 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