MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / writeFullSettings

Function writeFullSettings

src/mcp/config.ts:217–220  ·  view source on GitHub ↗

Write a settings.json file, preserving existing keys.

(filePath: string, data: Record<string, unknown>)

Source from the content-addressed store, hash-verified

215
216/** Write a settings.json file, preserving existing keys. */
217function writeFullSettings(filePath: string, data: Record<string, unknown>): void {
218 fs.mkdirSync(path.dirname(filePath), { recursive: true })
219 fs.writeFileSync(filePath, JSON.stringify(data, null, "\t") + "\n", { mode: 0o600 })
220}
221
222/** Path to the settings file for a given scope. */
223function settingsPathForScope(cwd: string, scope: McpScope): string {

Callers 2

addMcpServerFunction · 0.85
removeMcpServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected