MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / get_url

Function get_url

scripts/get_image_context.py:19–24  ·  view source on GitHub ↗
(doc_id)

Source from the content-addressed store, hash-verified

17] # EXCLUDING 2025-6 which are just table checkmarks
18
19def get_url(doc_id):
20 md_file = MDCG_DATA_DIR / f"{doc_id}.zh.md"
21 if not md_file.exists(): return None
22 content = md_file.read_text(encoding="utf-8")
23 m = re.search(r'source_url:\s*(.+)$', content, re.M)
24 return m.group(1).strip() if m else None
25
26pipeline_options = PdfPipelineOptions()
27pipeline_options.generate_picture_images = True

Callers 1

analyzeFunction · 0.70

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected