fix: add curl fallback to /debug-report when MCP tools unavailable #103
Reference in New Issue
Block a user
Delete Branch "fix/issue-100-debug-report-fallback"
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
/debug-reportwhen MCP tools are unavailableProblem
When MCP tools are not available in a session (the very scenario
/debug-reportis designed to diagnose), the command could not create the diagnostic issue, defeating its purpose.Solution
Step 6 now offers two options:
Security measures implemented:
mktemp -m 600for restrictive file permissionsjq --rawfilefor safe JSON construction (avoids command substitution vulnerabilities)Test plan
/debug-reportwhen MCP tools ARE available (Option A should work)/debug-reportwhen MCP tools are NOT available with credentials configured/debug-reportwhen MCP tools are NOT available without credentials (should save locally)Fixes #100
🤖 Generated with Claude Code