[FIX][UI]: Include public MCP objects in team-scoped server associations#3514
[FIX][UI]: Include public MCP objects in team-scoped server associations#3514crivetimihai merged 2 commits intomainfrom
Conversation
548a02b to
4b147e1
Compare
|
Thanks @gcgoncalves. This is a solid fix for #3446 — the |
62126ae to
8917a5e
Compare
Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
…/ids endpoints Add direct unit tests for _merge_select_all_ids helper covering all branches (flag not set, valid merge, int normalization, JSON decode error, missing key, empty checked list). Add regression tests for prompts and resources /ids endpoints to match the existing tool test, ensuring standalone visibility='public' condition is present in team-scoped queries. Closes #3446. Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
b4826f3 to
3b3e699
Compare
Review & ChangesRebased onto Code ReviewThe fix is well-designed with two complementary changes:
No security or performance concerns — public-visibility items are platform-wide by design, and downstream persistence code enforces final access control. Manual Testing (Playwright)
My Changes (second commit)Added 9 tests for 100% differential coverage:
All 1044 tests pass. Note (non-blocking)The |
…ons (#3514) * 3446 - Enable public MCP objects on team Servers Signed-off-by: Gabriel Costa <gabrielcg@proton.me> * test: add differential coverage for public visibility in team-scoped /ids endpoints Add direct unit tests for _merge_select_all_ids helper covering all branches (flag not set, valid merge, int normalization, JSON decode error, missing key, empty checked list). Add regression tests for prompts and resources /ids endpoints to match the existing tool test, ensuring standalone visibility='public' condition is present in team-scoped queries. Closes #3446. Signed-off-by: Mihai Criveti <crivetimihai@gmail.com> --------- Signed-off-by: Gabriel Costa <gabrielcg@proton.me> Signed-off-by: Mihai Criveti <crivetimihai@gmail.com> Co-authored-by: Mihai Criveti <crivetimihai@gmail.com> Signed-off-by: Yosief Eyob <yosiefogbazion@gmail.com>
…ons (IBM#3514) * 3446 - Enable public MCP objects on team Servers Signed-off-by: Gabriel Costa <gabrielcg@proton.me> * test: add differential coverage for public visibility in team-scoped /ids endpoints Add direct unit tests for _merge_select_all_ids helper covering all branches (flag not set, valid merge, int normalization, JSON decode error, missing key, empty checked list). Add regression tests for prompts and resources /ids endpoints to match the existing tool test, ensuring standalone visibility='public' condition is present in team-scoped queries. Closes IBM#3446. Signed-off-by: Mihai Criveti <crivetimihai@gmail.com> --------- Signed-off-by: Gabriel Costa <gabrielcg@proton.me> Signed-off-by: Mihai Criveti <crivetimihai@gmail.com> Co-authored-by: Mihai Criveti <crivetimihai@gmail.com> Signed-off-by: KRISHNAN, SANTHANA <sk8069@exo.att.com>
🐛 Bug-fix PR
📌 Summary
When editing a team server, include selected objects from public MCP servers on saving.
Screen.Recording.2026-03-06.at.09.29.18.mov
Closes #3446
🔁 Reproduction Steps
Link the issue and minimal steps to reproduce the bug.
🐞 Root Cause
There was a filter for team items on the saving and fetching logic.
💡 Fix Description
Enabled both the team and public ones on the saving and fetching conditions.
🧪 Verification
make lintmake testmake coverage✅ Checklist
make black isort pre-commit)