McpTool
McpTool.php
:
14
Read-only
Final
Attributes
- #[Attribute]
- \Attribute::TARGET_METHOD
Properties¶
$annotations
¶
McpTool.php
:
27
|
|
|
$description
¶
McpTool.php
:
26
|
|
|
$icons
¶
McpTool.php
:
28
|
|
|
$meta
¶
McpTool.php
:
29
|
|
|
$name
¶
McpTool.php
:
25
|
|
|
$outputSchema
¶
McpTool.php
:
30
|
|
|
$servers
¶
McpTool.php
:
24
|
|
|
Methods¶
__construct()
¶
McpTool.php
:
23
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $servers | array<int, string> | [] |
Tools can be also registered in server configuration. |
| $name | string|null | null | - |
| $description | string|null | null | - |
| $annotations | ToolAnnotations|null | null | - |
| $icons | array<string|int, Icon>|null | null | - |
| $meta | array<string, mixed>|null | null | - |
| $outputSchema | array<string, mixed>|null | null | - |