Skip to main content
Glama

CTX: Context as Code (CaC) tool

by context-hub
MIT License
235
  • Apple
  • Linux
GithubRepository.php807 B
<?php declare(strict_types=1); namespace Butschster\ContextGenerator\Lib\GithubClient\Model; final readonly class GithubRepository { /** * @param string $repository Repository name in the format "owner/repo" * @param string $branch Repository branch or tag */ public function __construct( public string $repository, public string $branch = 'main', ) { if (!\preg_match('/^([^\/]+)\/([^\/]+)$/', $repository)) { throw new \InvalidArgumentException( "Invalid repository format: $repository. Expected format: owner/repo", ); } } /** * Get the URL for the repository */ public function getUrl(): string { return \sprintf("https://github.com/%s", $this->repository); } }

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