MCPcopy
hub / github.com/nowork-studio/NotFair / removeHiddenMcpPresetKey

Function removeHiddenMcpPresetKey

notfair-cmo/src/server/db/projects.ts:324–331  ·  view source on GitHub ↗
(slug: string, key: string)

Source from the content-addressed store, hash-verified

322}
323
324export function removeHiddenMcpPresetKey(slug: string, key: string): void {
325 const current = getHiddenMcpPresetKeys(slug);
326 const next = current.filter((k) => k !== key);
327 if (next.length === current.length) return;
328 getDb()
329 .prepare("UPDATE projects SET hidden_mcp_preset_keys_json = ? WHERE slug = ?")
330 .run(JSON.stringify(next), slug);
331}

Callers 1

addUserMcpServerActionFunction · 0.85

Calls 2

getDbFunction · 0.90
getHiddenMcpPresetKeysFunction · 0.85

Tested by

no test coverage detected