Skip to content

v2.2.0

Latest

Choose a tag to compare

@benoitc benoitc released this 09 Jun 11:39
81b2c4f

Threads the authenticated principal into tool handlers.

Added

  • Arity-2 tool handlers (Mod:Fun(Args, Ctx)) now receive the auth provider's authenticate/2 result in Ctx under auth_info, so owner-scoped tools can identify the caller. Arity-1 handlers (Mod:Fun(Args)) are unchanged. With barrel_mcp_auth_none the value is the anonymous principal; on paths with no auth provider (stdio) it is undefined.
  • barrel_mcp_protocol:drive_async_plan/3, which threads auth_info into the synchronous tool-call path. drive_async_plan/2 is retained and delegates with auth_info set to undefined.

Full Changelog: https://github.com/barrel-platform/barrel_mcp/blob/main/CHANGELOG.md