The building blocks
Redopis the servertool(...)handles actionsresource(...)exposes readable dataprompt(...)exposes reusable prompt materialctxis mutable per-request staterequestis transport metadata
The shape of one request
- a client invokes a tool
- Redop builds request context
- hooks and middleware run
- the handler returns a serializable result
- the transport sends that result back to the client
What Redop is opinionated about
- Bun-first runtime
- one fluent API for HTTP and stdio
- schemas and TypeScript inference living close to the tool definition