mcp-simple-gateway
Version:
MCP Simple Gateway
24 lines (23 loc) • 668 B
JavaScript
export class ConfigManager {
config;
constructor(config) {
this.config = config;
this.config = config;
}
getMcpServerProxyConfig(serverName) {
return this.config.mcpServers[serverName];
}
getProxySettings() {
return this.config.proxyServer;
}
getMcpServers() {
return this.config.mcpServers;
}
getMcpServerConfig(serverName) {
return this.getMcpServerProxyConfig(serverName);
}
getMcpServerProxyOptions(serverName) {
const specificOptions = this.getMcpServerProxyConfig(serverName)?.proxyOptions;
return specificOptions ?? this.getProxySettings();
}
}