We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eeb101 commit 45b881fCopy full SHA for 45b881f
src/mcp-bundle/src/Command/McpCommand.php
@@ -18,6 +18,7 @@
18
use Symfony\Component\Console\Command\Command;
19
use Symfony\Component\Console\Input\InputInterface;
20
use Symfony\Component\Console\Output\OutputInterface;
21
+use Symfony\Component\Console\Style\SymfonyStyle;
22
23
#[AsCommand('mcp:server', 'Starts an MCP server')]
24
class McpCommand extends Command
@@ -32,9 +33,7 @@ public function __construct(
32
33
protected function execute(InputInterface $input, OutputInterface $output): int
34
{
35
$transport = new StdioTransport(logger: $this->logger);
- $this->server->connect($transport);
36
-
37
- $transport->listen();
+ $this->server->run($transport);
38
39
return Command::SUCCESS;
40
}
0 commit comments