Skip to main content
Glama

CTX: Context as Code (CaC) tool

by context-hub
MIT License
235
  • Apple
  • Linux
ImportedConfig.php1.02 kB
<?php declare(strict_types=1); namespace Butschster\ContextGenerator\Config\Import\Source; use Butschster\ContextGenerator\Config\Import\Source\Config\SourceConfigInterface; /** * @implements \ArrayAccess<non-empty-string, mixed> */ final readonly class ImportedConfig implements \ArrayAccess { public function __construct( public SourceConfigInterface $sourceConfig, public array $config, public string $path, public bool $isLocal, ) {} public function offsetExists(mixed $offset): bool { return \array_key_exists($offset, $this->config); } public function offsetGet(mixed $offset): mixed { return $this->config[$offset] ?? null; } public function offsetSet(mixed $offset, mixed $value): void { throw new \RuntimeException('Cannot set value in imported config'); } public function offsetUnset(mixed $offset): void { throw new \RuntimeException('Cannot unset value in imported config'); } }

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