config
Plugin configuration types and shared RequestContext keys.
Owns the typed MastraPluginConfig (the plugin’s slice of AppKit config) and MASTRA_CONFIG_SCHEMA, the JSON Schema the manifest publishes for it so scaffolding tools and agents can read the option set.
Precedence per field is explicit plugin config, then the environment variable named on the field, then a built-in default.
Kept in a leaf module so plugin.ts, server.ts, model.ts, and
memory.ts can import them without creating a cycle.
Interfaces
Section titled “Interfaces”Type Aliases
Section titled “Type Aliases”Variables
Section titled “Variables”- MASTRA_CONFIG_SCHEMA
- MASTRA_REQUEST_ID_KEY
- MASTRA_SCOPES_KEY
- MASTRA_USER_EMAIL_KEY
- MASTRA_USER_KEY
- MASTRA_USER_NAME_KEY
- TRACE_REQUEST_CONTEXT_KEYS