mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-30 15:04:16 -07:00
fix(core): explicitly pass messageBus to policy engine for MCP tool saves (#22255)
This commit is contained in:
@@ -188,7 +188,10 @@ export class DiscoveredMCPToolInvocation extends BaseToolInvocation<
|
||||
override getPolicyUpdateOptions(
|
||||
_outcome: ToolConfirmationOutcome,
|
||||
): PolicyUpdateOptions | undefined {
|
||||
return { mcpName: this.serverName };
|
||||
return {
|
||||
mcpName: this.serverName,
|
||||
toolName: this.serverToolName,
|
||||
};
|
||||
}
|
||||
|
||||
protected override async getConfirmationDetails(
|
||||
|
||||
@@ -122,6 +122,7 @@ export interface PolicyUpdateOptions {
|
||||
argsPattern?: string;
|
||||
commandPrefix?: string | string[];
|
||||
mcpName?: string;
|
||||
toolName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user