Let agents reason. Let Goa generate.

For coding agents
Goa gives coding agents less code to write and one contract to reason from. Edit design/*.go, run goa gen, and let the Go compiler flag every handler or client that needs an update.
For AI products
Compile HTTP, gRPC, JSON-RPC, and OpenAPI 3.2 servers with Goa, and add Goa-AI for tool-using agents, Streamable HTTP MCP servers, and clustered tool registries.
design/*.go Single Go contract
  • Payloads & validation
  • HTTP · gRPC · JSON-RPC
  • MCP tools & schemas
  • Agent policies & prompts

Get started

Go 1.27+ · Claude Code, Codex, Cursor & more · Setup guide →

1. Install

npx skills add goadesign/goa --skill goa-service-designer

2. Prompt your agent

Use goa-service-designer to create design/catalog.go with HTTP and gRPC endpoints, run go run goa.design/goa/v3/cmd/goa@latest gen example.com/catalog/design, implement Lookup, and test it.

Trusted by Engineering Teams Worldwide

Open source · MIT licensed · In production since 2016

Why contract generation

Choose a design example
design/catalog.goDesign excerpt
var LookupPayload = Type("LookupPayload", func() {
    Field(1, "sku", String, func() { Pattern("^[A-Z0-9-]+$") })
    Required("sku")
})
var _ = Service("catalog", func() {
    Error("not_found", ErrorResult)
    JSONRPC(func() { POST("/rpc") })
    Method("lookup", func() {
        Payload(LookupPayload)
        Result(Product)
        Error("not_found")
        HTTP(func() { GET("/products/{sku}") })
        GRPC(func() {})
        JSONRPC(func() {})
    })
})
goa gen example.com/catalog/design
// Implement Lookup -> GET /products/BOOK-1 -> 200 OK Lookup(ctx context.Context, p *LookupPayload) (*Product, error)

Generated in gen/ (0 LLM tokens)

  • HTTP + gRPC + JSON-RPC
  • Typed clients
  • Service interfaces
  • Validation + codecs
  • OpenAPI + Protocol Buffers
  • Command-line clients
design/catalog.goDesign excerpt
Agent("assistant", "Answer product questions", func() {
    RunPolicy(func() {
        DefaultCaps(MaxToolCalls(6))
    })
    Use("catalog", func() {
        Tool("lookup", "Find a product by SKU", func() {
            Args(LookupPayload)
            Return(Product)
            BindTo("lookup")
        })
    })
})
goa gen example.com/catalog/design
// Local in-memory (0 API keys in tests) or Temporal assistant.RegisterAssistantAgent(ctx, rt, cfg)

Generated in gen/ (0 LLM tokens)

  • Tool JSON schemas
  • Typed payload codecs
  • Service bindings
  • Typed tool descriptors
  • Runtime registrations
  • AGENTS_QUICKSTART.md
design/support.goDesign excerpt
Agent("support", "Answer refund questions", func() {
    SystemPrompt(func() {
        Description("Refund policy")
        Args(func() {
            Attribute("account_name", String)
            Attribute("refund_limit", Int)
            Required("account_name", "refund_limit")
        })
        Template("You help {{ .AccountName }} customers. " +
            "Approve refunds up to ${{ .RefundLimit }}.")
    })
})
goa gen example.com/support/design
// Preview on goa-ai@fb00df9 (post-v0.90.0); rendered with typed Go structs support.RenderSystemPrompt(ctx, in.Agent, support.SystemPromptArgs{...})

Generated in gen/ (0 LLM tokens)

  • Template checks at goa gen
  • Typed render functions
  • Prompt registrations
  • Scoped runtime overrides
Inspect the full 54-line catalog example (57 generated files) → Read the prompt management guide →
54 lines of DSL → 57 generated files
In the catalog walkthrough, 54 lines of design/catalog.go compile 5,000+ lines of Go transports, OpenAPI, Protobuf, and tool schemas in zero LLM tokens.
One contract to load into context
Payloads, validations, and routes live in design/*.go. Your coding agent reads one contract instead of four hand-wired layers.
Compiler errors catch drift immediately
Update design/ and rerun goa gen. Go flags every handler, client, and tool executor whose signature changed.

Goa for services. Goa-AI for agents and MCP.

Goa

One contract. Every transport.

Declare payloads, validations, and errors once in Go. Generate standard net/http, gRPC, and JSON-RPC servers, typed clients, and OpenAPI 3 / Protobuf specs.

HTTP · gRPC · JSON-RPC
Servers, typed Go clients, and CLI clients compiled from one design.
Streaming built into the design
WebSocket, Server-Sent Events, gRPC streaming.
Validation at the transport edge
Required fields, patterns, ranges, error status codes, OpenAPI 3.2, and Protocol Buffers.
Explore GoaGitHub

Goa-AI

Typed agents, MCP servers, and durable runs.

Build tool-using AI agents and MCP servers from the same Go DSL. Test locally in memory, then run on OpenAI, Anthropic, Bedrock, Vertex AI, or Temporal.

Service validation & tenant scoping
Expose existing Goa methods as tools, bind tenant IDs server-side so prompts cannot spoof them, and cap large paginated responses.
Multi-agent trees & deterministic evals
Compose child agents with bounded budgets and test tool trajectories deterministically without live LLM calls.
Human sign-off, streaming & standalone MCP
Pause sensitive tool calls for human approval, stream typed UI events to clients, or run MCP servers standalone.
Explore Goa-AIGitHub

Create MCP servers from your services.

Your Goa designdesign/catalog.go
Service("catalog", func() {
    MCP("catalog", "1.0.0")
    JSONRPC(func() { POST("/mcp") })

    Method("lookup", func() {
        Payload(LookupPayload) // Pattern("^[A-Z0-9-]+$")
        Result(Product)
        Tool("lookup",
            "Find a product by SKU")
    })
})
goa gen
Generated MCP interfaceOne typed contract
HTTP server
Streamable HTTP MCP handlers wired to your Goa endpoints.
Typed clients
Call MCP tools and read resources via generated Go methods.
Tool schemas
Input and output JSON Schemas derived from LookupPayload.
Validation and codecs
Reject malformed arguments with retry hints before your handler runs.
LookupPayload’s regex compiles into both HTTP/gRPC decoders and MCP tools/list inputSchema.
One contract to review
Review types and auth in design/catalog.go, implement Lookup once, and regenerate gen/ when rules change.
Clear work for coding agents
Your coding agent edits design/ and internal/ while gen/ stays read-only, turning schema drift into Go compiler errors.
Build an MCP server

Supports OAuth resource servers, interactive input exchanges, durable Tasks, MCP Apps, and Skills.

Host a registry for your tools.

Publish toolsets to one clustered gateway over Redis and Pulse so agents load schemas on demand.

catalogsearchbilling
Your tool registryDiscover schemas · Route calls · Track health

Your agents and applications

Host a tool registry

How Goa & Goa-AI compare

CapabilityGoa & Goa-AIbuf / Connect + oapi-codegenGo MCP SDKs (go-sdk, mcp-go)Python / TS Agent SDKs
Source of truth One Go design packageSeparate .proto and OpenAPI YAMLStruct tags per handlerPydantic or Zod in app code
HTTP, gRPC & OpenAPI Compiled in 0 model tokensSplit across separate generatorsMCP transport onlySeparate web framework
MCP servers & schemas Derived from the same serviceHand-written adapter layerDuplicated from HTTP typesSeparate Python or TS runtime
Agents & durable runs Typed Go binary + TemporalOut of scopeOut of scopeInterpreted Python or TS runtime

Companion libraries and multi-agent tools

Chorus
Local MCP server that gives Claude Code, Codex, and Gemini shared channels, direct messages, and pinned plans at zero idle tokens.
Highbay
Guided browser workspace where you confirm a change card and architecture diagram while one agent builds and a second agent tests in clean Git worktrees.
Pulse · Clue · Model
Redis event streams and worker pools (Pulse), OpenTelemetry tracing and health checks (Clue), and C4 architecture diagrams in Go (Model).

Questions before you start

Can I adopt Goa incrementally, and do I commit gen/?
Yes to both. goa gen emits standard net/http and google.golang.org/grpc code you can mount alongside existing routes and commit in gen/.
How do non-Go clients call Goa, and when do I add Goa-AI?
TypeScript, Python, and mobile apps use the generated OpenAPI 3.2 and .proto specs. Add Goa-AI when exposing MCP tools or running product agents.
Can I use Goa-AI just to expose an MCP server?
Yes. Add MCP(...) and Tool(...) to a Goa service to generate JSON Schemas and Streamable HTTP handlers without an agent loop.
When is Goa not a fit, and how should we evaluate it?
Skip Goa for throwaway scripts. For multi-endpoint services, compare one real feature end to end starting from the catalog walkthrough.

Sponsors