405 method not allowed on update_file #1
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SquareCows/forgejo-mcp#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
It would seem the update_file action is broken, it consistently fails with "405 Method Not Allowed". Based on the Forgejo logs when the request is made, it looks like the MCP is trying to use the PATCH verb at "/repos/owner/repo/contents/filepath", but according to Forgejo's swagger docs that endpoint only accepts POST for creating files and PUT for updating files.
405 not allowed on update_fileto 405 method not allowed on update_filehopefully this with be fixed in 0.1.6
update_filenow uses PUT instead of PATCH on/repos/{owner}/{repo}/contents/{filepath}, matching the Forgejo API spec. PATCH was returning405 Method Not AllowedAppreciate the quick response. I see the new release in the repo but it looks like it hasn't hit npm yet, I'll keep an eye out for it.
it should be there now and I have made a few other fixes so its 0.1.7 you need.