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 {
36
36
async connect ( transport : Transport ) {
37
37
this . mcpServer . server . registerCapabilities ( { logging : { } } ) ;
38
38
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
-
48
39
this . registerTools ( ) ;
49
40
this . registerResources ( ) ;
50
41
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export abstract class ToolBase {
113
113
// Check read-only mode first
114
114
if ( this . config . readOnly && ! [ "read" , "metadata" ] . includes ( this . operationType ) ) {
115
115
logger . debug (
116
- mongoLogId ( 1_000_010 ) ,
116
+ LogId . toolDisabled ,
117
117
"tool" ,
118
118
`Prevented registration of ${ this . name } because it has operation type \`${ this . operationType } \` and read-only mode is enabled`
119
119
) ;
You can’t perform that action at this time.
0 commit comments