Repository navigation
fix(mcp): add CLI help examples and align tool descriptions - #343
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rssh mcp --help补充从启动服务到执行命令的五步示例:start→ 使用返回的 URL 和认证头连接 →list_sessions→open_session→run_command。示例包含必填 JSON 参数、用户授权流程和多前端选择方式,明确操作的是已连接的终端。MCP 工具描述直接复用
core/src/ai/tools.rs,将会话授权前置条件移到额外的session_id参数说明中。共享适配器中的run_command和download_file描述均与源定义完全一致,已有 HTTP 集成测试改为严格相等断言。入口影响:
rssh mcp --help展示完整使用案例。验证:
cargo run -p rssh-cli -- mcp --help,确认帮助输出。npm test:1422 项通过;npm run build通过。cargo fmt --all --check通过。cargo test --workspace --all-features:1011 项通过,1 个现有 doctest 忽略,包含 MCP 描述一致性测试。cargo check -p rssh-cli和cargo check -p rssh-app --features server --bin rssh-server通过。git diff --check通过。未进行真实外部 MCP 客户端的端到端验证。