Agent registered: ag_01HXYZ...
Grant token received, grantId: grnt_01HXYZ...
Tools created: read_calendar, send_email (registry has 2 tools)
--- Invoking tools directly (no ANTHROPIC_API_KEY set) ---
Calendar result: {"date":"today","events":[{"title":"Team standup","time":"9:00 AM"},{"title":"Design review","time":"2:00 PM"}]}
Email result: {"sent":true,"to":"alice@example.com","subject":"Today's events","bodyLength":49}
--- Testing scope enforcement ---
GrantexScopeError caught:
Required scope: storage:delete
Granted scopes: calendar:read, email:send
--- Inspecting grant scopes ---
Scopes in token: calendar:read, email:send
--- Audit trail ---
[success] tool:read_calendar — 2026-03-30T12:00:00.000Z
[success] tool:send_email — 2026-03-30T12:00:01.000Z
Done! Anthropic SDK integration demo complete.