12 lines
492 B
JavaScript
12 lines
492 B
JavaScript
import { brainKernel } from "../kernel.js";
|
|
export const name = 'dsh-brain-mcp';
|
|
/** Services required before `apply` runs (none: activation only). */
|
|
export const inject = [];
|
|
/** Register the sub-plugin with the host. */
|
|
export function apply(ctx, config) {
|
|
const kernel = brainKernel(config, ctx.logger('dsh-brain'));
|
|
kernel.activate('mcp');
|
|
kernel.logEvent('boot.entry', { bundle: 'mcp' });
|
|
ctx.effect(() => () => kernel.deactivate('mcp'), 'dsh-brain-mcp: activation');
|
|
}
|