Skip to main content
Glama
UserRepository.php705 B
<?php declare(strict_types=1); namespace App\Repository; use App\Model\User; final class UserRepository { use UserHydration; /** * @var array<int, array{id:int,email:string,active?:bool}> */ private array $records = []; public function __construct() { $this->records = [ 1 => ['id' => 1, 'email' => 'demo@example.com', 'active' => true], 2 => ['id' => 2, 'email' => 'archived@example.com', 'active' => false], ]; } public function find(int $id): ?User { $record = $this->records[$id] ?? null; if ($record === null) { return null; } return $this->hydrate($record); } }

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/pi22by7/In-Memoria'

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