Skip to content

fix(mcp): replace ATX headings with bold text in tool output#852

Open
Zepp-Hanzj wants to merge 1 commit into
colbymchenry:mainfrom
Zepp-Hanzj:fix/mcp-heading-format-v2
Open

fix(mcp): replace ATX headings with bold text in tool output#852
Zepp-Hanzj wants to merge 1 commit into
colbymchenry:mainfrom
Zepp-Hanzj:fix/mcp-heading-format-v2

Conversation

@Zepp-Hanzj

Copy link
Copy Markdown

Summary

Fixes #778

Replace all ATX headings (##, ###, ####) with bold text (text) in MCP tool output to improve readability across all MCP clients.

Problem

The MCP tools were using ATX headings in their output, which caused rendering issues in MCP clients where headings appear with excessively large fonts, making the output harder to read.

Solution

Replace all heading markers with bold text formatting:

This provides consistent, readable formatting across all MCP clients without the oversized text that headings cause.

Changes

  • 31 replacements in
  • All tool output sections now use bold text instead of headings

Testing

Verified locally by running the MCP server and checking output formatting.

Fixes colbymchenry#778

The MCP tools were using ATX headings (##, ###, ####) in their output,
which caused rendering issues in MCP clients where headings appear with
excessively large fonts. Replace all headings with bold text (**text**)
for better readability across all MCP clients.

Changes:
- Replace ## headings with **bold text**
- Replace ### headings with **bold text**
- Replace #### headings with **bold text**

Signed-off-by: hanzhijian <hanzhijian@zepp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP tool results use ATX Markdown headings (##/###) — render as oversized fonts in Markdown-rendering clients

1 participant