Skip to main content
Glama

CTX: Context as Code (CaC) tool

by context-hub
MIT License
235
  • Apple
  • Linux
GitlabRepository.php1.08 kB
<?php declare(strict_types=1); namespace Butschster\ContextGenerator\Lib\GitlabClient\Model; /** * GitLab repository model */ final readonly class GitlabRepository { public string $projectId; /** * Create a new GitLab repository * * @param string $repository Repository name in format "group/project" * @param string $branch Branch name */ public function __construct( public string $repository, public string $branch = 'main', ) { // Convert repository name to URL-encoded project ID for API calls $this->projectId = \urlencode($repository); } /** * Get the full repository URL (without server URL) */ public function getPath(): string { return $this->repository; } /** * Get the full repository URL (for display purposes) * * @param string $serverUrl Base GitLab server URL */ public function getUrl(string $serverUrl = 'https://gitlab.com'): string { return \rtrim($serverUrl, '/') . '/' . $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