PluginContext as its first argument. It provides authentication, authorization context, approval requests, and logging.
Reference
PluginContext Reference
The five properties available to tool handlers.
Every tool handler receives a
The authenticated user’s ID. Use this to scope operations to the current user.
The user’s role, including the glob patterns that determine which tools they can access.
Retrieve an OAuth access token for a provider. The token is automatically vended and refreshed by the server.
Request user approval before performing a destructive action. See Elicitation Guide.
Structured logging with optional metadata.