py-code-agent-a2a-gateway
A2A Gateway plugin for Py Code Agent - enables agent-to-agent communication via A2A v0.3.0 protocol.
Features
- Agent Discovery: Exposes
.well-known/agent-card.jsonfor agent capability discovery - JSON-RPC Communication: Implements A2A v0.3.0 JSON-RPC protocol
- Peer Management: Configure and communicate with peer agents
- SSE Streaming: Supports server-sent events for streaming responses
- Bearer Token Auth: Optional authentication for secure agent communication
Installation
# Install from PyPI
pip install py-code-agent-a2a-gateway
# Or install with extra dependencies
pip install py-code-agent-a2a-gateway[all]
Configuration
In your config.yaml:
plugins:
gateway:
a2a:
host: "0.0.0.0"
port: 18800
name: "MyAgent"
description: "My AI coding agent"
token: ${A2A_TOKEN} # Optional: supports ${ENV_VAR} substitution
skills:
- id: "coding"
name: "Coding Assistant"
peers:
- name: "peer-agent"
agentCardUrl: "http://localhost:18801/.well-known/agent-card.json"
token: ${PEER_TOKEN} # Optional
Tools Provided
| Tool | Description |
|---|---|
a2a_list_peers |
List all configured A2A peer agents |
a2a_send_message |
Send a message to an A2A peer agent |
a2a_get_my_card |
Get this agent's A2A Agent Card |
Endpoints
| Endpoint | Method | Description |
|---|---|---|
/.well-known/agent-card.json |
GET | Agent discovery |
/a2a/jsonrpc |
POST | JSON-RPC message handling |
/health |
GET | Health check |
A2A Protocol
This plugin implements the A2A Protocol v0.3.0:
- Agent Card: Standardized agent capability description
- JSON-RPC: Message passing between agents
- Streaming: SSE support for streaming responses
Metadata
Release files for py-code-agent-a2a-gateway 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| py_code_agent_a2a_gateway-0.1.0.tar.gz | 8.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_code_agent_a2a_gateway-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.3 kB
Release files / py_code_agent_a2a_gateway-0.1.0.tar.gz
| Download URL | py_code_agent_a2a_gateway-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb0c7ef263d200493d92a349a4aa4754b1ce789c93c96b61900d74afd5f22b43
|
|
BLAKE2b-256 checksum How to use checksums |
92bb781e9af75f3d20208875a3d214a735d9f55b230c65e30ca3ffbf69d73f21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Release files / py_code_agent_a2a_gateway-0.1.0-py3-none-any.whl
| Download URL | py_code_agent_a2a_gateway-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
364084048dc7143fc3e05dbfe8c1708859961a34a85f95a023dcfa8383c76429
|
|
BLAKE2b-256 checksum How to use checksums |
0f71bf2ba1de2fe9de76800b64afcd9877cf9f6e8faffb8e6acf9eef0961c199
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Security for py-code-agent-a2a-gateway 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.