(server: McpServer)
| 167 | // --------------------------------------------------------------------------- |
| 168 | |
| 169 | const getElicitationSupport = (server: McpServer): { form: boolean; url: boolean } => { |
| 170 | const capabilities = server.server.getClientCapabilities(); |
| 171 | if (capabilities === undefined || !capabilities.elicitation) return { form: false, url: false }; |
| 172 | const elicitation = capabilities.elicitation as Record<string, unknown>; |
| 173 | return { form: Boolean(elicitation.form), url: Boolean(elicitation.url) }; |
| 174 | }; |
| 175 | |
| 176 | const readDebugDefault = (): boolean => { |
| 177 | if (typeof process === "undefined" || !process.env) return false; |
no outgoing calls
no test coverage detected