Commit 22dab13
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- packages/inspector
- src
- client
- components
- context
- components/ui
6 files changed
+507
-116
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments