forgejo-mcp/operation/repo
Christoph Görn ee1217d830
fix: 🐛 request EmbeddedListCap+1 statuses to detect truncation
ListStatuses was called with default options, so Forgejo's server
default PageSize (30 == EmbeddedListCap) silently capped responses
at the cap. The >cap truncation check in resource.Bounded never
fired and the truncated/list_tool sentinel never surfaced for SHAs
with more than 30 status contexts.

Request EmbeddedListCap+1 explicitly so Bounded can correctly
distinguish "at-cap" from "over-cap".

Closes forgejo-mcp-827.
Ref PR #172 review https://codeberg.org/goern/forgejo-mcp/pulls/172#issuecomment-16022165
2026-05-28 16:13:45 +02:00
..
branch.go feat: robust stateless auth with security fixes and improved tests 2026-05-24 13:44:48 +02:00
commit.go feat: robust stateless auth with security fixes and improved tests 2026-05-24 13:44:48 +02:00
contents.go feat: robust stateless auth with security fixes and improved tests 2026-05-24 13:44:48 +02:00
contents_test.go feat: add list_repo_contents and get_repo_tree MCP tools 2026-05-05 18:49:22 +00:00
file.go feat: robust stateless auth with security fixes and improved tests 2026-05-24 13:44:48 +02:00
file_test.go feat: bounded responses for get_pull_request_diff + get_file_content (#131) 2026-05-12 10:41:52 +02:00
repo.go feat: robust stateless auth with security fixes and improved tests 2026-05-24 13:44:48 +02:00
resources_commit.go fix: 🐛 map parse errors via MapForgejoError in commit resource 2026-05-28 16:00:11 +02:00
resources_commit_test.go refactor: 🏗️ classify parse errors via sentinel ErrInvalidParams (-32602) 2026-05-28 16:08:59 +02:00
resources_repo.go fix: 🐛 map parse errors via MapForgejoError in repo resource 2026-05-28 16:01:42 +02:00
resources_repo_test.go feat: ✨ MCP resource templates — slices 4+5 (repo+owner, issue+comment) 2026-05-28 14:47:02 +02:00
resources_status.go fix: 🐛 request EmbeddedListCap+1 statuses to detect truncation 2026-05-28 16:13:45 +02:00
resources_status_test.go fix: 🐛 request EmbeddedListCap+1 statuses to detect truncation 2026-05-28 16:13:45 +02:00