github / github/github-mcp-server

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

未关闭
#1,568 1 条评论 1 个 reaction 已指派 1 人 已被 @omgitsads 认领 在 GitHub 查看
enhancement
主要语言
Go
星标
33k
派生
5k
平均合并
2 天 1 小时
30 天内合并 PR
52

描述

### 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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。