Slide 47
Slide 47 text
add
#[McpTool(
name: 'create_content',
description: '৽͍͠ίϯςϯπΛ࡞͠·͢',
)]
public function createContent(
string $title,
string $body,
string $status,
?string $publishedAt = null,
): Content {
string $title,
string $body,
string $status,
?string $publishedAt = null,
メソッドの引数を自動的に解釈して
MCPサーバーとして
喋ってくれる
※PHPDocがあればそれも