mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-05 23:54:50 +08:00
PARITY.md called out missing MCP management in the Rust CLI, so this adds a focused read-only /mcp path instead of expanding the broader config surface first. The new command works in the REPL, with --resume, and as a direct 7[1G[2K[m⠋ 🦀 Thinking...[0m8[1G[2K[m✘ ❌ Request failed [0m entrypoint. It lists merged MCP server definitions, supports detailed inspection for one server, and adds targeted tests for parsing, help text, completion hints, and config-backed rendering. Constraint: Keep the enhancement inside the existing Rust slash-command architecture Rejected: Extend /config with a raw mcp dump only | less discoverable than a dedicated MCP workflow Confidence: high Scope-risk: narrow Directive: Keep /mcp read-only unless MCP lifecycle commands gain shared runtime orchestration Tested: cargo test -p commands parses_supported_slash_commands Tested: cargo test -p commands rejects_invalid_mcp_arguments Tested: cargo test -p commands renders_help_from_shared_specs Tested: cargo test -p commands renders_per_command_help_detail_for_mcp Tested: cargo test -p commands ignores_unknown_or_runtime_bound_slash_commands Tested: cargo test -p commands mcp_usage_supports_help_and_unexpected_args Tested: cargo test -p commands renders_mcp_reports_from_loaded_config Tested: cargo test -p rusty-claude-cli parses_login_and_logout_subcommands Tested: cargo test -p rusty-claude-cli parses_direct_agents_mcp_and_skills_slash_commands Tested: cargo test -p rusty-claude-cli repl_help_includes_shared_commands_and_exit Tested: cargo test -p rusty-claude-cli completion_candidates_include_workflow_shortcuts_and_dynamic_sessions Tested: cargo test -p rusty-claude-cli resume_supported_command_list_matches_expected_surface Tested: cargo test -p rusty-claude-cli init_help_mentions_direct_subcommand Tested: cargo run -p rusty-claude-cli -- mcp help Not-tested: Live MCP server connectivity against a real remote or stdio backend