Skip to content

Commit f097b2d

Browse files
committed
bug #670 [MCP Bundle] Fix STDIO command to listen (chr-hertel)
This PR was merged into the main branch. Discussion ---------- [MCP Bundle] Fix STDIO command to listen | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT Commits ------- 16d8306 Fix STDIO command to listen
2 parents 0953448 + 16d8306 commit f097b2d

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)