(id: string)
| 119 | |
| 120 | /** Remove a server entry. Returns true if it existed. */ |
| 121 | export async function removeServerFromConfig(id: string): Promise<boolean> { |
| 122 | const cfg = await readRawUserConfig(); |
| 123 | if (!cfg.mcp?.servers?.[id]) return false; |
| 124 | delete cfg.mcp.servers[id]; |
| 125 | await writeRawUserConfig(cfg); |
| 126 | return true; |
| 127 | } |
| 128 | |
| 129 | /** List configured server ids from user config. */ |
| 130 | export async function listConfiguredServers(): Promise<string[]> { |
no test coverage detected