Metadata-Version: 2.4
Name: zongyuan-chronicle
Version: 0.1.0
Summary: Chronicle MCP: append-only event log with range queries and chronological summaries. Pure stdlib.
Author: 元极恒一 (tanbopiao)
License: MIT
Project-URL: Homepage, https://github.com/tanbopiao/zongyuan-chronicle
Project-URL: Repository, https://github.com/tanbopiao/zongyuan-chronicle
Keywords: mcp,yuanshu,daotong,stdlib
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

<!-- mcp-name: io.github.tanbopiao/zongyuan-chronicle -->
# 宗源编年史 · 时序记事册 · zongyuan-chronicle

> 铭文：编年有序，事件不湮

## English

**zongyuan-chronicle** is a lightweight MCP (Model Context Protocol) server from the Daotong tool family. 事件按序入册，追加不改；按起止期取事；编年摘要归并。 Pure Python standard library, zero dependencies, stdio transport.

### Install

```bash
pip install zongyuan-chronicle
```

### Run as MCP server (stdio)

```bash
zongyuan-chronicle-mcp
```

### Use as a library

```python
from zongyuan_chronicle.core import chronicle, timeline, annal
```

### Tools

| Tool | Input | Output |
| --- | --- | --- |
| `chronicle` | event payload | appended entry |
| `timeline` | start, end | events in period |
| `annal` | — | chronological summary |

## 逻辑本体

事件带时序入册，追加不改；按期取事；编年摘要按序归并。

## 架构

```
编年册（append-only 事件流）
  ├─ 记事 chronicle：事件按序入册
  ├─ 取事 timeline：按起止期取事
  └─ 摘要 annal：按序归并成编年摘要
```

## 算子注册

- `chronicle`
- `timeline`
- `annal`
