-
Notifications
You must be signed in to change notification settings - Fork 244
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workingtriageIssues / Features awaiting triageIssues / Features awaiting triage
Milestone
Description
🐞 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
- Click the 'Edit' link for any existing tool in the Admin UI.
- Set the 'Request Type' to "STREAMABLE" and submit.
- 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.
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
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageIssues / Features awaiting triageIssues / Features awaiting triage