mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-02 16:51:51 +08:00
Add runtime MCP helpers for name normalization, tool naming, CCR proxy URL unwrapping, config signatures, and stable scope-independent config hashing. This is the fastest clean parity-unblocking MCP slice because it creates real reusable behavior needed by future client/transport work without forcing a transport boundary prematurely. The helpers mirror key upstream semantics around normalized tool names and dedup/config-change detection. Constraint: Must land a real MCP foundation without pulling transport management into the same commit Constraint: Runtime verification must pass with fmt, clippy, and tests Rejected: Start with transport/client scaffolding first | would need more design surface and more unverified edges Rejected: Leave normalization/signature logic implicit in later client code | would duplicate behavior and complicate testing Confidence: high Scope-risk: narrow Reversibility: clean Directive: Reuse these helpers for future MCP tool naming, dedup, and reconnect/change-detection work instead of re-encoding the rules ad hoc Tested: cargo fmt --all; cargo clippy -p runtime --all-targets -- -D warnings; cargo test -p runtime Not-tested: live MCP transport connections; plugin reload integration; full connector dedup flows