This repository was archived by the owner on May 21, 2026. It is now read-only.
feat: add auto-connect and auto-switch features to Inspector - #76
Merged
Conversation
- 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.
… 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 status dot * fix: 1 transport per request * chore: version packages and update changelogs
…rDashboard - 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds auto-connect and auto-switch features to the Inspector dashboard, improving the user experience when connecting to MCP servers.
Key Changes:
The auto-connect and auto-switch states are persisted in localStorage for a seamless user experience.
Type of change
📦 Changeset Required?
Does this PR need a changeset?
pnpm changeset)Quick reminder:
pnpm changeset # Creates a changeset interactively📚 Full guide: Changeset Workflow Guide
Need help? See when to create changesets and examples
🚀 Release Target
mainbranch → Stable release (default)betabranch → Beta/prerelease versionReleasing a beta? See the Beta Release Workflow Guide for instructions.
Checklist
Code Quality
pnpm test)pnpm lint)pnpm build)Documentation
Release Preparation
pnpm changeset) - if this affects published packagesAdditional Notes
This feature is specifically for the Inspector package and improves the developer experience when working with MCP servers. The auto-switch feature is particularly useful when testing different connection methods.