File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,11 @@ export class Server {
201
201
}
202
202
203
203
private async registerAtlasLocalTools ( ) : Promise < void > {
204
+ // If Atlas Local tools are disabled, don't attempt to connect to the client
205
+ if ( this . userConfig . disabledTools . includes ( "atlas-local" ) ) {
206
+ return ;
207
+ }
208
+
204
209
try {
205
210
// Import Atlas Local client asyncronously
206
211
// This will fail on unsupported platforms
@@ -216,11 +221,6 @@ export class Server {
216
221
// Register Atlas Local tools
217
222
this . registerToolInstances ( AtlasLocalTools ) ;
218
223
} catch ( error ) {
219
- // If Atlas Local tools are disabled, don't log an error
220
- if ( this . userConfig . disabledTools . includes ( "atlas-local" ) ) {
221
- return ;
222
- }
223
-
224
224
console . warn (
225
225
"Failed to initialize Atlas Local client, atlas-local tools will be disabled (error: " ,
226
226
error ,
You can’t perform that action at this time.
0 commit comments