feat: Major refactor to v1.0.0 - Redesigned MCP tool surface and persistence layer #5
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.
Major refactor to v1.0.0 - Redesigned MCP tool surface and persistence layer
This PR implements a comprehensive refactor of the RemoteShell MCP server according to the task.md requirements:
Key Changes
Complete redesign of MCP tools: Replaced the old 6 tools with a new streamlined set:
list_servers- Get all saved server configurations with statussave_server- Persist server connection inforemove_server- Delete saved server configurationsexecute_command- Execute non-interactive shell commandsupload_file- Upload files to remote serversdownload_file- Download files from remote serversNew persistence layer: Moved from
~/.remoteShell/config.jsonto~/.config/remoteshell/hosts.jsonwith enhanced schemaConnection status caching: Added
last_connectedtimestamp tracking to help LLMs prioritize recently used serversEnhanced error handling: Added machine-readable error codes (e.g.,
auth_failed) to enable better LLM recovery and user guidanceAutomatic path handling: File transfer tools now auto-generate local paths when omitted and return them in responses
Simplified configuration: Single
uvxsetup method only, removed complex multi-config approachesFastMCP 2.x features: Leveraged new decorator capabilities for richer tool descriptions and parameter validation
Breaking Changes
Testing
All tests pass and the server builds correctly with the new architecture.