MCPcopy Create free account
hub / github.com/NanoNets/docstrange / DocumentCache

Class DocumentCache

mcp_server_module/server.py:42–50  ·  view source on GitHub ↗

Cache for processed documents.

Source from the content-addressed store, hash-verified

40
41@dataclass
42class 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
52class DocstrangeServer:
53 """MCP Server for document processing using docstrange."""

Callers 1

_load_documentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected