claw-code/rust/crates/rusty-claude-cli/src
YeonGyu-Kim 64f92b1560 fix(mcp): exit 1 when JSON envelope contains ok:false
mcp info, mcp describe, and mcp list-filter all return
{"action":"error","ok":false,...} but previously exited 0,
requiring automation callers to inspect the envelope field.

After this fix: print_mcp detects ok:false in the rendered JSON
value and calls process::exit(1) after printing, so the exit code
reflects the semantic error in the envelope.

Unaffected: mcp list, mcp show, mcp help all have no ok field and
continue to exit 0 (they are not error paths).

Closes ROADMAP #68 (partial — agents bogus/mcp show nonexistent
found:false remain exit:0 as they use different envelope shapes).
2026-05-05 06:05:28 +09:00
..
init.rs feat: #142 structured fields in claw init --output-format json 2026-04-21 17:42:00 +09:00
input.rs Reduce REPL overhead for orchestration-heavy workflows 2026-04-02 07:19:14 +00:00
main.rs fix(mcp): exit 1 when JSON envelope contains ok:false 2026-05-05 06:05:28 +09:00
render.rs Remove the deprecated Claude subscription login path and restore a green Rust workspace 2026-04-11 17:24:44 +00:00