File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -467,6 +467,10 @@ const App = () => {
467
467
setLogLevel ( level ) ;
468
468
} ;
469
469
470
+ const clearStdErrNotifications = ( ) => {
471
+ setStdErrNotifications ( [ ] ) ;
472
+ } ;
473
+
470
474
if ( window . location . pathname === "/oauth/callback" ) {
471
475
const OAuthCallback = React . lazy (
472
476
( ) => import ( "./components/OAuthCallback" ) ,
@@ -502,6 +506,7 @@ const App = () => {
502
506
logLevel = { logLevel }
503
507
sendLogLevelRequest = { sendLogLevelRequest }
504
508
loggingSupported = { ! ! serverCapabilities ?. logging || false }
509
+ clearStdErrNotifications = { clearStdErrNotifications }
505
510
/>
506
511
< div className = "flex-1 flex flex-col overflow-hidden" >
507
512
< div className = "flex-1 overflow-auto" >
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ interface SidebarProps {
54
54
onConnect : ( ) => void ;
55
55
onDisconnect : ( ) => void ;
56
56
stdErrNotifications : StdErrNotification [ ] ;
57
+ clearStdErrNotifications : ( ) => void ;
57
58
logLevel : LoggingLevel ;
58
59
sendLogLevelRequest : ( level : LoggingLevel ) => void ;
59
60
loggingSupported : boolean ;
@@ -78,6 +79,7 @@ const Sidebar = ({
78
79
onConnect,
79
80
onDisconnect,
80
81
stdErrNotifications,
82
+ clearStdErrNotifications,
81
83
logLevel,
82
84
sendLogLevelRequest,
83
85
loggingSupported,
@@ -470,9 +472,19 @@ const Sidebar = ({
470
472
{ stdErrNotifications . length > 0 && (
471
473
< >
472
474
< div className = "mt-4 border-t border-gray-200 pt-4" >
473
- < h3 className = "text-sm font-medium" >
474
- Error output from MCP server
475
- </ h3 >
475
+ < div className = "flex justify-between items-center" >
476
+ < h3 className = "text-sm font-medium" >
477
+ Error output from MCP server
478
+ </ h3 >
479
+ < Button
480
+ variant = "outline"
481
+ size = "sm"
482
+ onClick = { clearStdErrNotifications }
483
+ className = "h-8 px-2"
484
+ >
485
+ Clear
486
+ </ Button >
487
+ </ div >
476
488
< div className = "mt-2 max-h-80 overflow-y-auto" >
477
489
{ stdErrNotifications . map ( ( notification , index ) => (
478
490
< div
You can’t perform that action at this time.
0 commit comments