(server: McpServer)
| 383 | // --------------------------------------------------------------------------- |
| 384 | |
| 385 | const getElicitationSupport = (server: McpServer): { form: boolean; url: boolean } => { |
| 386 | const capabilities = server.server.getClientCapabilities(); |
| 387 | if (capabilities === undefined || !capabilities.elicitation) return { form: false, url: false }; |
| 388 | const elicitation = capabilities.elicitation as Record<string, unknown>; |
| 389 | return { form: Boolean(elicitation.form), url: Boolean(elicitation.url) }; |
| 390 | }; |
| 391 | |
| 392 | const readDebugDefault = (): boolean => { |
| 393 | if (typeof process === "undefined" || !process.env) return false; |
no outgoing calls
no test coverage detected