Skip to content

Do not overwrite ~/.claude/settings.json #13

@abeyuya

Description

@abeyuya

I don't think there is usually a case where you want to override the global settings.json with mcp settings under a specific repository, so I think this code should be removed.

It should at least be off by default and only override the global settings.json if explicitly stated in the options.

if (!baseDir) {
generators.push(
{
tool: "claude-global",
path: path.join(os.homedir(), ".claude", "settings.json"),
generate: () => generateClaudeMcp(config, "global"),
},
{
tool: "cursor-global",
path: path.join(os.homedir(), ".cursor", "mcp.json"),
generate: () => generateCursorMcp(config, "global"),
},
{
tool: "gemini-global",
path: path.join(os.homedir(), ".gemini", "settings.json"),
generate: () => generateGeminiCliMcp(config, "global"),
},
);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions