Skip to content

Commit 76bc155

Browse files
committed
feat: Add output schema support to MCP tools
1 parent 329533b commit 76bc155

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

src/Capability/Discovery/DocBlockParser.php

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -138,52 +138,5 @@ public function getParamTypeString(?Param $paramTag): ?string
138138
return null;
139139
}
140140

141-
/**
142-
* Gets the return type string from a Return tag.
143-
*/
144-
public function getReturnTypeString(?DocBlock $docBlock): ?string
145-
{
146-
if (null === $docBlock) {
147-
return null;
148-
}
149-
150-
$returnTags = $docBlock->getTagsByName('return');
151-
if ([] === $returnTags) {
152-
return null;
153-
}
154141

155-
$returnTag = $returnTags[0];
156-
if (!$returnTag instanceof TagWithType) {
157-
return null;
158-
}
159-
160-
$typeFromTag = trim((string) $returnTag->getType());
161-
if (!empty($typeFromTag)) {
162-
return ltrim($typeFromTag, '\\');
163-
}
164-
165-
return null;
166-
}
167-
168-
/**
169-
* Gets the return type description from a Return tag.
170-
*/
171-
public function getReturnDescription(?DocBlock $docBlock): ?string
172-
{
173-
if (null === $docBlock) {
174-
return null;
175-
}
176-
177-
$returnTags = $docBlock->getTagsByName('return');
178-
if ([] === $returnTags) {
179-
return null;
180-
}
181-
182-
$returnTag = $returnTags[0];
183-
if (!$returnTag instanceof TagWithType) {
184-
return null;
185-
}
186-
187-
return trim((string) $returnTag->getDescription()) ?: null;
188-
}
189142
}

0 commit comments

Comments
 (0)