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

Method allow

core/src/permissions/policy.rs:79–82  ·  view source on GitHub ↗

Add an allow rule

(mut self, rule: &str)

Source from the content-addressed store, hash-verified

77
78 /// Add an allow rule
79 pub fn allow(mut self, rule: &str) -> Self {
80 self.allow.push(PermissionRule::new(rule));
81 self
82 }
83
84 /// Add an ask rule
85 pub fn ask(mut self, rule: &str) -> Self {

Calls

no outgoing calls