(server: McpServer)
| 299 | // --------------------------------------------------------------------------- |
| 300 | |
| 301 | const getElicitationSupport = (server: McpServer): { form: boolean; url: boolean } => { |
| 302 | const capabilities = server.server.getClientCapabilities(); |
| 303 | if (capabilities === undefined || !capabilities.elicitation) return { form: false, url: false }; |
| 304 | const elicitation = capabilities.elicitation as Record<string, unknown>; |
| 305 | return { form: Boolean(elicitation.form), url: Boolean(elicitation.url) }; |
| 306 | }; |
| 307 | |
| 308 | const readDebugDefault = (): boolean => { |
| 309 | if (typeof process === "undefined" || !process.env) return false; |
no outgoing calls
no test coverage detected