Skip to content

[Bug]:UI Does Not Show Error for Duplicate Server Name #476

@rakdutta

Description

@rakdutta

🐞 Bug Summary

When attempting to add a new server with the name "MCP Servers Catalog", the backend logs display an error indicating that a server with the same name already exists. However, the UI does not display any message to the user, resulting in a poor user experience and confusion.

🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - UI (admin panel)

🔁 Steps to Reproduce

  1. Go to the server registration screen.
  2. Enter "MCP Servers Catalog" as the server name (or another name that already exists).
  3. Add Server button
  4. Observe that the UI shows no error, but the logs contain:

🤔 Expected Behavior

The UI should clearly inform the user that a server with the same name already exists, preventing silent failures.


📓 Logs / Error Output

Error adding server: Failed to register server: Server already exists with name: <server_name>


🧠 Environment Info

You can retrieve most of this from the /version endpoint.

Key Value
Version or commit e.g. v0.9.0 or main@a1b2c3d
Runtime e.g. Python 3.11, Gunicorn
Platform / OS e.g. Ubuntu 22.04, macOS
Container e.g. Docker, Podman, none

🧩 Additional Context (optional)

Add any configuration details, flags, or related issues.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions