generated from nhcarrigan/template
feat: add ENABLE_CLAUDEAI_MCP_SERVERS opt-out setting
Adds a toggle in the MCP Servers settings section to control whether Claude Code connects to MCP servers configured in Claude.ai. When disabled, sets ENABLE_CLAUDEAI_MCP_SERVERS=false. Also fixes a pre-existing omission of disable_cron from the TypeScript HikariConfig interface. Closes #210
This commit is contained in:
@@ -320,6 +320,11 @@ impl WslBridge {
|
||||
cmd.env("CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS", "1");
|
||||
}
|
||||
|
||||
// Opt out of claude.ai MCP servers if requested
|
||||
if !options.enable_claudeai_mcp_servers {
|
||||
cmd.env("ENABLE_CLAUDEAI_MCP_SERVERS", "false");
|
||||
}
|
||||
|
||||
cmd
|
||||
} else {
|
||||
// Running on Windows - use wsl with bash login shell to ensure PATH is loaded
|
||||
@@ -382,6 +387,11 @@ impl WslBridge {
|
||||
claude_cmd.push_str("CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1 ");
|
||||
}
|
||||
|
||||
// Opt out of claude.ai MCP servers if requested
|
||||
if !options.enable_claudeai_mcp_servers {
|
||||
claude_cmd.push_str("ENABLE_CLAUDEAI_MCP_SERVERS=false ");
|
||||
}
|
||||
|
||||
claude_cmd.push_str(
|
||||
"claude --output-format stream-json --input-format stream-json --verbose",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user