MCP Server Framework - v1.0.0
    Preparing search index...

    Function applyConfigOverrides

    • Applies programmatic overrides to the framework configuration cache.

      This bridges the gap between programmatic createServer() options and the environment-based framework configuration. Called early in the server startup sequence (before transport creation) to ensure all downstream modules see consistent configuration.

      Only non-undefined values are applied — environment variables remain the default source for any unspecified options.

      Automatically invalidates satellite caches (rate limiter, DNS rebinding, etc.) since the underlying config has changed.

      After merging, cross-field constraints are re-validated to catch invalid combinations (e.g., HTTPS mode without TLS paths).

      Parameters

      • overrides: Partial<FrameworkEnvConfig>

        Partial config to merge into the cached configuration

      Returns void