Skip to main content
Glama
UserActivationService.php551 B
<?php declare(strict_types=1); namespace App\Service; use App\Repository\UserRepository; final class UserActivationService { public function __construct( private readonly UserRepository $repository, private readonly EmailNotifier $notifier, ) { } public function activateUser(int $id): bool { $user = $this->repository->find($id); if ($user === null) { return false; } $user->activate(); $this->notifier->sendActivation($user); return true; } }

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