Skip to main content

Overview

The @grantex/a2a package bridges the Google A2A protocol with Grantex delegated authorization, enabling secure agent-to-agent communication with grant token authentication.

Installation

Client — Calling A2A Agents

Send tasks to remote A2A agents with automatic grant token auth:

Server Middleware — Validating Incoming Tokens

Validate Grantex grant tokens on incoming A2A requests:

Agent Card Builder

Generate A2A-compliant agent cards with Grantex auth configuration:

JWT Utilities

Decode grant tokens offline (without verification):
Last modified on March 2, 2026