MCP PostToolUse hooks: verify tool_response format for MCP tools #19
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#19
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
From PR #17 review (round 2, MEDIUM-1).
Problem
post-mcp-merge-rebase.shcheckstool_response.mergedvia jq, but MCP tool results may be returned as a JSON string (fromjson.dumps()) rather than a parsed object. If Claude Code doesn't parse MCP string responses into objects,.tool_response.mergedwould be null and the fast-forward silently doesn't happen.Current behavior is fail-safe (no harm), but the hook would be a no-op.
Suggested Fix
fromjsonin the jq pipelineFiles
hooks/post-mcp-merge-rebase.sh