File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments