MCPcopy Create free account
hub / github.com/AI45Lab/Code / add_denied_tools

Function add_denied_tools

core/src/subagent.rs:840–845  ·  view source on GitHub ↗
(mut policy: PermissionPolicy, tools: &[String])

Source from the content-addressed store, hash-verified

838}
839
840fn add_denied_tools(mut policy: PermissionPolicy, tools: &[String]) -> PermissionPolicy {
841 for tool in tools {
842 policy = policy.deny(&tool_name_to_permission(tool));
843 }
844 policy
845}
846
847fn validate_agent_name(name: &str) -> anyhow::Result<()> {
848 if name.trim().is_empty() {

Calls 2

tool_name_to_permissionFunction · 0.85
denyMethod · 0.80

Tested by

no test coverage detected