MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / describeEntry

Function describeEntry

src/commands/migrate.ts:334–341  ·  view source on GitHub ↗
(entry: MigrationEntry)

Source from the content-addressed store, hash-verified

332
333/** Short summary of a server for the picker / dry-run output. */
334export 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

Callers 2

runMigrateFunction · 0.85
McpMigrationPickerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected