Skip to content

Commit 8d08df8

Browse files
fix: remove output message after STDIO transport stops
When MCP clients disconnect from STDIO transport, they close STDOUT/STDERR streams before the Laravel command completes. Attempting to output "MCP Server (STDIO) stopped." to closed streams causes fwrite() errors.
1 parent 807b509 commit 8d08df8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Commands/ServeCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ private function handleStdioTransport(Server $server): int
8989
return Command::FAILURE;
9090
}
9191

92-
$this->info("MCP Server (STDIO) stopped.");
93-
9492
return Command::SUCCESS;
9593
}
9694

0 commit comments

Comments
 (0)