Skip to content

Commit 22dab13

Browse files
authored
feat: add auto-connect and auto-switch features to Inspector (#76)
* fix status dot * fix: 1 transport per request * feat: add @radix-ui/react-switch and implement auto-connect feature - Added @radix-ui/react-switch dependency to manage auto-connect setting. - Updated InspectorDashboard to include a switch for enabling/disabling auto-connect. - Enhanced McpContext to handle auto-connect state and connect/disconnect servers accordingly. - Implemented auto-connection logic in ServerDetail for seamless user experience. * refactor: replace console.log with console.warn for connection status updates - Updated logging in InspectorDashboard and ServerDetail components to use console.warn for better visibility of connection state changes. - Enhanced pending navigation checks to include data presence before navigating or canceling navigation. * fix: inspector connector status and transport improvements (#75) * fix status dot * fix: 1 transport per request * chore: version packages and update changelogs * feat: implement connection tester and auto-switch feature in InspectorDashboard - Added a temporary ConnectionTester component to handle connection attempts with success and failure callbacks. - Introduced an auto-switch feature that allows users to automatically switch between direct and proxy connections if one fails. - Updated the InspectorDashboard to manage pending connection configurations and handle connection success/failure logic. - Enhanced UI to include a switch for enabling/disabling the auto-switch feature, with state persistence in localStorage.
1 parent 13fb7c0 commit 22dab13

File tree

6 files changed

+507
-116
lines changed

6 files changed

+507
-116
lines changed

packages/inspector/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"@radix-ui/react-dropdown-menu": "^2.1.16",
6363
"@radix-ui/react-label": "^2.1.7",
6464
"@radix-ui/react-select": "^2.2.6",
65+
"@radix-ui/react-switch": "^1.1.2",
6566
"@radix-ui/react-tooltip": "^1.2.8",
6667
"@tailwindcss/cli": "^4.1.14",
6768
"@tailwindcss/vite": "^4.1.14",

0 commit comments

Comments
 (0)