Skip to main content

古典文献异文自动校验与分析 MCP Server

基于 Python/FastMCP 构建的古籍校勘 MCP 工具,提供多版本文本对齐、六类理据智能分类、标准化校勘记生成三阶段流水线。

功能

  • align_texts: 多版本(2-10本)古籍文本的标点清洗与 Needleman-Wunsch / LCS 字符级对齐
  • classify_variant: 按六类校勘学理据(音近/形近/义近/倒文/衍脱文/字形分合)对异文进行智能分类
  • generate_collation_note: 按古籍整理标准格式生成 Markdown/LaTeX 校勘记
  • analyze_texts: 全流水线便捷入口,一步完成从原始版本到校勘记的完整流程

安装

pip install dhcckb-classical-collation

使用

作为 MCP Server 启动:

uvx dhcckb-classical-collation

或在 MCP 客户端配置中:

{
  "mcpServers": {
    "classical-collation": {
      "command": "uvx",
      "args": ["dhcckb-classical-collation"]
    }
  }
}

依赖

  • Python ≥ 3.10
  • fastmcp ≥ 2.0.0
  • numpy ≥ 1.24.0
  • pydantic ≥ 2.0.0
  • openai ≥ 1.0.0 (可选,LLM 推理层)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dhcckb_classical_collation-0.1.0.tar.gz (18.5 kB view details)

Uploaded Source

File details

Details for the file dhcckb_classical_collation-0.1.0.tar.gz.

File metadata

File hashes

Hashes for dhcckb_classical_collation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d964d3bada5136c184b0137a1403ccf5e0a02e29f776595fc9b12a0487191c1b
MD5 aa75959cbcd1ddc64184fd18e09c3c16
BLAKE2b-256 d3bc4235a1ce8b2592b2ee8bdc69022a03e834685b32c98bfebc49d6239e9d36

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page