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

    Function validateConfigConstraints

    • Validate cross-field constraints on the framework configuration.

      Extracted as a standalone function so it can be called:

      1. By the Zod schema's superRefine (env-only parsing)
      2. By the config cache after merging all sources (env + file + overrides)

      Parameters

      • config: Pick<
            FrameworkEnvConfig,
            | "MCP_TRANSPORT"
            | "MCP_TLS_CERT_PATH"
            | "MCP_TLS_KEY_PATH"
            | "MCP_TLS_CA_PATH"
            | "MCP_MAX_SESSIONS"
            | "MCP_MAX_STREAMABLE_HTTP_SESSIONS"
            | "MCP_MAX_SSE_SESSIONS",
        >

        The (potentially merged) configuration to validate

      Returns ConfigConstraintViolation[]

      Array of constraint violations (empty = valid)