Skip to content

Commit 81cb483

Browse files
authored
Trim stdio data (#19)
1 parent 6ee35aa commit 81cb483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/LoopMcpServerStartCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function handle(McpHandler $mcpHandler): int
5656
$this->comment('Received data: '.$data);
5757
}
5858

59-
foreach (explode("\n", $data) as $line) {
59+
foreach (explode("\n", trim($data)) as $line) {
6060
if (! json_validate($line)) {
6161
if ($this->option('debug')) {
6262
$this->comment('Invalid line: '.$line);

0 commit comments

Comments
 (0)