Skip to content

🚀 Add MCP system info, instructions, and auth fixes#42

Merged
HanXHX merged 2 commits into
masterfrom
mcp_system_info
May 16, 2026
Merged

🚀 Add MCP system info, instructions, and auth fixes#42
HanXHX merged 2 commits into
masterfrom
mcp_system_info

Conversation

@HanXHX
Copy link
Copy Markdown
Contributor

@HanXHX 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
Copilot AI review requested due to automatic review settings May 16, 2026 17:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_info tool 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.

Comment thread doc/mcp.md Outdated
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/`).
Comment thread cmd/mcp.go Outdated
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.`,
@HanXHX
Copy link
Copy Markdown
Contributor Author

HanXHX commented May 16, 2026

@copilot apply changes based on the comments in this thread

Copy link
Copy Markdown
Contributor

Copilot AI commented May 16, 2026

@copilot apply changes based on the comments in this thread

Applied the review-thread fixes in commit f87903e: corrected the spacing typo in doc/mcp.md and made MCP zero-knowledge guidance consistent in cmd/mcp.go by removing the download-read exception wording.

@HanXHX HanXHX merged commit 935e031 into master May 16, 2026
2 checks passed
Copilot finished work on behalf of HanXHX May 16, 2026 17:37
@HanXHX HanXHX deleted the mcp_system_info branch May 19, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants