(server: McpServer)
| 312 | // --------------------------------------------------------------------------- |
| 313 | |
| 314 | const getElicitationSupport = (server: McpServer): { form: boolean; url: boolean } => { |
| 315 | const capabilities = server.server.getClientCapabilities(); |
| 316 | if (capabilities === undefined || !capabilities.elicitation) return { form: false, url: false }; |
| 317 | const elicitation = capabilities.elicitation as Record<string, unknown>; |
| 318 | return { form: Boolean(elicitation.form), url: Boolean(elicitation.url) }; |
| 319 | }; |
| 320 | |
| 321 | const readDebugDefault = (): boolean => { |
| 322 | if (typeof process === "undefined" || !process.env) return false; |
no outgoing calls
no test coverage detected