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
ConfigMergerInterface.php•1.03 KiB
<?php
declare(strict_types=1);
namespace Butschster\ContextGenerator\Config\Import\Merger;
use Butschster\ContextGenerator\Config\Import\Source\ImportedConfig;
/**
* Interface for all configuration mergers.
*/
interface ConfigMergerInterface
{
/**
* Get the configuration key that this merger handles.
*/
public function getConfigKey(): string;
/**
* Merge an imported configuration with the main configuration.
*
* @param array<string, mixed> $mainConfig The main configuration to merge into
* @param ImportedConfig $importedConfig The imported configuration to merge from
* @return array<string, mixed> The merged configuration
*/
public function merge(array $mainConfig, ImportedConfig $importedConfig): array;
/**
* Check if this merger supports the given configuration.
*
* @param ImportedConfig $config The configuration to check
* @return bool True if this merger supports the configuration
*/
public function supports(ImportedConfig $config): bool;
}