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

Function destinationHas

src/commands/migrate.ts:346–349  ·  view source on GitHub ↗

True when `name` already exists in the user-scope mcpServers block of * OrbCode's settings. This is the only conflict that matters — the CLI and * TUI both target user scope.

(name: string)

Source from the content-addressed store, hash-verified

344 * OrbCode's settings. This is the only conflict that matters — the CLI and
345 * TUI both target user scope. */
346function destinationHas(name: string): boolean {
347 const settings = loadSettings();
348 return Boolean(settings.mcpServers && name in settings.mcpServers);
349}
350
351/**
352 * Apply a set of migration entries to `~/.orbcode/settings.json` (user scope).

Callers 1

applyMigrationFunction · 0.85

Calls 1

loadSettingsFunction · 0.85

Tested by

no test coverage detected