github / github/github-mcp-server

Allow uploading files as attachments

Đang mở
#738 19 bình luận 75 reaction 0 người được giao Xem trên GitHub
enhancement tool-improvement
Ngôn ngữ chính
Go
Star
33k
Fork
5k
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
52

Mô tả

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

I would like to be able to create a PR that includes images in its description. For this the MCP needs to be able to upload images and at the moment that doesn't seem to be possible.

### Proposed solution

By doing this we'll be able to have more descriptive / visual PRs.

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

Claude Code Prompt: Create a PR with the UI change and submit screenshots of before and after the feature implementation.

```
I've updated PR #20 with proper screenshot references. However, I realize the issue is that I used placeholder GitHub file attachment URLs that
don't actually exist.

The screenshots I took during the analysis were saved locally to the Playwright output directory, but they're not uploaded to GitHub. To properly
include the screenshots in the PR, you would need to either:

1. Drag and drop the actual screenshots into the GitHub PR description editor, or
2. Upload them as GitHub issues attachments first to get real URLs

Since I can't directly upload files to GitHub through the API, the PR description now has placeholder image links that show the intended structure,
but you'll need to manually upload the actual screenshots I captured during the UX analysis.
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.