@@ -114,6 +114,10 @@ const App = () => {
114114 return localStorage . getItem ( "lastOauthClientId" ) || "" ;
115115 } ) ;
116116
117+ const [ oauthScope , setOauthScope ] = useState < string > ( ( ) => {
118+ return localStorage . getItem ( "lastOauthScope" ) || "" ;
119+ } ) ;
120+
117121 const [ pendingSampleRequests , setPendingSampleRequests ] = useState <
118122 Array <
119123 PendingRequest & {
@@ -189,6 +193,7 @@ const App = () => {
189193 bearerToken,
190194 headerName,
191195 oauthClientId,
196+ oauthScope,
192197 config,
193198 onNotification : ( notification ) => {
194199 setNotifications ( ( prev ) => [ ...prev , notification as ServerNotification ] ) ;
@@ -236,6 +241,10 @@ const App = () => {
236241 localStorage . setItem ( "lastOauthClientId" , oauthClientId ) ;
237242 } , [ oauthClientId ] ) ;
238243
244+ useEffect ( ( ) => {
245+ localStorage . setItem ( "lastOauthScope" , oauthScope ) ;
246+ } , [ oauthScope ] ) ;
247+
239248 useEffect ( ( ) => {
240249 localStorage . setItem ( CONFIG_LOCAL_STORAGE_KEY , JSON . stringify ( config ) ) ;
241250 } , [ config ] ) ;
@@ -594,6 +603,8 @@ const App = () => {
594603 setHeaderName = { setHeaderName }
595604 oauthClientId = { oauthClientId }
596605 setOauthClientId = { setOauthClientId }
606+ oauthScope = { oauthScope }
607+ setOauthScope = { setOauthScope }
597608 onConnect = { connectMcpServer }
598609 onDisconnect = { disconnectMcpServer }
599610 stdErrNotifications = { stdErrNotifications }
0 commit comments