Skip to content

Conversation

howardjohn
Copy link

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)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

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

Additional 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
Copy link
Member

@cliffhall cliffhall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @howardjohn,

Thanks for this, just want to request a small fix for toast behavior.

title: "Connection error",
description: `Connection failed: "${e}"`,
variant: "destructive",
});
Copy link
Member

@cliffhall cliffhall Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that conditional toast above this is fired, there will be a second toast popped about a connection error. It should be an if/else.

Suggested change
});
} else {
toast({
title: "Connection error",
description: `Connection failed: "${e}"`,
variant: "destructive",
});
}

@cliffhall cliffhall added the waiting on submitter Waiting for the submitter to provide more info label Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting on submitter Waiting for the submitter to provide more info

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants