Publish Plugin
Run the following commands in the monorepo root directory:Use Plugin
In the Xpert AI host system, declare the list of enabled plugins using thePLUGINS environment variable. Separate multiple plugins with commas:
PLUGINS environment variable and load these plugins in order.
Notes:
- The host project should install the plugin packages via npm/yarn/pnpm (
npm install @xpert-ai/my-plugin) and configure the plugin list in the environment variable. - The plugin’s
meta.namemust match the npm package name. - If a plugin fails to load correctly, check the logs for
registeroronPluginBootstrapoutput. - After starting the Xpert AI system, you can view the loaded plugins on the system settings Plugins page.
Installation Scope
Installed plugins have an explicit scope:- Organization plugins are installed into the current organization and can be managed from that organization.
- Tenant-global plugins are shared by all organizations in the current tenant.
- System plugins declare
meta.level = 'system'and are installed once for the whole platform undersystem:global.
Initialize Plugin Resources
Loading a plugin into the host is only the first step. The host can also initialize the resources declared inside the plugin bundle into the target runtime. On the Plugins page, the installed plugin card exposes a resource initialization action. Opening it launches a dialog that reads the current bundle definitions live, rather than relying on a stale cached list. Resources are split into two targets:- Workspace: initialize into a workspace for
Skills,MCP, andApps - Xpert: initialize into an existing Xpert for
Hooks
- Already initialized resources are marked as installed and cannot be selected again
- If the plugin bundle changes, the dialog can surface stale definitions as updateable resources
assets/are bundle metadata and presentation assets, not installable resources