fix: enable MCP tools in Claude Code headless mode for issue handler
The previous fix corrected the command syntax but Claude still couldn't
post comments because MCP tools were not explicitly enabled.
Changes:
- Added --allowedTools flag with mcp__gogs and essential tools
- Enables Gogs MCP server tools (get_issue, list_issue_comments, create_issue_comment, etc.)
- Includes Read, Write, Edit, Bash, Grep, Glob, TodoWrite for file operations
- Multi-line command format for better readability
According to Claude Code headless documentation, tools must be explicitly
allowed using --allowedTools flag with comma-separated tool names.
MCP servers use the naming convention mcp__[server_name].
Tested with test-mcp-tools.sh which confirms Claude can now access and
use all Gogs MCP tools including create_issue_comment.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>