-
Notifications
You must be signed in to change notification settings - Fork 2
docs: add .thvignore documentation for hiding sensitive files #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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 adds comprehensive documentation for the .thvignore feature, which allows users to hide sensitive files from MCP containers while maintaining bind mounts for development. The feature helps prevent secrets like environment variables, SSH keys, and cloud credentials from being exposed to containerized MCP servers.
Key changes:
- Added complete
.thvignoredocumentation covering usage, patterns, and troubleshooting - Updated existing MCP server documentation to reference the new security feature
- Integrated the new page into the documentation sidebar under the Security section
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
docs/toolhive/guides-cli/thvignore.md |
New comprehensive documentation page explaining .thvignore functionality, usage patterns, and troubleshooting |
docs/toolhive/guides-cli/run-mcp-servers.mdx |
Added reference to .thvignore documentation in the file system access section |
sidebars.ts |
Added the new .thvignore page to the Security section of the documentation sidebar |
- Add new documentation page explaining .thvignore functionality - Document how to prevent secrets from leaking into MCP containers - Include examples for creating and using .thvignore files - Add reference to .thvignore in run-mcp-servers guide - Update sidebar to include new .thvignore page under Security section
- Fix global config path to be cross-platform compatible (Linux/macOS/Windows) - Remove redundant Requirements section - Change section heading to 'Create an ignore file' - Update file creation description to be more specific - Replace 'fetch' with 'filesystem' in command examples (better example) - Update troubleshooting section to use collapsible details format - Convert recommendation text to use tip admonition format - Improve global patterns description text - Add clarification about pattern matching limitations (no full glob syntax)
df26d9d to
ac67329
Compare
JAORMX
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback @danbarr! I've addressed all your comments:
- Fixed the global config paths to be cross-platform (Linux/macOS/Windows)
- Removed the Requirements section since it was redundant
- Changed the heading and made the file creation description more specific
- Switched from
fetchtofilesystemin the examples - much better since it actually uses the mounts - Updated troubleshooting to use collapsible details
- Converted the recommendation to a tip admonition
- Clarified that we don't support full gitignore glob syntax like
**/*.env
Should be good to go now.
Summary
This PR adds comprehensive documentation for the
.thvignorefeature in ToolHive, which allows users to prevent sensitive files from being exposed when mounting directories to MCP containers.Closes #109
Changes
✨ Added new documentation page
/docs/toolhive/guides-cli/thvignore.mdexplaining:.thvignoreworks with tmpfs and bind mount overlays.thvignorefiles.env, SSH keys, cloud credentials)📝 Updated
/docs/toolhive/guides-cli/run-mcp-servers.mdxto reference the new.thvignoredocumentation in the file system access section📚 Updated
sidebars.tsto include the new.thvignorepage under the Security sectionContext
The
.thvignoremechanism is an important security feature that helps developers:.env, SSH keys, and cloud credentials secureThis feature was added in ToolHive v0.2.1 (see stacklok/toolhive#1137).
Testing