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"), |
|
}, |
|
); |
|
} |
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.
rulesync/src/core/mcp-generator.ts
Lines 67 to 85 in bb97f89