toolAccess
Function: toolAccess()
toolAccess(
context,operationId):Promise<ToolAccess>
Defined in: packages/mcp/src/server.ts:97
Authorizers stop at the first refusal: a scope refusal may hide another authorizer's refusal. A tool is out of scope only when the caller could call it with the operation added to the token scope.
Parameters
context
SimpleOperationContext
caller context; authorizers (such as IAM) cache the caller's user on it across a listing
operationId
string
operation behind the tool
Returns
Promise<ToolAccess>
the caller's access to the tool