Skip to content

Commit 50463d3

Browse files
committed
Add McpServer localization
1 parent 14de46b commit 50463d3

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,15 @@ public function getConfigTreeBuilder(): TreeBuilder
7171
->end()
7272
->end()
7373
->end()
74-
->defaultValue([
75-
[
76-
'base_path' => '%sylius_mcp_server.plugin_root%',
77-
'scan_dirs' => ['src/Tool'],
78-
],
79-
])
74+
->beforeNormalization()
75+
->always(function ($v) {
76+
$v[] = [
77+
'base_path' => '%sylius_mcp_server.plugin_root%',
78+
'scan_dirs' => ['src/Tool'],
79+
];
80+
return $v;
81+
})
82+
->end()
8083
->end()
8184
->end()
8285
->end()

src/Factory/McpServerFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function create(): Server
5757
$server->discover(
5858
basePath: $discoveryLocation['base_path'],
5959
scanDirs: $discoveryLocation['scan_dirs'],
60+
force: true,
6061
);
6162
}
6263

0 commit comments

Comments
 (0)