Skip to content

Server save ssh port#10

Merged
chouzz merged 1 commit into
mainfrom
cursor/server-save-ssh-port-6fd8
Dec 25, 2025
Merged

Server save ssh port#10
chouzz merged 1 commit into
mainfrom
cursor/server-save-ssh-port-6fd8

Conversation

@chouzz
Copy link
Copy Markdown
Owner

@chouzz chouzz commented Dec 25, 2025

Enable setting custom SSH ports for saved servers and include the used port in upload/download tool responses.

The HostStore.upsert() method previously hardcoded the SSH port to 22, preventing users from saving servers with custom SSH ports. This PR modifies upsert to accept and persist a port parameter, defaulting to 22 or preserving an existing port if not provided during an update. It also adds the port parameter to the save_server MCP tool and includes the active connection's port in upload_file and download_file responses for better transparency.


Open in Cursor Open in Web

Co-authored-by: zhouhua258 <zhouhua258@outlook.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Dec 25, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@chouzz chouzz marked this pull request as ready for review December 25, 2025 13:06
@chouzz chouzz merged commit 4ced2c2 into main Dec 25, 2025
2 checks passed
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.

2 participants