GitHub MCP: Issue creation preview is unreadable for multi-line content

Resolved 💬 3 comments Opened Apr 2, 2026 by mik-laj Closed Apr 5, 2026

Problem

When creating a GitHub issue using the GitHub MCP tool, the preview of the issue body is unreadable. Multi-line content (especially from HEREDOC strings or formatted markdown) is collapsed into a single line, making it impossible to verify the content before approval.

Current Behavior

When previewing an issue body with multiple lines or complex formatting, the entire text is displayed on one line, making it:

  • Difficult to verify if the command/content is correct
  • Impossible to spot formatting issues before submission
  • Hard to ensure no sensitive data is being included

<img width="1512" height="588" alt="Image" src="https://github.com/user-attachments/assets/a074f184-c926-4ab5-92e0-66130d5dd22f" />

Security Concern

This is a potential security issue because:

  1. Developers must approve the issue creation "blind" without being able to properly review the content
  2. Claude Code may be running in the context of one project while creating issues in another repository
  3. It's easy to accidentally include secrets or sensitive information without realizing it due to poor readability in the preview

Expected Behavior

The preview should display multi-line content with proper formatting and line breaks, so developers can:

  • Clearly review the issue body before submission
  • Verify that no secrets or sensitive data are being included
  • Catch formatting issues (markdown, code blocks, etc.) before creating the issue

Example

A HEREDOC like this should be readable in preview:

## Summary
Line 1
Line 2
Line 3

Not collapsed into: ## Summary Line 1 Line 2 Line 3

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗