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

Function writeRawUserConfig

src/mcp/config-writer.ts:100–103  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

98}
99
100async function writeRawUserConfig(obj: any): Promise<void> {
101 const text = yaml.dump(obj, { indent: 2, lineWidth: 100 });
102 await writeFileAtomic(QODEX_CONFIG_FILE, text);
103}
104
105/** Add (or overwrite) a server entry under mcp.servers.<id> in user config. */
106export async function addServerToConfig(

Callers 2

addServerToConfigFunction · 0.85
removeServerFromConfigFunction · 0.85

Calls 1

writeFileAtomicFunction · 0.85

Tested by

no test coverage detected