Skip to content

Commit e0c8a72

Browse files
move AtlasLocalTools to toolConstructors
1 parent 4730bfb commit e0c8a72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Server {
7070
this.userConfig = userConfig;
7171
this.elicitation = elicitation;
7272
this.connectionErrorHandler = connectionErrorHandler;
73-
this.toolConstructors = toolConstructors ?? [...AtlasTools, ...MongoDbTools];
73+
this.toolConstructors = toolConstructors ?? [...AtlasTools, ...MongoDbTools, ...AtlasLocalTools];
7474
}
7575

7676
async connect(transport: Transport): Promise<void> {
@@ -222,7 +222,7 @@ export class Server {
222222
}
223223

224224
private registerTools(): void {
225-
for (const toolConstructor of [...this.toolConstructors, ...AtlasLocalTools]) {
225+
for (const toolConstructor of this.toolConstructors) {
226226
const tool = new toolConstructor({
227227
session: this.session,
228228
config: this.userConfig,

0 commit comments

Comments
 (0)