( context: ToolPermissionContext, tool: Pick<Tool, 'name' | 'mcpInfo'>, )
| 289 | * Check if the tool is listed in the always deny rules |
| 290 | */ |
| 291 | export function getDenyRuleForTool( |
| 292 | context: ToolPermissionContext, |
| 293 | tool: Pick<Tool, 'name' | 'mcpInfo'>, |
| 294 | ): PermissionRule | null { |
| 295 | return getDenyRules(context).find(rule => toolMatchesRule(tool, rule)) || null |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Check if the tool is listed in the always ask rules |
no test coverage detected