Skip to main content
Glama
KnowledgeBaseSummaryResource.php1.33 kB
<?php declare(strict_types=1); namespace GoldenPathDigital\LaravelAscend\Resources; use GoldenPathDigital\LaravelAscend\Documentation\KnowledgeBaseService; use GoldenPathDigital\LaravelAscend\Server\Mcp\Contracts\ResourceInterface; final class KnowledgeBaseSummaryResource implements ResourceInterface { /** @var KnowledgeBaseService */ private $knowledgeBase; /** @var array<string, mixed>|null */ private ?array $cachedArray = null; public function __construct( KnowledgeBaseService $knowledgeBase ) { $this->knowledgeBase = $knowledgeBase; } public function name(): string { return 'ascend://knowledge-base/summary'; } /** * @return array<string, mixed> */ public function toArray(): array { if ($this->cachedArray !== null) { return $this->cachedArray; } $summary = $this->knowledgeBase->getSummary(); $this->cachedArray = [ 'uri' => $this->name(), 'name' => 'Knowledge Base Summary', 'description' => 'Overview of available Laravel upgrade documentation and breaking changes', 'mimeType' => 'application/json', 'content' => json_encode($summary, JSON_PRETTY_PRINT), ]; return $this->cachedArray; } }

Latest Blog Posts

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/aarongrtech/laravel-ascend'

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