fix(core): explicitly pass messageBus to policy engine for MCP tool saves (#22255)

This commit is contained in:
Abhi
2026-03-12 21:31:13 -04:00
committed by GitHub
parent 97bc3f28c5
commit 1d2585dba6
8 changed files with 43 additions and 21 deletions
+4 -1
View File
@@ -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(
+1
View File
@@ -122,6 +122,7 @@ export interface PolicyUpdateOptions {
argsPattern?: string;
commandPrefix?: string | string[];
mcpName?: string;
toolName?: string;
}
/**