Skip to content

Commit b50fd39

Browse files
committed
remove some comments
1 parent 7c5cbcc commit b50fd39

File tree

5 files changed

+3
-20
lines changed

5 files changed

+3
-20
lines changed

src/Capability/Discovery/CachedDiscoverer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* to improve performance when discovery is called multiple times.
2222
*
2323
* @internal
24+
*
2425
* @final
2526
*
2627
* @author Xentixar <xentixar@gmail.com>

src/Capability/Discovery/Discoverer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* }
4444
*
4545
* @internal
46+
*
4647
* @final
4748
*
4849
* @author Kyrian Obikwelu <koshnawaza@gmail.com>

src/Capability/Discovery/DiscovererInterface.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
/**
1515
* Discovers MCP elements (tools, resources, prompts, resource templates) in directories.
1616
*
17-
* Implementations can use different strategies:
18-
* - File system scanning with reflection
19-
* - Cached discovery
20-
* - Pre-configured discovery
21-
*
2217
* @internal
2318
*
2419
* @author Antoine Bluchet <soyuka@gmail.com>

src/Capability/Discovery/SchemaGenerator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ public function generate(\Reflector $reflection): array
9292
/**
9393
* Extracts method-level or function-level Schema attribute.
9494
*
95-
* @param \ReflectionFunctionAbstract $reflection
96-
*
9795
* @return SchemaAttributeData
9896
*/
9997
private function extractMethodLevelSchema(\ReflectionFunctionAbstract $reflection): ?array
@@ -411,8 +409,6 @@ private function applyArrayConstraints(array $paramSchema, array $paramInfo): ar
411409
/**
412410
* Parses detailed information about a method's parameters.
413411
*
414-
* @param \ReflectionFunctionAbstract $reflection
415-
*
416412
* @return ParameterInfo[]
417413
*/
418414
private function parseParametersInfo(\ReflectionFunctionAbstract $reflection): array

src/Capability/Discovery/SchemaGeneratorInterface.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
/**
1515
* Provides JSON Schema generation for reflected elements.
1616
*
17-
* Implementations can use different strategies to generate schemas:
18-
* - Reflection-based (types and docblocks)
19-
* - Attribute-based (Schema attributes)
20-
* - External libraries (API Platform, etc.)
21-
* - Class-based metadata
22-
*
2317
* @author Antoine Bluchet <soyuka@gmail.com>
2418
*/
2519
interface SchemaGeneratorInterface
@@ -28,11 +22,7 @@ interface SchemaGeneratorInterface
2822
* Generates a JSON Schema for input parameters.
2923
*
3024
* The returned schema must be a valid JSON Schema object (type: 'object')
31-
* with properties corresponding to parameters.
32-
*
33-
* - For ReflectionMethod/ReflectionFunction: schema based on method parameters
34-
* - For ReflectionClass: schema based on __construct, __invoke parameters,
35-
* or class properties/metadata
25+
* with properties corresponding to a tool's parameters.
3626
*
3727
* @return array{
3828
* type: 'object',

0 commit comments

Comments
 (0)