claw-code/rust/crates/runtime/src
Yeachan-Heo 070f9123a3 Enable stdio MCP tool and resource method calls
The runtime already framed JSON-RPC initialize traffic over stdio, so this extends the same transport with typed helpers for tools/list, tools/call, resources/list, and resources/read plus fake-server tests that exercise real request/response roundtrips.

Constraint: Must build on the existing stdio JSON-RPC framing rather than introducing a separate MCP client layer
Rejected: Leave method payloads as untyped serde_json::Value blobs | weakens call sites and test assertions
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep new MCP stdio methods aligned with upstream MCP camelCase field names when adding more request/response types
Tested: cargo fmt --manifest-path rust/Cargo.toml --all; cargo clippy --manifest-path rust/Cargo.toml -p runtime --all-targets -- -D warnings; cargo test --manifest-path rust/Cargo.toml -p runtime
Not-tested: Live integration against external MCP servers
2026-03-31 22:45:24 +00:00
..
bash.rs feat: Rust port of Claw Code CLI 2026-03-31 17:43:09 +00:00
bootstrap.rs feat: Rust port of Claw 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 Claw Code CLI 2026-03-31 17:43:09 +00:00
lib.rs Enable stdio MCP tool and resource method calls 2026-03-31 22:45:24 +00:00
mcp.rs Add MCP normalization and config identity helpers 2026-03-31 20:23:00 +00:00
mcp_client.rs Add first MCP client transport scaffolding 2026-03-31 20:42:49 +00:00
mcp_stdio.rs Enable stdio MCP tool and resource method calls 2026-03-31 22:45:24 +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 Claw 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 Claw 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