Skip to main content
Glama

OpenFGA MCP

GuideDocumentation.php1.51 kB
<?php declare(strict_types=1); namespace OpenFGA\MCP\Models; use InvalidArgumentException; use JsonSerializable; use OpenFGA\MCP\Models\Traits\ValidatesInput; use Override; /** * Represents guide documentation metadata. */ final readonly class GuideDocumentation implements JsonSerializable { use ValidatesInput; /** * @param string $type * @param string $name * @param int $sections * @param int $chunks * @param string $uri * * @throws InvalidArgumentException */ public function __construct( private string $type, private string $name, private int $sections, private int $chunks, private string $uri, ) { $this->validateNotEmpty($type, 'Guide type'); $this->validatePattern($type, '/^[a-z]+$/', 'Guide type', 'must contain only lowercase letters'); $this->validateNotEmpty($name, 'Guide name'); $this->validateNonNegative($sections, 'Sections count'); $this->validateNonNegative($chunks, 'Chunks count'); $this->validateUri($uri, 'Documentation URI'); } /** * @return array{type: string, name: string, sections: int, chunks: int, uri: string} */ #[Override] public function jsonSerialize(): array { return [ 'type' => $this->type, 'name' => $this->name, 'sections' => $this->sections, 'chunks' => $this->chunks, 'uri' => $this->uri, ]; } }

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/evansims/openfga-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server