github / github/github-mcp-server

Add deterministic toolset resolution ordering for default and custom toolsets

未关闭
#2,104 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
33k
派生
5k
平均合并
2 天 1 小时
30 天内合并 PR
52

描述

Problem
Toolset resolution with overlapping include/exclude/default inputs can produce non-deterministic exposure ordering, making policy verification and reproducibility harder.

Why now
Predictable capability exposure is required for governance and deterministic client behavior.

Expected behavior
Given equivalent config, resolved toolset ordering is deterministic and testable.

Acceptance criteria
- Toolset resolution emits stable ordering for equivalent inputs.
- Overlapping include/exclude resolution remains semantically correct.
- Tests cover default+custom overlap scenarios.

Evidence packet
- Commit under test: bf6467855c13d3b8f5cf72f8dfd9c86f8336b20b
- Runtime environment: macOS Darwin 25.3.0 arm64, Go 1.25.7
- Minimal repro:
1. Resolve toolsets repeatedly with same include/exclude config.
2. Compare resolved tool list order.
- Expected: deterministic stable order.
- Actual: ordering is not guaranteed by contract/tests.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。