Threads the authenticated principal into tool handlers.
Added
- Arity-2 tool handlers (
Mod:Fun(Args, Ctx)) now receive the auth provider'sauthenticate/2result inCtxunderauth_info, so owner-scoped tools can identify the caller. Arity-1 handlers (Mod:Fun(Args)) are unchanged. Withbarrel_mcp_auth_nonethe value is the anonymous principal; on paths with no auth provider (stdio) it isundefined. barrel_mcp_protocol:drive_async_plan/3, which threadsauth_infointo the synchronous tool-call path.drive_async_plan/2is retained and delegates withauth_infoset toundefined.
Full Changelog: https://github.com/barrel-platform/barrel_mcp/blob/main/CHANGELOG.md