-
Notifications
You must be signed in to change notification settings - Fork 614
[BUG][UI]: Incorrect tag rendering in admin views #2267
Description
🐛 Bug: Admin UI Displays Tags as Objects Instead of Values
Description
When clicking the View button in the Admin UI, tags are rendered as JavaScript objects instead of their actual values for certain entities. This makes the tag display incorrect and hard to read.
Affected Admin Views
- MCP Servers
- Tools
- Resources
- A2A Agents
In these views, tags appear as [object Object] or object representations rather than the expected tag values (e.g., label or ID).
Working as Expected
- Server view
- Prompt view
Tags in these views are rendered correctly, indicating inconsistent tag handling across the Admin UI.
Steps to Reproduce
-
Open the Admin UI
-
Navigate to any of the following:
- MCP Servers
- Tools
- Resources
- A2A Agents
-
Click the View button for an item that has tags
-
Observe the tag display
Expected Behavior
Tags should display their actual values (e.g., label or id) instead of object representations.
Actual Behavior
Tags are rendered as objects rather than readable tag values.
Impact
- Poor readability in admin views
- Inconsistent behavior across different admin sections
- Potential confusion for admins managing tagged entities
Possible Cause
Some admin views assume tags are strings, but in certain cases tags are objects. The rendering logic does not account for object-based tags consistently across all views.
Suggested Fix
Update tag rendering logic in affected admin views to:
- Detect when a tag is an object
- Display
tag.labelortag.idwhen available - Fallback to rendering the tag value directly if neither exists