/* tslint:disable */
/* eslint-disable */
/**
 * HumanLayer Daemon REST API
 * REST API for HumanLayer daemon operations, providing session management, approval workflows, and real-time event streaming capabilities. 
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
import type { MCPServer } from './MCPServer';
import {
    MCPServerFromJSON,
    MCPServerFromJSONTyped,
    MCPServerToJSON,
    MCPServerToJSONTyped,
} from './MCPServer';

/**
 * 
 * @export
 * @interface MCPConfig
 */
export interface MCPConfig {
    /**
     * Map of server name to configuration
     * @type {{ [key: string]: MCPServer; }}
     * @memberof MCPConfig
     */
    mcpServers?: { [key: string]: MCPServer; };
}

/**
 * Check if a given object implements the MCPConfig interface.
 */
export function instanceOfMCPConfig(value: object): value is MCPConfig {
    return true;
}

export function MCPConfigFromJSON(json: any): MCPConfig {
    return MCPConfigFromJSONTyped(json, false);
}

export function MCPConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): MCPConfig {
    if (json == null) {
        return json;
    }
    return {
        
        'mcpServers': json['mcpServers'] == null ? undefined : (mapValues(json['mcpServers'], MCPServerFromJSON)),
    };
}

export function MCPConfigToJSON(json: any): MCPConfig {
    return MCPConfigToJSONTyped(json, false);
}

export function MCPConfigToJSONTyped(value?: MCPConfig | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'mcpServers': value['mcpServers'] == null ? undefined : (mapValues(value['mcpServers'], MCPServerToJSON)),
    };
}

