We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/context-hub/generator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
VariablesConfigMerger.php•696 B
<?php
declare(strict_types=1);
namespace Butschster\ContextGenerator\Config\Import\Merger;
use Butschster\ContextGenerator\Application\Logger\LoggerPrefix;
use Butschster\ContextGenerator\Config\Import\Source\ImportedConfig;
#[LoggerPrefix(prefix: 'variables-merger')]
final readonly class VariablesConfigMerger extends AbstractConfigMerger
{
public function getConfigKey(): string
{
return 'variables';
}
protected function performMerge(array $mainSection, array $importedSection, ImportedConfig $importedConfig): array
{
// Merge the variables from the imported config into the main config
return [...$importedSection, ...$mainSection];
}
}