baserCMS クラスリファレンス

McpServer
in package

baserCMS MCP Server

baserCMSのデータを外部から操作するためのMCPサーバー 各エンティティサーバーを統合して提供する

プロトコルの世代判定・server/discover・必須ヘッダ検証・resultType や キャッシュヒントの付与は SDK が担うため、本クラスの責務はツールの登録に絞る。

Table of Contents

Properties

$server  : McpServer
SDK のサーバー

Methods

__construct()  : mixed
コンストラクタ
getServer()  : McpServer
MCPサーバーの実体を取得する
serverInfo()  : array<string|int, mixed>
サーバー情報を取得する
buildServer()  : void
サーバーのビルド

Properties

$server

SDK のサーバー

private McpServer $server

Methods

__construct()

コンストラクタ

public __construct() : mixed

getServer()

MCPサーバーの実体を取得する

public getServer() : McpServer
Return values
McpServer

serverInfo()

サーバー情報を取得する

public serverInfo([int|null $id = null ]) : array<string|int, mixed>
Parameters
$id : int|null = null

ID

Return values
array<string|int, mixed>

buildServer()

サーバーのビルド

private buildServer() : void
On this page

Search results