Check upstream versions and label article-driven components

This commit is contained in:
2026-11-25 22:57:47 +08:00
parent 4ea5d2c133
commit 04cac36b83
14 changed files with 123 additions and 11 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ use App\Content\DesignLibrary;
use App\Content\PageDraft;
use App\Content\PageTemplates;
use App\Content\Repository;
use App\Content\Updates;
use App\Content\View;
use PDOException;
use RuntimeException;
@@ -67,7 +68,7 @@ final class McpController
return match ($method) {
'initialize' => $this->result($id, [
'protocolVersion' => in_array($params['protocolVersion'] ?? null, self::PROTOCOLS, true) ? $params['protocolVersion'] : self::PROTOCOLS[0],
'capabilities' => ['tools' => (object) []], 'serverInfo' => ['name' => 'laysite', 'version' => trim(file_get_contents(dirname(__DIR__, 2) . '/VERSION'))],
'capabilities' => ['tools' => (object) []], 'serverInfo' => ['name' => 'laysite', 'version' => Updates::current()],
'instructions' => 'Create or revise draft pages. A human can open the editor URL to review, refine and publish.',
]),
'ping' => $this->result($id, (object) []),