Skip to content

Commit d53e39f

Browse files
committed
address copilot comments
1 parent c95b9cb commit d53e39f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class Server {
165165

166166
public sendResourceUpdated(uri: string): void {
167167
this.session.logger.info({
168-
id: LogId.serverInitialized,
168+
id: LogId.resourceUpdateFailure,
169169
context: "resources",
170170
message: `Resource updated: ${uri}`,
171171
});
@@ -271,13 +271,13 @@ export class Server {
271271
This is the MongoDB MCP server.
272272
`;
273273
if (this.userConfig.connectionString) {
274-
instructions = `
274+
instructions += `
275275
This MCP server was configured with a MongoDB connection string, and you can assume that you are connected to a MongoDB cluster.
276276
`;
277277
}
278278

279279
if (this.userConfig.apiClientId && this.userConfig.apiClientSecret) {
280-
instructions = `
280+
instructions += `
281281
This MCP server was configured with MongoDB Atlas API credentials.`;
282282
}
283283

src/tools/mongodb/connect/connect.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ export class ConnectTool extends MongoDBToolBase {
107107
});
108108

109109
this.update?.({
110-
name: name,
111-
description: description,
112-
inputSchema: inputSchema,
110+
name,
111+
description,
112+
inputSchema,
113113
});
114114
}
115115
}

0 commit comments

Comments
 (0)