Skip to content

Add support for managing users SSH key related operations #473

Open
@glendsoza

Description

@glendsoza

Describe the feature or problem you’d like to solve

Add support for managing users SSH key related operations:

List users' SSH keys
Get details about a user's SSH key
Add a public key

Proposed solution

How will it benefit GitHub MCP Server and its users?

Adding these features will benefit the GitHub MCP Server and its users by allowing them to manage and debug issues related to SSH keys associated with their GitHub account.

Users will be able to effectively manage their SSH keys which can help in resolving frequent permission denied errors encountered during git operations (pull/push etc).

Additional context

The motivation behind adding these tools is to ensure users have their SSH keys correctly configured, as we receive numerous requests concerning permission denied messages.

Activity

changed the title [-]Add support for managing users' SSH key related operations:[/-] [+]Add support for managing users SSH key related operations[/+] on Jun 4, 2025
SamMorrowDrums

SamMorrowDrums commented on Jun 7, 2025

@SamMorrowDrums
Collaborator

Hey thanks for this, I am little concerned to add this because in all honesty the risk of Indirect Prompt Injection being exploitable is made much worse by being able to trick an agent into setting SSH keys on an account to get access to all private repos.

So I am not sure we would be able to integrate the change.

Retrieving public keys is ok but private is a can of worms with MCP security.

glendsoza

glendsoza commented on Jun 8, 2025

@glendsoza
Author

Hi, thanks for taking the time to review

I agree that there is a risk of prompt injection when adding a private key to the account.

With that being said, if I remove the tool to add_users_public_ssh_key, will this enhancement be considered then?

SamMorrowDrums

SamMorrowDrums commented on Jun 8, 2025

@SamMorrowDrums
Collaborator

I was thinking that at first, but I'd like to check internally with some folks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @SamMorrowDrums@D1M1TR10S@glendsoza

      Issue actions

        Add support for managing users SSH key related operations · Issue #473 · github/github-mcp-server