1
- import React from "react" ;
2
- import { useDraggablePane } from "./lib/hooks/useDraggablePane" ;
3
- import { useConnection } from "./lib/hooks/useConnection" ;
4
1
import {
5
2
ClientRequest ,
6
3
CompatibilityCallToolResult ,
@@ -11,15 +8,17 @@ import {
11
8
ListPromptsResultSchema ,
12
9
ListResourcesResultSchema ,
13
10
ListResourceTemplatesResultSchema ,
14
- ReadResourceResultSchema ,
15
11
ListToolsResultSchema ,
12
+ ReadResourceResultSchema ,
16
13
Resource ,
17
14
ResourceTemplate ,
18
15
Root ,
19
16
ServerNotification ,
20
17
Tool ,
21
18
} from "@modelcontextprotocol/sdk/types.js" ;
22
- import { useEffect , useRef , useState , Suspense } from "react" ;
19
+ import React , { Suspense , useEffect , useRef , useState } from "react" ;
20
+ import { useConnection } from "./lib/hooks/useConnection" ;
21
+ import { useDraggablePane } from "./lib/hooks/useDraggablePane" ;
23
22
24
23
import { StdErrNotification } from "./lib/notificationTypes" ;
25
24
@@ -33,6 +32,7 @@ import {
33
32
MessageSquare ,
34
33
} from "lucide-react" ;
35
34
35
+ import { toast } from "react-toastify" ;
36
36
import { z } from "zod" ;
37
37
import "./App.css" ;
38
38
import ConsoleTab from "./components/ConsoleTab" ;
@@ -226,6 +226,8 @@ const App = () => {
226
226
const newUrl = new URL ( window . location . href ) ;
227
227
newUrl . searchParams . delete ( "serverUrl" ) ;
228
228
window . history . replaceState ( { } , "" , newUrl . toString ( ) ) ;
229
+ // Show success toast for OAuth
230
+ toast . success ( 'Successfully authenticated with OAuth' ) ;
229
231
// Connect to the server
230
232
connectMcpServer ( ) ;
231
233
}
@@ -444,8 +446,8 @@ const App = () => {
444
446
445
447
< div className = "w-full" >
446
448
{ ! serverCapabilities ?. resources &&
447
- ! serverCapabilities ?. prompts &&
448
- ! serverCapabilities ?. tools ? (
449
+ ! serverCapabilities ?. prompts &&
450
+ ! serverCapabilities ?. tools ? (
449
451
< div className = "flex items-center justify-center p-4" >
450
452
< p className = "text-lg text-gray-500" >
451
453
The connected server does not support any MCP capabilities
0 commit comments