Skip to content

Commit 45b881f

Browse files
committed
Adopt new interface of MCP server
1 parent 0eeb101 commit 45b881f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Symfony\Component\Console\Command\Command;
1919
use Symfony\Component\Console\Input\InputInterface;
2020
use Symfony\Component\Console\Output\OutputInterface;
21+
use Symfony\Component\Console\Style\SymfonyStyle;
2122

2223
#[AsCommand('mcp:server', 'Starts an MCP server')]
2324
class McpCommand extends Command
@@ -32,9 +33,7 @@ public function __construct(
3233
protected function execute(InputInterface $input, OutputInterface $output): int
3334
{
3435
$transport = new StdioTransport(logger: $this->logger);
35-
$this->server->connect($transport);
36-
37-
$transport->listen();
36+
$this->server->run($transport);
3837

3938
return Command::SUCCESS;
4039
}

0 commit comments

Comments
 (0)