mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 21:03:05 -07:00
feat(policy): Propagate Tool Annotations for MCP Servers (#20083)
This commit is contained in:
@@ -54,11 +54,14 @@ export async function checkPolicy(
|
||||
? toolCall.tool.serverName
|
||||
: undefined;
|
||||
|
||||
const toolAnnotations = toolCall.tool.toolAnnotations;
|
||||
|
||||
const result = await config
|
||||
.getPolicyEngine()
|
||||
.check(
|
||||
{ name: toolCall.request.name, args: toolCall.request.args },
|
||||
serverName,
|
||||
toolAnnotations,
|
||||
);
|
||||
|
||||
const { decision } = result;
|
||||
|
||||
Reference in New Issue
Block a user