Skip to content

fix(mcp): stop validating URL while typing - #1827

Closed
The-AarushiSingh wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
The-AarushiSingh:fix/url-validation-typing
Closed

fix(mcp): stop validating URL while typing#1827
The-AarushiSingh wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
The-AarushiSingh:fix/url-validation-typing

Conversation

@The-AarushiSingh

Copy link
Copy Markdown
Contributor

Fixes #1762

Description

Fixes #1762 - Remote MCP server URLs are no longer validated while typing.

Problem

The Add MCP page attempted to connect to the server URL on every keystroke, causing annoying loading/error states while the user was still typing.

Solution

  • Removed the debounced auto-probing useEffect
  • Added submit-time URL validation
  • Changed button to "Check server" before probing
  • Users can now type freely without validation

Testing

  • ✅ Targeted lint passed
  • ✅ Typecheck passed
  • ✅ Manual verification: no validation while typing, validates on submit

- Remove debounced auto-probing useEffect that triggered on every keystroke
- Remove useRef and canAdd
- Add submit-time URL validation
- Add explicit probing when no probe exists
- Change button to 'Check server' before probing
- Users can now type freely without annoying validation

Fixes UsefulSoftwareCo#1762
@The-AarushiSingh

Copy link
Copy Markdown
Contributor Author

Closing this PR since the related issue (#1762) has been closed. Thanks!

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.

Avoid validating remote MCP server URLs while they are being typed

1 participant