src/routes
Route segments the Mastra plugin mounts under its basePath
(/api/<plugin-name>). Shared between the server’s route
registration and the browser client (MastraPluginClient in
@dbx-tools/ui-mastra) so a relayout - or a rename of a
sub-path - is a one-line change here and the two can never drift.
chat is the official Mastra AI SDK UI stream route and always carries an
agent id. The suggestions and defaultModel segments take an optional
/:agentId suffix; the default agent uses the bare segment. Memory history
and thread management ride Mastra’s native memory routes.
feedback is the plugin-owned POST endpoint the chat UI calls to
log a thumbs / comment assessment against a turn’s MLflow trace (see
feedback.ts); it is not agent-scoped (a trace id identifies the
turn on its own).