GenPark Clause References
从提供的文本中提取英文定义术语和编号条款引用,检查依赖循环并展开定义。提供正则表达式辅助工具,而非法律分析。
文档
genpark-clause-references
Extract English defined terms and explicit numbered references from supplied contract text; inspect dependency cycles. Regex heuristics, not legal analysis.
Python 3.9+; standard library runtime; MIT license.
Install and run
Download genpark-clause-references.mcpb from GitHub Releases and install with an MCPB-compatible client. Python must be installed and available as python.
Alternatively clone this repository and configure an MCP stdio server with command python and arguments containing the absolute path to mcp_server.py.
Tools
extract_defined_termsmap_clause_dependenciesdetect_circular_referencesresolve_and_expand_clauserun_benchmark_legal_resolution
Run python -m unittest discover -s tests for regression checks. The official MCP SDK integration check uses the development dependency mcp: python tests/check_mcp.py.
Limitations
These are deterministic helpers operating on supplied structured data, not machine-learning models. Input and output remain in the local process. No hosted endpoint, automatic file access or network access is required. State lasts only for the current process. Benchmark tools run synthetic examples in isolated state; their status is not a production-quality certification.
Use canonical Section N clause keys. References named Clause, Article or Paragraph are normalized to Section. The graph reports DFS back-edge cycles, not an exhaustive enumeration; defined terms use quoted English phrases.