mirror of
https://gitea.com/gitea/gitea-mcp.git
synced 2026-08-03 07:39:22 +02:00
feat(issue): add attachment read downloads (#218)
- Add a read-only `attachment_read` tool for issue and issue comment attachments.
- Use the existing Gitea SDK attachment metadata APIs for `list` and `get`.
- Add authenticated `/attachments/{uuid}` downloads in the MCP server for `download`, with small image inline results and streamed file downloads for larger content.
- Add `-max-inline-attachment-bytes` / `GITEA_MAX_INLINE_ATTACHMENT_BYTES` to configure inline image limits.
- Update the tool tables in all README variants.
Refs: #209
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/218
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
@@ -151,6 +151,7 @@ Cursor 等客户端可使用 stdio 命令:
|
||||
| package_read | 软件包 | 读取 | 读取软件包注册表:列出软件包、列出版本或获取某个版本 |
|
||||
| package_write | 软件包 | 写入 | 删除软件包版本(不可恢复) |
|
||||
| list_issues | 问题 | 读取 | 列出仓库问题 |
|
||||
| attachment_read | 问题 | 读取 | 读取问题/评论附件:列出元数据、获取元数据或下载内容 |
|
||||
| issue_read | 问题 | 读取 | 读取问题:详情、评论或标签 |
|
||||
| issue_write | 问题 | 写入 | 写入问题:创建、更新、管理评论和标签 |
|
||||
| list_pull_requests | 拉取请求 | 读取 | 列出仓库拉取请求 |
|
||||
|
||||
Reference in New Issue
Block a user