Skip to content

toolmark-monorepo / @toolmark/mcp / PAIRING_CLOSE_CODES

Variable: PAIRING_CLOSE_CODES ​

const PAIRING_CLOSE_CODES: Readonly<{ busy: 4429; goingAway: 1001; handshakeTimeout: 4408; invalidFrame: 4400; superseded: 4409; unauthorized: 4401; }>

Defined in: packages/mcp/src/pairing/constants.ts:7

WebSocket close codes the pairing server sends to the page (spec §11.3, §23 "MCP pairing (R3)").