diff --git a/src/mcp-bundle/src/Command/McpCommand.php b/src/mcp-bundle/src/Command/McpCommand.php index 81134023a..ee992be21 100644 --- a/src/mcp-bundle/src/Command/McpCommand.php +++ b/src/mcp-bundle/src/Command/McpCommand.php @@ -31,7 +31,10 @@ public function __construct( protected function execute(InputInterface $input, OutputInterface $output): int { - $this->server->connect(new StdioTransport(logger: $this->logger)); + $transport = new StdioTransport(logger: $this->logger); + $this->server->connect($transport); + + $transport->listen(); return Command::SUCCESS; }