From 991783810e628b62c8917d784d32c22ddc404b63 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Sun, 28 Sep 2025 23:54:46 +0200 Subject: [PATCH] [MCP Bundle] Fix bundle config --- .github/workflows/integration-tests.yaml | 2 +- src/mcp-bundle/config/services.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index 950673d8d..45b92be8e 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -106,7 +106,7 @@ jobs: - run: composer run-script auto-scripts --no-interaction working-directory: demo - - run: bin/console cache:clear + - run: bin/console lint:container working-directory: demo - name: Run demo tests diff --git a/src/mcp-bundle/config/services.php b/src/mcp-bundle/config/services.php index fc27af04f..3da39d99d 100644 --- a/src/mcp-bundle/config/services.php +++ b/src/mcp-bundle/config/services.php @@ -12,7 +12,7 @@ namespace Symfony\Component\DependencyInjection\Loader\Configurator; use Mcp\Server; -use Mcp\Server\ServerBuilder; +use Mcp\Server\Builder; return static function (ContainerConfigurator $container): void { $container->services() @@ -21,8 +21,8 @@ ->args(['mcp']) ->tag('monolog.logger', ['channel' => 'mcp']) - ->set('mcp.server.builder', ServerBuilder::class) - ->factory([Server::class, 'make']) + ->set('mcp.server.builder', Builder::class) + ->factory([Server::class, 'builder']) ->call('setServerInfo', [param('mcp.app'), param('mcp.version')]) ->call('setPaginationLimit', [param('mcp.pagination_limit')]) ->call('setInstructions', [param('mcp.instructions')])