-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workingsecurityImproves securityImproves securitytriageIssues / Features awaiting triageIssues / Features awaiting triage
Milestone
Description
🐞 Bug Summary
Long input names in tool creation reflected back to user in error message
🧩 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
- Run the following
curl -X POST http://localhost:4444/tools -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN" -H "Content-Type: application/json" -d '{"name": "'"$(printf 'a%.0s' {1..300})"'", "url": "https://example.com"}'
- Error returns input
🤔 Expected Behavior
Error response should not return input back to user.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsecurityImproves securityImproves securitytriageIssues / Features awaiting triageIssues / Features awaiting triage