Skip to content

Commit 5cfca10

Browse files
committed
removes code
1 parent 498718c commit 5cfca10

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Mcp/ToolExecutor.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ protected function reconstructResponse(array $data): Response
9999
return Response::error($errorText);
100100
}
101101

102-
// Handle successful responses
103-
// Content can be either a string (from ExecuteToolCommand) or array format
104-
if (is_string($data['content'])) {
105-
return Response::text($data['content']);
106-
}
107-
108102
// Handle array format - extract text content
109103
if (is_array($data['content']) && ! empty($data['content'])) {
110104
$firstContent = $data['content'][0] ?? [];

0 commit comments

Comments
 (0)