( port: number = REDIRECT_PORT_FALLBACK, )
| 19 | * port as long as the path matches. |
| 20 | */ |
| 21 | export function buildRedirectUri( |
| 22 | port: number = REDIRECT_PORT_FALLBACK, |
| 23 | ): string { |
| 24 | return `http://localhost:${port}/callback` |
| 25 | } |
| 26 | |
| 27 | function getMcpOAuthCallbackPort(): number | undefined { |
| 28 | const port = parseInt(process.env.MCP_OAUTH_CALLBACK_PORT || '', 10) |
no outgoing calls
no test coverage detected