Files
gitea-mcp/internal/tools
mathiasandClaude Opus 4.8 e0bede0547 fix(tools): reject empty repo/name identifier at tool layer (#37)
An empty required repo identifier built a trailing-empty path segment
(`/api/v1/repos/{owner}/`) and leaked gitea's bare 404. parseArgs now
validates, via reflection, that `repo`/`name` string args are non-empty and
returns a typed ErrValidation naming the field. Optional identifiers (e.g.
code_search's owner-wide fan-out `repo`) opt out with `,omitempty`. `owner` is
already enforced by the allowlist check.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-03 22:47:05 +02:00
..
2026-05-06 22:38:15 +02:00
2026-05-06 22:49:50 +02:00
2026-05-06 22:51:21 +02:00
2026-05-04 22:21:20 +02:00
2026-05-06 22:46:11 +02:00
2026-05-04 22:08:24 +02:00
2026-05-04 22:07:44 +02:00
2026-05-06 22:59:51 +02:00
2026-05-06 22:54:22 +02:00