MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / removeServerFromConfig

Function removeServerFromConfig

src/mcp/config-writer.ts:121–127  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

119
120/** Remove a server entry. Returns true if it existed. */
121export async function removeServerFromConfig(id: string): Promise<boolean> {
122 const cfg = await readRawUserConfig();
123 if (!cfg.mcp?.servers?.[id]) return false;
124 delete cfg.mcp.servers[id];
125 await writeRawUserConfig(cfg);
126 return true;
127}
128
129/** List configured server ids from user config. */
130export async function listConfiguredServers(): Promise<string[]> {

Callers 1

index.tsFile · 0.85

Calls 2

readRawUserConfigFunction · 0.85
writeRawUserConfigFunction · 0.85

Tested by

no test coverage detected