Added
- New
get_judgment_pdftool — returns or downloads a judgment's PDF. Behavior controlled by thesave_toarg orMCP_TW_JUDGMENT_DOWNLOAD_DIRenv var; when neither is set, only the URL is returned. Re-calls with the same path returncached: truewithout re-downloading. get_judgmentnow returns aparagraphsfield alongsidecontent— a flat list of{id, section, level, heading, text}entries with stable hierarchical IDs (e.g.理由.一.(三).2) for precise citation and downstream highlighting.
Changed
parser/judgment_parser.pygainsextract_pdf_urlandparse_paragraphs;parse_detailnow emitsparagraphs(additive;contentpreserved for backward compatibility).connectors/rest_client.pygainsapi_get_bytesfor binary downloads.
Install
uvx mcp-tw-judgment
# or
pip install mcp-tw-judgment==0.3.0Full Changelog: v0.2.0...v0.3.0