universal-document-mcp
Version:
Universal Document Converter MCP Server - AI-powered markdown to PDF conversion with Mermaid diagram support for Claude Desktop, Cline, and other MCP clients
367 lines • 9.64 kB
JSON
{
"analysis_timestamp": "2025-06-22T16:52:05.401581",
"file_analyzed": "architectural-vision-enhanced-final.md",
"manual_breaks_found": 17,
"pattern_distribution": {
"before_major_heading": 6,
"before_section_heading": 6,
"before_subsection_heading": 5
},
"average_confidence": 0.841,
"suggested_breaks": 17,
"patterns": [
{
"line": 30,
"type": "before_major_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 29,
"heading_level_after": 1,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 101,
"type": "before_section_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 70,
"heading_level_after": 2,
"has_diagram_before": true,
"has_diagram_after": false
}
},
{
"line": 134,
"type": "before_subsection_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 32,
"heading_level_after": 3,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 165,
"type": "before_subsection_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 30,
"heading_level_after": 3,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 212,
"type": "before_subsection_heading",
"confidence": 0.8,
"context": {
"lines_since_last_break": 46,
"heading_level_after": 3,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 244,
"type": "before_major_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 31,
"heading_level_after": 1,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 292,
"type": "before_subsection_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 47,
"heading_level_after": 3,
"has_diagram_before": true,
"has_diagram_after": false
}
},
{
"line": 331,
"type": "before_subsection_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 38,
"heading_level_after": 3,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 348,
"type": "before_major_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 16,
"heading_level_after": 1,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 381,
"type": "before_section_heading",
"confidence": 0.8,
"context": {
"lines_since_last_break": 32,
"heading_level_after": 2,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 416,
"type": "before_section_heading",
"confidence": 0.8,
"context": {
"lines_since_last_break": 34,
"heading_level_after": 2,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 447,
"type": "before_section_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 30,
"heading_level_after": 2,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 477,
"type": "before_major_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 29,
"heading_level_after": 1,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 511,
"type": "before_section_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 33,
"heading_level_after": 2,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 539,
"type": "before_major_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 27,
"heading_level_after": 1,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 574,
"type": "before_section_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 34,
"heading_level_after": 2,
"has_diagram_before": false,
"has_diagram_after": false
}
},
{
"line": 598,
"type": "before_major_heading",
"confidence": 0.85,
"context": {
"lines_since_last_break": 23,
"heading_level_after": 1,
"has_diagram_before": false,
"has_diagram_after": false
}
}
],
"suggestions": [
{
"line_number": 32,
"reason": "Before level 1 heading",
"confidence": 0.8828571428571428,
"page_length": 32,
"block_type": "heading",
"block_level": 1,
"estimated_new_page_length": 2
},
{
"line_number": 36,
"reason": "Before code block/diagram",
"confidence": 0.4228571428571429,
"page_length": 4,
"block_type": "code_block",
"block_level": 0,
"estimated_new_page_length": 62
},
{
"line_number": 98,
"reason": "Before level 2 heading",
"confidence": 0.9457142857142857,
"page_length": 62,
"block_type": "heading",
"block_level": 2,
"estimated_new_page_length": 5
},
{
"line_number": 136,
"reason": "Before level 3 heading",
"confidence": 0.6828571428571428,
"page_length": 38,
"block_type": "heading",
"block_level": 3,
"estimated_new_page_length": 5
},
{
"line_number": 172,
"reason": "Before level 4 heading",
"confidence": 0.5942857142857143,
"page_length": 36,
"block_type": "heading",
"block_level": 4,
"estimated_new_page_length": 11
},
{
"line_number": 215,
"reason": "Before level 3 heading",
"confidence": 0.6542857142857144,
"page_length": 43,
"block_type": "heading",
"block_level": 3,
"estimated_new_page_length": 5
},
{
"line_number": 246,
"reason": "Before level 1 heading",
"confidence": 0.8771428571428571,
"page_length": 31,
"block_type": "heading",
"block_level": 1,
"estimated_new_page_length": 2
},
{
"line_number": 290,
"reason": "Before level 3 heading",
"confidence": 0.6485714285714286,
"page_length": 44,
"block_type": "heading",
"block_level": 3,
"estimated_new_page_length": 4
},
{
"line_number": 333,
"reason": "Before level 3 heading",
"confidence": 0.6542857142857144,
"page_length": 43,
"block_type": "heading",
"block_level": 3,
"estimated_new_page_length": 2
},
{
"line_number": 373,
"reason": "Before level 3 heading",
"confidence": 0.6714285714285715,
"page_length": 40,
"block_type": "heading",
"block_level": 3,
"estimated_new_page_length": 10
},
{
"line_number": 418,
"reason": "Before level 2 heading",
"confidence": 0.7428571428571429,
"page_length": 45,
"block_type": "heading",
"block_level": 2,
"estimated_new_page_length": 3
},
{
"line_number": 449,
"reason": "Before level 2 heading",
"confidence": 0.7771428571428571,
"page_length": 31,
"block_type": "heading",
"block_level": 2,
"estimated_new_page_length": 2
},
{
"line_number": 479,
"reason": "Before level 1 heading",
"confidence": 0.8714285714285714,
"page_length": 30,
"block_type": "heading",
"block_level": 1,
"estimated_new_page_length": 2
},
{
"line_number": 513,
"reason": "Before level 2 heading",
"confidence": 0.7942857142857143,
"page_length": 34,
"block_type": "heading",
"block_level": 2,
"estimated_new_page_length": 2
},
{
"line_number": 541,
"reason": "Before level 1 heading",
"confidence": 0.86,
"page_length": 28,
"block_type": "heading",
"block_level": 1,
"estimated_new_page_length": 2
},
{
"line_number": 576,
"reason": "Before level 2 heading",
"confidence": 0.8,
"page_length": 35,
"block_type": "heading",
"block_level": 2,
"estimated_new_page_length": 2
},
{
"line_number": 600,
"reason": "Before level 1 heading",
"confidence": 0.8371428571428571,
"page_length": 24,
"block_type": "heading",
"block_level": 1,
"estimated_new_page_length": 10
}
],
"rules_used": {
"min_lines_per_page": 20,
"max_lines_per_page": 45,
"preferred_lines_per_page": 35,
"avoid_orphan_lines": 3,
"avoid_widow_lines": 2,
"heading_break_weight": 10,
"section_end_weight": 8,
"diagram_break_weight": 6,
"paragraph_break_weight": 3
}
}