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