Skip to content

[Bug]: Test tool UI passes array inputs as strings #620

@madhav165

Description

@madhav165

🐞 Bug Summary

Test tool UI passes array inputs as strings


🧩 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. Test a tool with one of the inputs of type array, e.g. check-servers
  2. Enter a list of servers
  3. Tool call fails saying the list is not of type array

🤔 Expected Behavior

Parse fields with input schema type array as arrays and pass to tool calling API


📓 Logs / Error Output

Input validation error: \[{'host': '8.8.8.8', 'name': 'Google Public DNS', 'responds_to_icmp': True, 'location': 'Global', 'notes': 'Widely used, low-latency'}]\" is not of type 'array'"

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfrontendFrontend development (HTML, CSS, JavaScript)triageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions