(config: McpEntry)
| 52 | |
| 53 | type McpRemote = Extract<McpConfigured, { type: "remote" }> |
| 54 | function isMcpRemote(config: McpEntry): config is McpRemote { |
| 55 | return isMcpConfigured(config) && config.type === "remote" |
| 56 | } |
| 57 | |
| 58 | function configuredServers(config: ConfigV1.Info) { |
| 59 | return Object.entries(config.mcp ?? {}).filter((entry): entry is [string, McpConfigured] => isMcpConfigured(entry[1])) |
no test coverage detected