fix: deep scan — issue search, asset upload, metadata guard, file create #26
Reference in New Issue
Block a user
Delete Branch "fix/deep-scan-bugs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Deep code scan found 5 bugs in the MCP server tools.
Fixes
gitea_issue_search: Called/repos/search(repo search) instead of/repos/issues/search— issues were never foundgitea_release_asset_upload: Usedclient.post()which JSON-stringifies body and setsContent-Type: application/json— Gitea expectsapplication/octet-stream. Now usesfetch()directly with correct headers.gitea_metadata_update: If the initial GET fails (404),current.datais an error object that gets spread into the PUT body. Now guards withcurrent.status < 400check.gitea_bulk_file_push: Usedclient.post()for new file creation — Gitea Contents API requires PUT for both create and update.1.0.0to1.4.2matching package.json.Test Plan
gitea_issue_searchreturns actual issuesgitea_release_asset_uploadsuccessfully uploads a binary filegitea_metadata_updateworks on repos without existing metadatagitea_bulk_file_pushcreates new files in target repos