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

Function readRawUserConfig

src/mcp/config-writer.ts:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90async function readRawUserConfig(): Promise<any> {
91 try {
92 const raw = await fs.readFile(QODEX_CONFIG_FILE, 'utf-8');
93 return (yaml.load(raw) as any) ?? {};
94 } catch (e: any) {
95 if (e?.code === 'ENOENT') return {};
96 throw e;
97 }
98}
99
100async function writeRawUserConfig(obj: any): Promise<void> {
101 const text = yaml.dump(obj, { indent: 2, lineWidth: 100 });

Callers 3

addServerToConfigFunction · 0.85
removeServerFromConfigFunction · 0.85
listConfiguredServersFunction · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected