(entry: MigrationEntry)
| 332 | |
| 333 | /** Short summary of a server for the picker / dry-run output. */ |
| 334 | export function describeEntry(entry: MigrationEntry): string { |
| 335 | const cfg = entry.config; |
| 336 | if (cfg.type === "http" || cfg.type === "sse") { |
| 337 | return `${cfg.type} ${cfg.url}`; |
| 338 | } |
| 339 | const args = cfg.args ?? []; |
| 340 | return `stdio ${cfg.command}${args.length ? " " + args.join(" ") : ""}`; |
| 341 | } |
| 342 | |
| 343 | /** True when `name` already exists in the user-scope mcpServers block of |
| 344 | * OrbCode's settings. This is the only conflict that matters — the CLI and |
no outgoing calls
no test coverage detected