Skip to content

[Bug]: Edit tool in Admin UI sends invalid "STREAMABLE" value for Request Type #610

@exigentix-dev

Description

@exigentix-dev

🐞 Bug Summary

Briefly describe the issue or unexpected behavior.

When editing an existing tool in the Admin UI, an invalid value of "STREAMABLE" is provided as an option and sent to the API when updating, causing it to fail validation. The ToolUpdate API expects the value to be "STREAMABLEHTTP".


🧩 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. Click the 'Edit' link for any existing tool in the Admin UI.
  2. Set the 'Request Type' to "STREAMABLE" and submit.
  3. Note the error in the logs.

🤔 Expected Behavior

What should have happened instead?

The Admin UI provides and sends the correct value of "STREAMABLEHTTP" expected by the ToolUpdate API.


📓 Logs / Error Output

Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.

mcp-gateway_1     ERROR [mcpgateway] ValidationError in admin_edit_tool: 1 validation error for ToolUpdate
mcp-gateway_1     request_type
mcp-gateway_1       Input should be 'GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'SSE', 'STDIO' or 'STREAMABLEHTTP' [type=literal_error, input_value='STREAMABLE', input_type=str]
mcp-gateway_1         For further information visit https://errors.pydantic.dev/2.11/v/literal_error
mcp-gateway_1     xxx.xxx.xxx.xxx:0 - "POST /admin/tools/bc5677dbb01a4f87ba169c3b97b01510/edit HTTP/1.1" 422

🧠 Environment Info

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

Key Value
Version or commit 0.4.0
Runtime gunicorn/23.0.0
Platform / OS Debian 12.11
Container Docker (20.10.24+dfsg1, build 297e128)

🧩 Additional Context (optional)

Add any configuration details, flags, or related issues.

Metadata

Metadata

Labels

bugSomething isn't workingtriageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions