add excludeTools flag to settings.json config (#957)

This commit is contained in:
JingboWang1997-1
2025-06-11 14:32:23 -07:00
committed by GitHub
parent 122678cc09
commit 6ecdecbdcc
5 changed files with 24 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ vi.mock('@gemini-cli/core', async () => {
getQuestion: () => params.question,
getFullContext: () => params.fullContext,
getCoreTools: () => params.coreTools,
getExcludeTools: () => params.excludeTools,
getToolDiscoveryCommand: () => params.toolDiscoveryCommand,
getToolCallCommand: () => params.toolCallCommand,
getMcpServerCommand: () => params.mcpServerCommand,

View File

@@ -175,6 +175,7 @@ export async function loadCliConfig(
question: argv.prompt || '',
fullContext: argv.all_files || false,
coreTools: settings.coreTools || undefined,
excludeTools: settings.excludeTools || undefined,
toolDiscoveryCommand: settings.toolDiscoveryCommand,
toolCallCommand: settings.toolCallCommand,
mcpServerCommand: settings.mcpServerCommand,

View File

@@ -29,6 +29,7 @@ export interface Settings {
theme?: string;
sandbox?: boolean | string;
coreTools?: string[];
excludeTools?: string[];
toolDiscoveryCommand?: string;
toolCallCommand?: string;
mcpServerCommand?: string;