Cache for processed documents.
| 40 | |
| 41 | @dataclass |
| 42 | class DocumentCache: |
| 43 | """Cache for processed documents.""" |
| 44 | file_path: str |
| 45 | markdown_content: str |
| 46 | sections: List[DocumentSection] |
| 47 | metadata: Dict[str, Any] |
| 48 | file_hash: str |
| 49 | total_tokens: int = 0 |
| 50 | hierarchical_structure: Optional[Dict] = None |
| 51 | |
| 52 | class DocstrangeServer: |
| 53 | """MCP Server for document processing using docstrange.""" |