This section covers a FrontMCP server as a whole: how apps combine into one server, including apps loaded from npm or another MCP server, where settings come from, the MCP revisions it speaks, background tasks, logging and tracing, and the request flows hooks attach to. Read it once a server has more than one app or is about to run somewhere other than your machine; @FrontMcp and @App list each option, and these pages show how the options work together. Start with Apps, discovery and splitting.
@FrontMcp({ info, apps: [HelpDeskApp, App.esm(specifier, options?), App.remote(url, options?)], // your apps, a package's, another server's splitByApp?, logging?, observability?, metrics?, health?, tasks?, transport?: { defaultProtocolVersion? }, // background tasks; requests that name no MCP revision plugins: [ConfigPlugin.init({ schema, loadYaml: true })], // your own settings, as this.config})
How a server is built from apps, what clients see and discover, what happens when two apps use the same name, and how standalone and splitByApp give apps endpoints and auth of their own
Every place a server takes settings from: the @FrontMcp options, the environment variables FrontMCP reads, .env and YAML files through ConfigPlugin, and the frontmcp.config file the CLI reads, and which one wins
availableWhen, which offers a tool, resource or prompt only on some runtimes, platforms or deployments, and this.runtimeContext, which branches on where the server runs
The named flows every request runs through, each a fixed plan of stages, the state each stage sets, how flows nest in one request, and how to write your own
Which page for which task
You want to
Read
Split one product into areas, like tickets and billing