inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Add a toast on connection error

Open howardjohn opened this issue 3 months ago • 0 comments

Motivation and Context

When failing to connect to an MCP server, its very hard to understand why. There is only an opaque "Connection Error" message with no additional info. This also doesn't change at all on repeated attempts, so there is no indication we attempted again and failed.

This change introduces a toast to visualize the error, and adds the cause into the error message for further debugging

How Has This Been Tested?

Manually tested 2025-08-28_15-03-26

Breaking Changes

No

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Documentation update

Checklist

  • [x] I have read the MCP Documentation
  • [x] My code follows the repository's style guidelines
  • [x] New and existing tests pass locally
  • [x] I have added appropriate error handling
  • [x] I have added or updated documentation as needed

Additional context

howardjohn avatar Aug 28 '25 22:08 howardjohn