Skip to main content
Each .ts file in app/tools/ is auto-discovered and registered as a tool on both A2A and MCP endpoints.
app/tools/weather.ts

Exports

ExportTypeRequiredDescription
defaulttool()YesThe tool instance
acceptsAcceptsNoPayment config — gates the tool on MCP /mcp. Supports array format for multi-network

Conventions

  • Auto-discovered — All .ts files in app/tools/ are registered automatically
  • Ignored files — Files starting with _ (e.g., _helpers.ts) are skipped
  • Naming — The tool is registered with the filename as its name (e.g., weather.tsweather)