We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e779230 commit 3749303Copy full SHA for 3749303
src/Server/FastMcp/Tools/ToolManager.php
@@ -97,8 +97,9 @@ public function clear(): void
97
* @param array<string, mixed> $arguments
98
* @return mixed
99
*/
100
- public function execute(string $name, array $arguments)
+ public function execute(string $name, ?array $arguments)
101
{
102
+ $arguments = $arguments ?? [];
103
$registeredTool = $this->get($name);
104
if ($registeredTool === null) {
105
throw ToolError::unknownTool($name);
0 commit comments