File tree Expand file tree Collapse file tree 4 files changed +7
-14
lines changed Expand file tree Collapse file tree 4 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 1212 "./app" : " ./src/app.ts"
1313 },
1414 "imports" : {
15- "@mcpc/core" : " jsr:@mcpc/core@^0.2.4 " ,
15+ "@mcpc/core" : " jsr:@mcpc/core@^0.2.5 " ,
1616 "@mcpc/utils" : " jsr:@mcpc/utils@^0.2.2" ,
1717 "@modelcontextprotocol/sdk" : " npm:@modelcontextprotocol/sdk@^1.8.0" ,
1818 "@mcpc-tech/ripgrep-napi" : " npm:@mcpc-tech/ripgrep-napi@^0.0.4" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @mcpc/core" ,
3- "version" : " 0.2.4 " ,
3+ "version" : " 0.2.5 " ,
44 "repository" : {
55 "type" : " git" ,
66 "url" : " git+https://github.com/mcpc-tech/mcpc.git"
Original file line number Diff line number Diff line change @@ -74,17 +74,10 @@ export class MCPLogger {
7474
7575 private logToConsole ( level : LogLevel , data : unknown ) : void {
7676 const message = typeof data === "string" ? data : JSON . stringify ( data ) ;
77- const prefix = `[${ this . loggerName } ]` ;
78-
79- if ( level === "debug" ) {
80- console . debug ( prefix , message ) ;
81- } else if ( level === "info" || level === "notice" ) {
82- console . info ( prefix , message ) ;
83- } else if ( level === "warning" ) {
84- console . warn ( prefix , message ) ;
85- } else {
86- console . error ( prefix , message ) ;
87- }
77+ const prefix = `[${ this . loggerName } :${ level } ]` ;
78+
79+ // Always use console.error to avoid interfering with JSON-RPC on stdout in stdio mode
80+ console . error ( prefix , message ) ;
8881 }
8982
9083 debug ( data : unknown ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments