pub struct McpScopeCheckControl;Expand description
Verifies that MCP tool calls stayed within the allowed scope defined in the agent spec. Checks both positive allow-lists (with wildcard support) and forbidden server deny-lists.
Trait Implementations§
Source§impl Control for McpScopeCheckControl
impl Control for McpScopeCheckControl
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description for SARIF rule output.
Source§fn evaluate(&self, evidence: &EvidenceBundle) -> Vec<ControlFinding>
fn evaluate(&self, evidence: &EvidenceBundle) -> Vec<ControlFinding>
Evaluates the evidence bundle and returns one finding per subject.
Source§fn tsc_criteria(&self) -> &'static [&'static str]
fn tsc_criteria(&self) -> &'static [&'static str]
SOC2 Trust Services Criteria this control maps to (e.g., &[“CC6.1”, “CC8.1”]).
Returns empty slice for controls not mapped to SOC2.
Source§fn remediation_hint(&self) -> Option<&'static str>
fn remediation_hint(&self) -> Option<&'static str>
Actionable remediation hint shown when the control fails or needs review.
Auto Trait Implementations§
impl Freeze for McpScopeCheckControl
impl RefUnwindSafe for McpScopeCheckControl
impl Send for McpScopeCheckControl
impl Sync for McpScopeCheckControl
impl Unpin for McpScopeCheckControl
impl UnsafeUnpin for McpScopeCheckControl
impl UnwindSafe for McpScopeCheckControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more