pub fn require_scope(
state: &ServerState,
tool: &'static str,
needed: Scope,
) -> GuardOutcomeExpand description
基础 scope 守卫(用于只读工具)
返回 GuardOutcome::Allow 表示放行。legacy 模式下只读工具全放行。
pub fn require_scope(
state: &ServerState,
tool: &'static str,
needed: Scope,
) -> GuardOutcome基础 scope 守卫(用于只读工具)
返回 GuardOutcome::Allow 表示放行。legacy 模式下只读工具全放行。