Skip to main content

Module role_guard

Module role_guard 

Source
Expand description

Role-based tool access guard for the MCP server pipeline.

Checks the active role’s tool policy before dispatching a tool call. Returns Some(CallToolResult) with a denial message if blocked, None if allowed.

Structs§

RoleCheckResult

Functions§

check_tool_access
into_call_tool_result