server command group provides functionality to run local servers for development and testing, including a full A2A agent server and a webhook server for push notifications.
agent
Start a local A2A agent server powered by an LLM. The server implements the A2A protocol and can be used for testing, development, or running a local agent.Options
Host address to bind the server to. Default:
0.0.0.0 (all interfaces)Port number to bind the server to. Default:
8000Require API key authentication. Use
--auth to enable, --no-auth to disable. Default: disabledSpecific API key to use for authentication. If
--auth is enabled but no key is provided, one will be auto-generated and displayed at startup.Model to use for the agent. Supports Ollama models (e.g.,
llama3.2:1b, qwen3) and other LiteLLM-compatible models (e.g., gemini-2.0-flash). Short form: -mIf not specified, the agent will use a default model or attempt to detect available models.
Examples
Server Details
The agent server provides:- Full A2A protocol implementation: Supports message sending, task management, streaming, and push notifications
- LLM-powered responses: Uses Google ADK with LiteLLM for model flexibility
- Agent card endpoint: Automatically generates and serves an agent card at the root endpoint
- Session management: Maintains conversation context across messages
- Authentication: Optional API key authentication
Endpoints
When running, the server exposes:GET /- Agent cardPOST /messages- Send messagesGET /tasks/{task_id}- Get task statusPOST /tasks/{task_id}/cancel- Cancel taskGET /tasks/{task_id}/stream- Resubscribe to task streamPUT /tasks/{task_id}/notification- Set push notification configGET /tasks/{task_id}/notification- Get push notification config
Model Configuration
The agent supports multiple model backends: Ollama Models (local):Testing the Server
Once running, you can test the server:push
Start a local webhook server for receiving push notifications from A2A agents. Useful for development and testing push notification flows.Options
Host address to bind the server to. Default:
127.0.0.1 (localhost only)Port number to bind the server to. Default:
9000Examples
Server Details
The webhook server:- Accepts POST requests at any path
- Logs all incoming webhook notifications
- Displays notification payloads in a readable format
- Responds with 200 OK to acknowledge receipt
Using with Agents
When sending messages, specify the push webhook URL:The webhook server is for development only. For production, use a proper webhook endpoint with authentication and persistence.