dsh-brain/lib/entries/mcp.js

11 lines
438 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');
ctx.effect(() => () => kernel.deactivate('mcp'), 'dsh-brain-mcp: activation');
}