github / github/github-mcp-server
Add setting to restrict actions to the current repo
- 主要言語
- Go
- スター
- 33k
- フォーク
- 5k
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 52
説明
### Describe the feature or problem you’d like to solve
If I ask copilot to pull the issues, or create a new issue, it is possible that it uses the wrong owner / repo and pull random issues or tries to create issues on non-existing repos.
Then after an error, it runs `git remote -v` or calls the tool `get_me` and re-does the action.
For now, it never happened that it created issues on other people repos, but it would like to exclude the possibility entirely.
### Proposed solution
Add a setting to restrict all actions to the current repo.
This would remove the "owner" and "repo" from all tool calls.
### Example prompts or workflows (for tools/toolsets only)
### Additional context
For example, the "add comment to issue" tool would become:
```
{
"body": "....",
"issue_number": 109
}
```
コントリビューションガイド
調査の方向性
No files or tests are named in the issue. Start by tracing how the current repository is determined and how owner/repo are passed to each GitHub action, then identify the setting entry point and all affected tools. Done means the setting consistently restricts actions to the current repository and is covered by tests for representative issue operations.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github, go
- 領域
- api, backend, security
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100