[Capability] Discovery fix McpTool meta parameters in place of icons (#145)
This commit is contained in:
parent
982706851a
commit
a9cd8d550f
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ class Discoverer
|
||||||
$description = $instance->description ?? $this->docBlockParser->getSummary($docBlock) ?? null;
|
$description = $instance->description ?? $this->docBlockParser->getSummary($docBlock) ?? null;
|
||||||
$inputSchema = $this->schemaGenerator->generate($method);
|
$inputSchema = $this->schemaGenerator->generate($method);
|
||||||
$meta = $instance->meta ?? null;
|
$meta = $instance->meta ?? null;
|
||||||
$tool = new Tool($name, $inputSchema, $description, $instance->annotations, $meta);
|
$tool = new Tool($name, $inputSchema, $description, $instance->annotations, meta: $meta);
|
||||||
$tools[$name] = new ToolReference($tool, [$className, $methodName], false);
|
$tools[$name] = new ToolReference($tool, [$className, $methodName], false);
|
||||||
++$discoveredCount['tools'];
|
++$discoveredCount['tools'];
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue