GitNexus/gitnexus/test
Temirkhan 1f7d45de10 feat(mcp): add tool safety annotations (#1127)
* feat(mcp): add tool safety annotations

* test(mcp): address PR #1127 review follow-ups

- Replace private `_requestHandlers` SDK access in server.test.ts with
  `Client` + `InMemoryTransport.createLinkedPair()` for the tools/list
  annotation propagation test. The new path uses supported public APIs
  and surfaces SDK changes loudly instead of silently degrading.
- Extract `OPEN_WORLD_READ_ONLY_TOOLS` set in tools.test.ts so future
  read-only open-world tools can be added without rewriting the
  invariant; preserves the current "only `query` is open-world" guard.
- Add inline rationale on `group_sync` annotations explaining the
  conservative `idempotentHint: false` (writes contracts.json on every
  call even when output is deterministic).

No runtime behavior change. Annotations themselves and tools/list shape
are unchanged.

---------

Co-authored-by: Gergo Magyar <gergomagyar@icloud.com>
2026-05-03 18:36:46 +08:00
..
fixtures fix(python): walk ancestors for multi-segment dotted imports (#1241) 2026-05-03 18:36:46 +08:00
helpers fix(deps): upgrade @ladybugdb/core to 0.16.0 to resolve native segfaults (#1235) 2026-04-30 17:40:39 +01:00
integration fix(python): make multi-segment suffix fallback deterministic (#1253) 2026-05-03 18:36:46 +08:00
unit feat(mcp): add tool safety annotations (#1127) 2026-05-03 18:36:46 +08:00
utils ci: add macOS to cross-platform test matrix (#208) 2026-03-07 10:38:32 +00:00