MCPcopy
hub / github.com/codeaashu/claude-code / cleanupSecureStorage

Function cleanupSecureStorage

src/cli/handlers/mcp.tsx:79–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 // Look up config before removing so we can clean up secure storage
78 const serverBeforeRemoval = getMcpConfigByName(name);
79 const cleanupSecureStorage = () => {
80 if (serverBeforeRemoval && (serverBeforeRemoval.type === 'sse' || serverBeforeRemoval.type === 'http')) {
81 clearServerTokensFromLocalStorage(name, serverBeforeRemoval);
82 clearMcpClientConfig(name, serverBeforeRemoval);
83 }
84 };
85 try {
86 if (options.scope) {
87 const scope = ensureConfigScope(options.scope);

Callers 1

mcpRemoveHandlerFunction · 0.85

Calls 2

clearMcpClientConfigFunction · 0.85

Tested by

no test coverage detected