MCPcopy Create free account
hub / github.com/arctic-cli/interface / remove

Function remove

packages/arctic/src/mcp/auth.ts:49–55  ·  view source on GitHub ↗
(mcpName: string)

Source from the content-addressed store, hash-verified

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)) ?? {}

Callers

nothing calls this directly

Calls 1

allFunction · 0.70

Tested by

no test coverage detected