@@ -220,7 +220,7 @@ private function processMethod(\ReflectionMethod $method, array &$discoveredCoun
220220 case McpTool::class:
221221 $ docBlock = $ this ->docBlockParser ->parseDocBlock ($ method ->getDocComment () ?? null );
222222 $ name = $ instance ->name ?? ('__invoke ' === $ methodName ? $ classShortName : $ methodName );
223- $ description = $ instance ->description ?? $ this ->docBlockParser ->getSummary ($ docBlock ) ?? null ;
223+ $ description = $ instance ->description ?? $ this ->docBlockParser ->getDescription ($ docBlock ) ?? null ;
224224 $ inputSchema = $ this ->schemaGenerator ->generate ($ method );
225225 $ tool = new Tool (
226226 $ name ,
@@ -237,7 +237,7 @@ private function processMethod(\ReflectionMethod $method, array &$discoveredCoun
237237 case McpResource::class:
238238 $ docBlock = $ this ->docBlockParser ->parseDocBlock ($ method ->getDocComment () ?? null );
239239 $ name = $ instance ->name ?? ('__invoke ' === $ methodName ? $ classShortName : $ methodName );
240- $ description = $ instance ->description ?? $ this ->docBlockParser ->getSummary ($ docBlock ) ?? null ;
240+ $ description = $ instance ->description ?? $ this ->docBlockParser ->getDescription ($ docBlock ) ?? null ;
241241 $ resource = new Resource (
242242 $ instance ->uri ,
243243 $ name ,
@@ -256,7 +256,7 @@ private function processMethod(\ReflectionMethod $method, array &$discoveredCoun
256256 case McpPrompt::class:
257257 $ docBlock = $ this ->docBlockParser ->parseDocBlock ($ method ->getDocComment () ?? null );
258258 $ name = $ instance ->name ?? ('__invoke ' === $ methodName ? $ classShortName : $ methodName );
259- $ description = $ instance ->description ?? $ this ->docBlockParser ->getSummary ($ docBlock ) ?? null ;
259+ $ description = $ instance ->description ?? $ this ->docBlockParser ->getDescription ($ docBlock ) ?? null ;
260260 $ arguments = [];
261261 $ paramTags = $ this ->docBlockParser ->getParamTags ($ docBlock );
262262 foreach ($ method ->getParameters () as $ param ) {
@@ -276,7 +276,7 @@ private function processMethod(\ReflectionMethod $method, array &$discoveredCoun
276276 case McpResourceTemplate::class:
277277 $ docBlock = $ this ->docBlockParser ->parseDocBlock ($ method ->getDocComment () ?? null );
278278 $ name = $ instance ->name ?? ('__invoke ' === $ methodName ? $ classShortName : $ methodName );
279- $ description = $ instance ->description ?? $ this ->docBlockParser ->getSummary ($ docBlock ) ?? null ;
279+ $ description = $ instance ->description ?? $ this ->docBlockParser ->getDescription ($ docBlock ) ?? null ;
280280 $ mimeType = $ instance ->mimeType ;
281281 $ annotations = $ instance ->annotations ;
282282 $ meta = $ instance ->meta ?? null ;
0 commit comments