factory static method

ServerBootstrap factory({
  1. required String name,
  2. required String version,
  3. Set<ToolScope> visibility = const {ToolScope.external},
  4. bool debugMode = false,
})

KernelServerHostFactory-shaped entry point. Hosts pass this to KernelApp.boot(serverHostFactory: ServerBootstrap.factory) so every endpoint binds an MCP-server-backed surface.

Implementation

static ServerBootstrap factory({
  required String name,
  required String version,
  Set<ToolScope> visibility = const {ToolScope.external},
  bool debugMode = false,
}) {
  return ServerBootstrap(
    name: name,
    version: version,
    visibility: visibility,
    debugMode: debugMode,
  );
}