require_scope

Function require_scope 

Source
pub fn require_scope(
    state: &ServerState,
    tool: &'static str,
    needed: Scope,
) -> GuardOutcome
Expand description

基础 scope 守卫(用于只读工具)

返回 GuardOutcome::Allow 表示放行。legacy 模式下只读工具全放行。