Skip to main content
Glama

CTX: Context as Code (CaC) tool

by context-hub
MIT License
235
  • Apple
  • Linux
AbstractSourceFactory.php916 B
<?php declare(strict_types=1); namespace Butschster\ContextGenerator\Source\Registry; use Butschster\ContextGenerator\DirectoriesInterface; use Butschster\ContextGenerator\Modifier\Alias\ModifierResolver; use Psr\Log\LoggerInterface; /** * Base class for source factories */ abstract readonly class AbstractSourceFactory implements SourceFactoryInterface { public function __construct( protected DirectoriesInterface $dirs, protected ModifierResolver $modifierResolver = new ModifierResolver(), protected ?LoggerInterface $logger = null, ) {} /** * Parse modifiers configuration * * @param array<string, mixed> $modifiersConfig * @return array<\Butschster\ContextGenerator\Modifier\Modifier> */ protected function parseModifiers(array $modifiersConfig): array { return $this->modifierResolver->resolveAll($modifiersConfig); } }

MCP directory API

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