(mcpName: string)
| 47 | } |
| 48 | |
| 49 | export async function remove(mcpName: string): Promise<void> { |
| 50 | const file = Bun.file(filepath) |
| 51 | const data = await all() |
| 52 | delete data[mcpName] |
| 53 | await Bun.write(file, JSON.stringify(data, null, 2)) |
| 54 | await fs.chmod(file.name!, 0o600) |
| 55 | } |
| 56 | |
| 57 | export async function updateTokens(mcpName: string, tokens: Tokens): Promise<void> { |
| 58 | const entry = (await get(mcpName)) ?? {} |