Skip to content

Comments

Update toast error message for MCP tool connection#1920

Merged
dimaMachina merged 1 commit intomainfrom
dimaMachina-patch-2
Feb 11, 2026
Merged

Update toast error message for MCP tool connection#1920
dimaMachina merged 1 commit intomainfrom
dimaMachina-patch-2

Conversation

@dimaMachina
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented Feb 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Feb 11, 2026 1:06pm
agents-manage-ui Building Building Preview, Comment Feb 11, 2026 1:06pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
agents-docs Skipped Skipped Feb 11, 2026 1:06pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 11, 2026

⚠️ No Changeset found

Latest commit: a7d785b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dimaMachina dimaMachina merged commit f504ff1 into main Feb 11, 2026
9 of 10 checks passed
@dimaMachina dimaMachina deleted the dimaMachina-patch-2 branch February 11, 2026 13:06
Copy link
Contributor

@claude claude bot left a comment

Choose a reason for hiding this comment

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

PR Review Summary

1 Key Finding | Risk: Low

💭 Consider (1) 💭

  • 💭 Consider: page.client.tsx:568 Whether to include both valid user actions in error guidance

💡 APPROVE WITH SUGGESTIONS

Summary: This is a straightforward copy change to an error toast message. The change itself is valid — both the old and new suggested actions are things users can actually do in the UI. The only consideration is whether the new message should mention both options (removing existing connection OR connecting to a new node) for complete guidance. Feel free to merge as-is if the product intent is to steer users toward creating new MCP nodes.

Discarded (0)

No findings discarded.

Reviewers (0)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
Direct assessment 1 0 0 0 1 0 0
Total 1 0 0 0 1 0 0

Note: Given the trivial scope (1-line copy change), full subagent dispatch was skipped in favor of direct orchestrator assessment.

if (targetNode && targetNode.type === NodeType.MCP) {
if (edges.some((edge) => edge.target === targetNode.id)) {
toast.error('This MCP tool is already connected. Remove the existing connection first.');
toast.error('This MCP tool is already connected. Connect to a new MCP server node.');
Copy link
Contributor

Choose a reason for hiding this comment

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

💭 CONSIDER: Completeness of user guidance

Issue: Both actions are valid — users can either remove the existing connection OR connect to a new MCP server node. The new message drops the first option.

Why: The old message guided users to the existing edge editor delete functionality, while the new message only mentions creating a new node. Users who want to re-wire an existing MCP node (rather than add another one) might be confused about how to proceed.

Fix: Consider whether to include both options, or whether the UX intent is to deliberately steer users toward adding new nodes:

toast.error('This MCP tool is already connected. Remove the existing connection first, or connect to a new MCP server node.');

Or keep the new message if the product intent is to encourage creating new MCP nodes over modifying existing connections.

@github-actions github-actions bot deleted a comment from claude bot Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants