-
Notifications
You must be signed in to change notification settings - Fork 433
Closed
Labels
bugSomething isn't workingSomething isn't workingtriageIssues / Features awaiting triageIssues / Features awaiting triage
Description
🐞 Bug Summary
When attempting to delete a virtual server that is not found - it returns a status code 400 with the message not found
🧩 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
- Go to /docs
- Go to DELETE /servers/{server_id}
- Enter your bearer token
- Enter a random string of an id that does not exist for example
vs-server-id-not-found
🤔 Expected Behavior
What should have happened instead?
The behaviour should return status 404
📓 Logs / Error Output
Paste any relevant stack traces or logs here.

🧠 Environment Info
You can retrieve most of this from the /version endpoint.
| Key | Value |
|---|---|
| Version or commit | 0.9.0 |
| Runtime | Python 3.12.10 |
| Platform / OS | macOS |
| Container | none |
🧩 Additional Context (optional)
Looking at DELETE /gateways/{gateway_id} there is a get_gateway so I just added the same to delete_server See here
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageIssues / Features awaiting triageIssues / Features awaiting triage