🚀 Add MCP system info, instructions, and auth fixes#42
Merged
Conversation
Contributor
HanXHX
commented
May 16, 2026
- Add system info and contextual instructions to the MCP server
- Fix MCP auth prompts handling
- Add file management advice
- Update README and MCP documentation
- Add system info and contextual instructions to the MCP server - Fix MCP auth prompts handling - Add file management advice - Update README and MCP documentation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the MCP server experience by adding runtime context for path handling, clearer authentication guidance, and updated MCP documentation.
Changes:
- Adds MCP server instructions and a
system_infotool for OS/home/path context. - Updates auth-related MCP responses/descriptions to guide clients toward in-MCP login.
- Expands README and MCP docs with setup and client limitation guidance.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Reflows MCP intro/setup documentation. |
| doc/mcp.md | Documents auth flow, system_info, and client limitations. |
| cmd/mcp.go | Adds MCP instructions, WSL/path detection, system_info, and auth next-step responses. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| The MCP server operates in two modes: | ||
|
|
||
| 1. **With token on disk** (default): Reads stored token from config directory (default: `.retyc/` or `~/.config/retyc/`). | ||
| 1. **With token on disk** (default): Reads stored token from config directory (default: `.retyc/` or`~/.config/retyc/`). |
| 2. If any tool returns error_code=not_authenticated: call auth_login_start immediately. | ||
| 3. To upload: pass the user-provided absolute path(s) directly to transfer_send or dataroom_upload. | ||
| 4. To download: pass the user-provided absolute destination directory to transfer_download or dataroom_download. | ||
| 5. Never read or relay written files after download unless the user explicitly requests it.`, |
Contributor
Author
|
@copilot apply changes based on the comments in this thread |
Agent-Logs-Url: https://github.com/retyc/retyc-cli/sessions/e2e22e6c-e829-494f-9c61-1bf95de2d9f3 Co-authored-by: HanXHX <5664215+HanXHX@users.noreply.github.com>
Contributor
Applied the review-thread fixes in commit |
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.