(slug: string, key: string)
| 322 | } |
| 323 | |
| 324 | export 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 | } |
no test coverage detected