Skip to content

[BUG][API]: Tool update resets visibility to public when field not provided #3468

@KKNithin

Description

@KKNithin

🐞 Bug Summary

While updating the tool if we don't provided the optional field visibility, then it considers it "public" by default and overrides the existing visibility of tool and makes it "public" visible.


🧩 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. Have a tool which is visible "private" or "team"
  2. update any field of tool but don't provide field "visibility"
  3. update is successful but tool visibility is "public" now.

🤔 Expected Behavior

If tool visibility is not provided then existing visibility should be taken as reference.


Metadata

Metadata

Assignees

Labels

MUSTP1: Non-negotiable, critical requirements without which the product is non-functional or unsafeapiREST API Related itembugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions