mirror of
https://github.com/devnullvoid/mcp-ssh-session.git
synced 2026-04-26 22:15:51 +03:00
[GH-ISSUE #3] is it possible to have standrard way to hide critical info from agents? #2
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mcp-ssh-session#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Saifullah336 on GitHub (Jan 22, 2026).
Original GitHub issue: https://github.com/devnullvoid/mcp-ssh-session/issues/3
Originally assigned to: @devnullvoid on GitHub.
Hello there,
thanks a lot for this awesome hidden gem.it helps me manage and automate many things on prod server. Really grateful for this. I haven't seen much stable ssh MCP lately, rather than this and https://github.com/tufantunc/ssh-mcp .so I wanted some privacy features of the later one's inside this one. This way we would have best of both worlds. I actually have it done using a minimal but hacky way>>
github.com/devnullvoid/mcp-ssh-session@0733c0ae5f. it works just nicely. Can you give me suggestions regarding how I can make this better? Afterward, I am willing to send a pull request .@devnullvoid commented on GitHub (Feb 22, 2026):
Hi @Saifullah336,
Thank you for this excellent feature request and for sharing your implementation! This is a valuable addition for production environments where credential privacy is crucial.
I've implemented the environment variable override system based on your proposal, with a few improvements:
✅ What's Implemented
Core Features:
OVRD_{host}_*prefixHOST,PORT,USER,PASS,KEY,SUDO_PASS,ENABLE_PASS_get_env_override()helper method insession_manager.pyImprovements from your implementation:
OVRD_{host}_ENABLE_PASSfor network devices (routers/switches)📁 Changes Made
session_manager.py_resolve_connection()override logic and_get_env_override()helperserver.pyfile_manager.pyAGENTS.mdREADME.mdtests/test_env_override.py🧪 Tests
Added 10 unit tests covering:
All tests pass ✅
📖 Documentation
Updated both
AGENTS.mdandREADME.mdwith:Thanks again for this great contribution! The feature is now available and will help users keep their production credentials secure while still benefiting from AI-powered server management.
Closing this issue as implemented.