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[]

basePath: string

chatAlwaysAvailable: boolean

defaultAgent: string

feedbackEnabled: boolean