MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / writeJsonConfig

Function writeJsonConfig

apps/desktop/src/main/mcp-integrations.ts:155–158  ·  view source on GitHub ↗
(filePath: string, data: JsonMcpConfig)

Source from the content-addressed store, hash-verified

153}
154
155async function writeJsonConfig(filePath: string, data: JsonMcpConfig): Promise<void> {
156 await fsp.mkdir(path.dirname(filePath), { recursive: true })
157 await fsp.writeFile(filePath, JSON.stringify(data, null, 2) + '\n', 'utf8')
158}
159
160function entriesEqual(a: JsonMcpEntry | undefined, b: JsonMcpEntry): boolean {
161 if (!a) return false

Callers 2

installMcpForClientFunction · 0.85
uninstallMcpForClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected