(server: McpServer)
| 128 | // --------------------------------------------------------------------------- |
| 129 | |
| 130 | const getElicitationSupport = (server: McpServer): { form: boolean; url: boolean } => { |
| 131 | const capabilities = server.server.getClientCapabilities(); |
| 132 | if (capabilities === undefined || !capabilities.elicitation) return { form: false, url: false }; |
| 133 | const elicitation = capabilities.elicitation as Record<string, unknown>; |
| 134 | return { form: Boolean(elicitation.form), url: Boolean(elicitation.url) }; |
| 135 | }; |
| 136 | |
| 137 | const readDebugDefault = (): boolean => { |
| 138 | if (typeof process === "undefined" || !process.env) return false; |
no outgoing calls
no test coverage detected