Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ export const Agent: FC<AgentProps> = ({
const targetNode = nodes.find((n) => n.id === params.target);
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.

return;
}
updateNodeData(targetNode.id, {
Expand Down