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

Method permission_decision

core/src/safety_gate.rs:130–140  ·  view source on GitHub ↗
(
        &self,
        tool_name: &str,
        args: &serde_json::Value,
    )

Source from the content-addressed store, hash-verified

128 }
129
130 pub(crate) fn permission_decision(
131 &self,
132 tool_name: &str,
133 args: &serde_json::Value,
134 ) -> PermissionDecision {
135 self.config
136 .permission_checker
137 .as_ref()
138 .map(|checker| checker.check(tool_name, args))
139 .unwrap_or(PermissionDecision::Ask)
140 }
141
142 async fn confirmation_decision(&self, tool_name: &str) -> ToolGateDecision {
143 let Some(cm) = &self.config.confirmation_manager else {

Callers 1

decideMethod · 0.80

Calls 1

checkMethod · 0.45

Tested by

no test coverage detected