Skip to content

Commit a2819fb

Browse files
committed
address comment: logId
1 parent 669f044 commit a2819fb

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/server.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ export class Server {
3636
async connect(transport: Transport) {
3737
this.mcpServer.server.registerCapabilities({ logging: {} });
3838

39-
// Log read-only mode status if enabled
40-
if (this.userConfig.readOnly) {
41-
logger.info(
42-
mongoLogId(1_000_005),
43-
"server",
44-
"Server starting in READ-ONLY mode. Only read and metadata operations will be available."
45-
);
46-
}
47-
4839
this.registerTools();
4940
this.registerResources();
5041

src/tools/tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export abstract class ToolBase {
113113
// Check read-only mode first
114114
if (this.config.readOnly && !["read", "metadata"].includes(this.operationType)) {
115115
logger.debug(
116-
mongoLogId(1_000_010),
116+
LogId.toolDisabled,
117117
"tool",
118118
`Prevented registration of ${this.name} because it has operation type \`${this.operationType}\` and read-only mode is enabled`
119119
);

0 commit comments

Comments
 (0)