aixyz dev and the framework auto-generates a server from them.
Directory Layout
requiredMust be providedoptional overrideProvide to override auto-generated behaviorKey Files
* If omitted, the build skips A2A endpoints and only serves tools via MCP.
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 main agent definition (if present) - Discovers all
.tsfiles inapp/agents/for sub-agents (each gets its own A2A endpoint) - Discovers all
.tsfiles inapp/tools/(excluding_prefixed files) - Registers
SessionPlugin(with custom store fromapp/session.tsif present) - Wires up A2A (when agents exist), MCP (when tools exist), and x402 endpoints automatically
- A2A at
/agentand/.well-known/agent-card.json(main agent) - A2A at
/{name}/agentand/{name}/.well-known/agent-card.json(per sub-agent inapp/agents/) - MCP at
/mcp - x402 payment verification on gated endpoints
app/server.ts to override auto-generation. See the Custom Server template for an example.