Skip to content

Commit 16d8306

Browse files
committed
Fix STDIO command to listen
1 parent 0953448 commit 16d8306

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mcp-bundle/src/Command/McpCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ public function __construct(
3131

3232
protected function execute(InputInterface $input, OutputInterface $output): int
3333
{
34-
$this->server->connect(new StdioTransport(logger: $this->logger));
34+
$transport = new StdioTransport(logger: $this->logger);
35+
$this->server->connect($transport);
36+
37+
$transport->listen();
3538

3639
return Command::SUCCESS;
3740
}

0 commit comments

Comments
 (0)