forgejo-mcp/demos
Christoph Görn 03aaf58679
feat: ✨ add issue & comment attachment tools (closes #106)
Implements 12 new MCP tools for full CRUD on issue and comment
attachments via a new raw-HTTP helper, bypassing the SDK gap.

New packages:
- pkg/forgejo/rawhttp.go: DoJSON, DoJSONList, DoMultipart, DoRaw
  with 1 MiB inline cap (ErrPayloadTooLarge sentinel), auth-header
  propagation, and 401/403/404 error sentinels
- operation/attachment/attachment.go: 12 tools registered under the
  new "attachment" CLI domain

Key design decisions (see docs/plans/issue-attachments.md):
- Files < 1 MiB: inline as BlobResourceContents + metadata JSON
- Files >= 1 MiB: metadata + browser_download_url only; caller fetches
  with Authorization: token (verified live against Codeberg API)
- Always includes browser_download_url regardless of size
- 404 on list endpoints treated as empty array, not error

Also:
- operation/params/params.go: attachment param descriptions
- operation/operation.go + cmd/cli.go: registration wired
- README.md: tool table updated
- demos/issue-attachments.md + demos/comment-attachments.md added
2026-04-26 13:10:49 +02:00
..
check-notifications.md demo: add showboat demo for check_notifications with live output (intercom-8tn.1) 2026-03-07 12:23:47 +01:00
comment-attachments.md feat: ✨ add issue & comment attachment tools (closes #106) 2026-04-26 13:10:49 +02:00
issue-attachments.md feat: ✨ add issue & comment attachment tools (closes #106) 2026-04-26 13:10:49 +02:00
issue-labels.md docs: 📝 add showboat demo for issue label management tools 2026-03-20 17:57:11 +01:00
issue-stopwatch.md feat: ✨ add issue/PR time tracking and stopwatch tools 2026-04-21 22:49:07 +02:00
issue-time-tracking.md feat: ✨ add issue/PR time tracking and stopwatch tools 2026-04-21 22:49:07 +02:00
list-milestones-labels.md demo: add clean showboat demo using env-var credentials only (intercom-ntx.1) 2026-03-07 09:47:50 +00:00
notifications-management.md fix(notifications): address PR #86 review comments 2026-03-08 11:17:18 +01:00
org-management.md docs: 📝 add showboat demo for organization management tools 2026-03-20 08:20:03 +01:00
streamable-http-transport.md feat: ✨ add streamable HTTP transport support (#99) 2026-03-28 00:07:10 +01:00