examples/ directory. Each example follows the standard aixyz app/ directory structure and can be run locally.
Running an Example
http://localhost:3000 with all protocol endpoints enabled.
Auto-Generated Server Examples
These agents useapp/agent.ts + app/tools/ only. No app/server.ts — the server is auto-generated by the build pipeline.
| Example | Description |
|---|---|
agent-boilerplate | Unit conversion agent (length, weight, temperature) with three tools |
agent-price-oracle | CoinGecko price feeds — token prices, new listings, top gainers/losers |
agent-chainlink | Chainlink price feeds on Ethereum mainnet |
agent-job-hunter | Remote job search via Jobicy API |
Custom Server Examples
These useapp/server.ts to manually wire up A2A, MCP, and x402.
| Example | Description |
|---|---|
agent-with-custom-server | Minimal custom server reference |
agent-travel | Flight search with Stripe payments integration |
agent-byo-facilitator | Bring-your-own x402 facilitator via app/accepts.ts |
Testing Example
| Example | Description |
|---|---|
agent-with-tests | Testing patterns with bun:test — deterministic and non-deterministic tests |
Test Pattern
Theagent-with-tests example demonstrates how to test agents: