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 = () => {
467467 setLogLevel ( level ) ;
468468 } ;
469469
470+ const clearStdErrNotifications = ( ) => {
471+ setStdErrNotifications ( [ ] ) ;
472+ } ;
473+
470474 if ( window . location . pathname === "/oauth/callback" ) {
471475 const OAuthCallback = React . lazy (
472476 ( ) => import ( "./components/OAuthCallback" ) ,
@@ -502,6 +506,7 @@ const App = () => {
502506 logLevel = { logLevel }
503507 sendLogLevelRequest = { sendLogLevelRequest }
504508 loggingSupported = { ! ! serverCapabilities ?. logging || false }
509+ clearStdErrNotifications = { clearStdErrNotifications }
505510 />
506511 < div className = "flex-1 flex flex-col overflow-hidden" >
507512 < div className = "flex-1 overflow-auto" >
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ interface SidebarProps {
5454 onConnect : ( ) => void ;
5555 onDisconnect : ( ) => void ;
5656 stdErrNotifications : StdErrNotification [ ] ;
57+ clearStdErrNotifications : ( ) => void ;
5758 logLevel : LoggingLevel ;
5859 sendLogLevelRequest : ( level : LoggingLevel ) => void ;
5960 loggingSupported : boolean ;
@@ -78,6 +79,7 @@ const Sidebar = ({
7879 onConnect,
7980 onDisconnect,
8081 stdErrNotifications,
82+ clearStdErrNotifications,
8183 logLevel,
8284 sendLogLevelRequest,
8385 loggingSupported,
@@ -470,9 +472,19 @@ const Sidebar = ({
470472 { stdErrNotifications . length > 0 && (
471473 < >
472474 < 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 >
476488 < div className = "mt-2 max-h-80 overflow-y-auto" >
477489 { stdErrNotifications . map ( ( notification , index ) => (
478490 < div
You can’t perform that action at this time.
0 commit comments