Skip to content

[Bug]: Improve consistency of displaying error messages #357

@madhav165

Description

@madhav165

🐞 Bug Summary

  1. Invalid inputs are handled differently in different places in the UI
  2. Server with invalid name - shows near field
  3. Tools with unsafe URL - shows as a big red ribbon in UI
  4. Prompt with unsafe template - shows Internal Server error
  5. Resources with invalid URI - shows a small red box at the top right

See #363 for details on how to implement

🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)

🔁 Steps to Reproduce

  1. Try invalid names, URLs, URIs from Tool, Prompt, Resource and Server screens
  2. Check the different types of warnings given

🤔 Expected Behavior

  1. All warnings on invalid inputs should be handled consistently
  2. Internal Server errors should not be created by invalid inputs

Sub-issues

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is neededtriageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions