Skip to content

Function: useMastraConfig()

useMastraConfig(): object

Read the Mastra plugin’s clientConfig() payload (basePath, default agent, registered agent list). One call per render; values are cached at boot by usePluginClientConfig.

object

agents: string[]

optional backgroundTurns?: boolean

basePath: string

optional chatAlwaysAvailable?: boolean

defaultAgent: string

optional feedbackEnabled?: boolean