Goa turns a Go design DSL into servers, clients, validation, and OpenAPI or protobuf specs. One contract can power HTTP, gRPC, JSON-RPC, and MCP-related generation.
Overview
Goa is a design-first framework for building Go services from a single API contract written in Go. Developers describe types, operations, payloads, and validation rules in design packages.
Running goa gen produces transport code, clients, CLI utilities, and specification artifacts while keeping generated code separate from handwritten business logic. The same service interface can be exposed over HTTP, gRPC, and JSON-RPC without duplicating models.
Documentation and skills guide agent-assisted workflows: change the design, regenerate, then implement handlers outside the generated tree. Goa-AI extends the stack for tool-using agents and MCP servers.
The workflow reduces drift between handlers, clients, validation, and published API descriptions because all of those layers derive from one design source.
Key features
- Go design DSL
- HTTP gRPC JSON-RPC generation
- Built-in validation
- OpenAPI and protobuf output
- Generated clients and CLI
- Agent-oriented workflow
- Goa-AI extensions
Use cases
- Contract-first microservices
- Multi-transport APIs
- Agent-friendly Go services
- Consistent API documentation