Skip to content

[BUG] Cleanup tool descriptions to remove newlines and truncate text #557

@crivetimihai

Description

@crivetimihai

🐞 Bug Summary
Tool descriptions in the UI contain newline characters and are not truncated, leading to display and formatting inconsistencies.


🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • Other (explain below)

🔁 Steps to Reproduce

  1. In the admin UI panel, navigate to the Global tools page.
  2. In tool descriptions – observed line breaks (\n) and lack of truncation for long texts.

🤔 Expected Behavior
Tool descriptions should be cleaned to remove newline characters and truncated if they exceed a certain length, ensuring consistent formatting in the UI.

Metadata

Metadata

Assignees

Labels

frontendFrontend development (HTML, CSS, JavaScript)help wantedExtra attention is needed

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions