GitNexus/gitnexus/test/unit/mcp
Gergő Magyar 30a0d0f082
feat(mcp): query multiple repositories in one call (#3847)
* feat(mcp): merge repository query results

* feat(mcp): query explicit repository lists

Keep dispatch and SDK regressions in a dedicated unit suite beside the pure aggregation tests.

* test(mcp): verify ten-repository queries

Exercise native indexes, branch pins, pool eviction and member failure. Register the suite in the serialized LadybugDB project with one shared include/exclude path and document the array contract.

* fix(mcp): keep query catalog within budget

Condense query guidance to preserve the 70 KB catalog limit. Update schema assertions for bounded repository arrays and their source-preview contract.

* fix(mcp): address multi-repo review findings

Flag warning-only degraded members as partial. Route legacy search hints through the result repository, including source-preview follow-ups.

Refs #3847

* docs(mcp): qualify array result joins

Require matching _repo alongside process IDs in the opening query guidance.

Refs #3847

* fix(mcp): handle array query edge cases

Omit empty previews, guide failed searches, and reject unsupported repository arrays before policy selection. Resolves review feedback on #3847.

* docs(mcp): clarify group preview limits

Group queries omit source previews. Refs #3847.

* test(mcp): disambiguate query case identities

Give parameterized cases unique titles so the execution audit can reconcile every test. Refs #3847.

---------

Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
2026-11-08 12:36:48 +00:00
..
group-repo-routing.test.ts fix(mcp): reject unknown tool arguments and honor depth (#3267) 2026-09-12 06:55:14 +00:00
multi-repo-query-routing.test.ts feat(mcp): query multiple repositories in one call (#3847) 2026-11-08 12:36:48 +00:00
multi-repo-query.test.ts feat(mcp): query multiple repositories in one call (#3847) 2026-11-08 12:36:48 +00:00
query-process-attaches.test.ts fix(query): send hub content once across process_symbols rows (#3356) 2026-09-24 07:58:51 +01:00