github / github/github-mcp-server

Mutliple github accounts with .ssh/config workaround. Owner & repo cannot be extracted

Open
#1,568 1 comment 1 reaction 1 assignee Claimed by @omgitsads View on GitHub
enhancement
Dominant language
Go
Stars
33k
Forks
5k
Avg merge
2d 1h
Merged PRs (30d)
52

Description

### Describe the feature or problem you’d like to solve

Working with multiple github accounts (work, private) forces me to use ssh configurations for each account,
which looks like this:

```
Host me.github.com
Hostname github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_ed25519_me
```

### Proposed solution

Enabling users who have multiple github accounts to use mcp server depending on their user

### Example prompts or workflows (for tools/toolsets only)

Obviously the culprit here is the domain name, another workaround is also welcome,

I currently use gemini-cli to call this mcp server.
```
> /setup-github provide a github action, that uses pulumi to deploy this application as a gcp cloud run instance. Owner is innerwitsend and Repo is
meeyquizmas. I had to change github url to use dedicated ssh keys

✕ Owner & repo could not be extracted from remote URL: git@me.github.com:user/repo.git
```

### Additional context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.