Skip to main content
Glama

CTX: Context as Code (CaC) tool

by context-hub
MIT License
235
  • Apple
  • Linux
Platform.php704 B
<?php declare(strict_types=1); namespace Butschster\ContextGenerator\Lib\GithubClient; enum Platform: string { case Linux = 'linux'; case Macos = 'darwin'; case Windows = 'windows'; public static function detect(): self { return match (PHP_OS_FAMILY) { 'Linux' => self::Linux, 'Darwin' => self::Macos, 'Windows' => self::Windows, default => throw new \RuntimeException('Unsupported platform: ' . PHP_OS_FAMILY), }; } public function isWindows(): bool { return $this === self::Windows; } public function extension(): string { return $this->isWindows() ? '.exe' : ''; } }

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