Skip to main content

Client Examples

These templates are external clients, not agents — they demonstrate connecting to an already-running AgentVisor instance over one of its API transports, from outside the sandbox entirely. Use them to test a transport you've enabled, or as a starting point for your own integration code.

Examples

ExampleDescription
A2A ClientConnect to AgentVisor's A2A transport — curl examples and a Python client for Agent Card discovery, task creation, and streaming
MCP ClientConnect to AgentVisor's MCP transport from Claude Desktop, Cursor, or a custom Python client

Prerequisites

Both examples assume an AgentVisor agent is already running with the relevant transport enabled:

agentvisor template create langgraph/chatbot-agent
cd chatbot-agent
docker compose up -d

# Enable the transport you want to test (disabled by default)
AGENTVISOR_API_A2A_ENABLED=true agentvisor serve .
# or
AGENTVISOR_API_MCP_ENABLED=true agentvisor serve .

Then, in a separate directory, scaffold the client template:

agentvisor template create clients/a2a-client
cd a2a-client

See Also