Skip to main content

Expose your application

Expose your models and operations through the interfaces your callers need. Start with the operation contract, then choose the transports to enable. An application can offer several interfaces, with protocol-specific configuration and streaming support.

InterfaceUse it forWhat callers use
RESTHTTP APIs, browser clients, and integrationsRoutes, JSON requests, and OpenAPI
GraphQLClients that select fields and follow model relationshipsQueries, mutations, and subscriptions
MCPAI assistants and agent integrationsTools and model resources
CLILocal administration and remote operation callsCommands and typed arguments
gRPCTyped service-to-service calls and streamingGenerated Protobuf contracts over HTTP/2

Start with the domain​

Define your models, their actions, and service operations before choosing how to expose them. Keep domain behavior in those implementations so multiple interfaces can call the same behavior.

Choose what callers can access​

Configure each transport's exposed operations and authentication for its intended callers. Publishing an endpoint does not replace authorization. For streaming, compare the supported modes in Operations: not every protocol supports the same interaction patterns.

Connect clients​

The frontend SDK provides typed model and operation clients. The individual guides below link to transport configuration, examples, and module references.