claudecode/crates/runtime/src
Yeachan-Heo ab9d779ecb Add MCP normalization and config identity helpers
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
2026-03-31 20:23:00 +00:00
..
bash.rs feat: Rust port of Claude Code CLI 2026-03-31 17:43:09 +00:00
bootstrap.rs feat: Rust port of Claude Code CLI 2026-03-31 17:43:09 +00:00
compact.rs feat: merge 2nd round from all rcc/* sessions 2026-03-31 17:43:25 +00:00
config.rs Unblock typed runtime integration config primitives 2026-03-31 19:17:16 +00:00
conversation.rs feat: merge 2nd round from all rcc/* sessions 2026-03-31 17:43:25 +00:00
file_ops.rs Unblock typed runtime integration config primitives 2026-03-31 19:17:16 +00:00
json.rs feat: Rust port of Claude Code CLI 2026-03-31 17:43:09 +00:00
lib.rs Add MCP normalization and config identity helpers 2026-03-31 20:23:00 +00:00
mcp.rs Add MCP normalization and config identity helpers 2026-03-31 20:23:00 +00:00
oauth.rs Add reusable OAuth and auth-source foundations 2026-03-31 19:47:02 +00:00
permissions.rs feat: Rust port of Claude Code CLI 2026-03-31 17:43:09 +00:00
prompt.rs feat: merge 2nd round from all rcc/* sessions 2026-03-31 17:43:25 +00:00
remote.rs Add fail-open remote proxy runtime primitives 2026-03-31 19:54:38 +00:00
session.rs feat: merge 2nd round from all rcc/* sessions 2026-03-31 17:43:25 +00:00
sse.rs feat: Rust port of Claude Code CLI 2026-03-31 17:43:09 +00:00
usage.rs feat: merge 2nd round from all rcc/* sessions 2026-03-31 17:43:25 +00:00