aixyz dev and the framework auto-generates a server from them.
Directory Layout
Key Files
| File | Required | Description |
|---|---|---|
aixyz.config.ts | Yes | Agent metadata, payment config, and skills |
app/agent.ts | Yes* | Agent definition using Vercel AI SDK |
app/tools/*.ts | No | Tool implementations, auto-discovered by the build |
app/server.ts | No | Custom server — overrides auto-generation entirely |
app/accepts.ts | No | Custom x402 facilitator for payment verification |
app/erc-8004.ts | No | ERC-8004 identity registration and trust config |
app/agent.test.ts | No | Agent tests using bun:test |
app/icon.png | No | Agent icon served as a static asset |
vercel.json | No | Vercel deployment configuration |
app/server.ts is provided.
How It Works
The build pipeline scans theapp/ directory to auto-generate a server:
- Reads
aixyz.config.tsfor agent metadata and skills - Imports
app/agent.tsfor the agent definition - Discovers all
.tsfiles inapp/tools/(excluding_prefixed files) - Wires up A2A, MCP, and x402 endpoints automatically
- A2A at
/agentand/.well-known/agent-card.json - MCP at
/mcp - x402 payment verification on gated endpoints
app/server.ts to override auto-generation. See the Custom Server template for an example.