MCP PostToolUse: verify tool_response format for merge fast-forward hook #21
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom#21
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?
Context
post-mcp-merge-rebase.shchecks.tool_response.mergedvia jq. But forgejo-mcp returns a JSON string viajson.dumps(), sotool_responsemight be a raw string (not a parsed object), making.mergedreturn null.Impact
Fail-safe: hook silently exits without fast-forwarding local main. No breakage, but defeats the purpose.
Suggested fix
Test an actual MCP merge to see the PostToolUse stdin format. Then either:
fromjsonif it's a raw stringDiscovered in
PR #17 review, round 2