Class Definition
Properties
Methods
registerMiddleware(entryPath, handler)
Register middleware at a specific entry path.registerRoute(method, path, handler)
Register an HTTP route.prepare()
Prepare routes without starting the server.- Registers
/healthendpoint automatically - Prepares all configured routes
- Call before
getHandler()for serverless
getHandler()
Get the underlying HTTP handler for serverless export.start()
Start the server on the configured TCP port, or on a Unix domain socket whenHttpOptions.socketPath is set (Unix socket overrides port).
HttpOptions
Host Adapters
Default (Express)
Express is the default host adapter:Custom Host Factory
Provide a custom host adapter:Host Adapter Interface
Usage Examples
Standard Deployment
Manual Server Access
Serverless Deployment
Custom CORS
Health & Readiness Endpoints
FrontMCP automatically registers health and readiness endpoints:
The readiness endpoint automatically discovers and probes session stores (Redis/Vercel KV) and remote MCP app connections. Add custom probes for databases and APIs via
health.probes.
Health Checks Guide
Full configuration, custom probes, Kubernetes & Docker examples
Related
FrontMcpInstance
Server bootstrap
@FrontMcp
Server configuration
Serverless Deployment
Serverless guide
Production Build
Production deployment