Skip to content

Serving & Mocking

serve spins up a local, A2A-compliant mock agent for testing and development. It lets you exercise the full discover → send → get loop without a real agent.

Terminal window
a2acli serve --echo --port 9001

Point another terminal at it with --service-url http://localhost:9001 (which is also the default), then run discover and send against it.

Flag Default Description
--echo — Echo mode: return the user’s message as the response
--port 9001 Listen port
--host 127.0.0.1 Bind address
--exec — Exec mode — not yet supported
--proxy — Proxy mode — not yet supported