feat: Add lightweight Disconnect button

This commit is contained in:
Maxwell Gerber
2025-03-31 18:54:44 -07:00
parent fa7f9c80cd
commit 9ab213bc89
4 changed files with 31 additions and 11 deletions

View File

@@ -145,6 +145,7 @@ const App = () => {
handleCompletion,
completionsSupported,
connect: connectMcpServer,
disconnect: disconnectMcpServer,
} = useConnection({
transportType,
command,
@@ -458,6 +459,7 @@ const App = () => {
bearerToken={bearerToken}
setBearerToken={setBearerToken}
onConnect={connectMcpServer}
onDisconnect={disconnectMcpServer}
stdErrNotifications={stdErrNotifications}
logLevel={logLevel}
sendLogLevelRequest={sendLogLevelRequest}