Skip to content

Commit 9d2d813

Browse files
committed
bug #697 [MCP Bundle] Fix bundle config (OskarStark)
This PR was squashed before being merged into the main branch. Discussion ---------- [MCP Bundle] Fix bundle config | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | -- | License | MIT Commits ------- 9917838 [MCP Bundle] Fix bundle config
2 parents c6b31ee + 9917838 commit 9d2d813

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/integration-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
- run: composer run-script auto-scripts --no-interaction
107107
working-directory: demo
108108

109-
- run: bin/console cache:clear
109+
- run: bin/console lint:container
110110
working-directory: demo
111111

112112
- name: Run demo tests

src/mcp-bundle/config/services.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
1313

1414
use Mcp\Server;
15-
use Mcp\Server\ServerBuilder;
15+
use Mcp\Server\Builder;
1616

1717
return static function (ContainerConfigurator $container): void {
1818
$container->services()
@@ -21,8 +21,8 @@
2121
->args(['mcp'])
2222
->tag('monolog.logger', ['channel' => 'mcp'])
2323

24-
->set('mcp.server.builder', ServerBuilder::class)
25-
->factory([Server::class, 'make'])
24+
->set('mcp.server.builder', Builder::class)
25+
->factory([Server::class, 'builder'])
2626
->call('setServerInfo', [param('mcp.app'), param('mcp.version')])
2727
->call('setPaginationLimit', [param('mcp.pagination_limit')])
2828
->call('setInstructions', [param('mcp.instructions')])

0 commit comments

Comments
 (0)