Quick Start
Createfrontmcp.config.ts in your project root:
defineConfig() helper is a pass-through that enables IDE type hints and autocomplete.
File Resolution Order
FrontMCP searches for configuration files in this order:frontmcp.config.tsfrontmcp.config.jsfrontmcp.config.jsonfrontmcp.config.mjsfrontmcp.config.cjs- Fallback: derives minimal config from
package.json(name, default node target)
When using JSON format, add
"$schema" for autocomplete in VS Code and WebStorm:Top-Level Fields
Deployment Targets
Each entry indeployments defines a build target with independent settings:
Deployment Target Fields
MCPB-Only Fields
Themcpb target supports additional fields for MCP Bundle metadata:
Server Configuration
HTTP Options
CSP Options
Security Headers
HA Configuration
Multi-Target Example
Deploy the same server to Node.js, distributed, and Vercel:Helper Functions
Related
Production Build
Build and deploy guide
High Availability
Multi-pod deployment with session failover
Security Headers
CSP and security header configuration
Runtime Modes
Standalone, distributed, and serverless modes