时间线管理服务

一个帮助语言模型维护连贯时间线、跟踪事件和管理角色的服务,适用于长篇叙事和历史记录。

  • by Haervwe
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 Haervwe/timelines-mcp

使用说明

时间表mcp

MCP服务器,帮助LLM为时间相关的叙事(小说/历史)保持连贯的长世代。

概述

这是一个FastMCP服务器,可帮助语言模型维护连贯的时间线,跟踪事件,并管理长篇叙事中的角色,无论是小说还是历史故事。

项目结构

timelines-mcp/
├── src/
│   └── timelines_mcp/
│       ├── __init__.py          # Main package initialization
│       ├── server.py            # FastMCP server entry point
│       ├── domain/              # Domain objects (Timeline, Event, Character, etc.)
│       │   └── __init__.py
│       ├── adapters/            # Database adapters for persistence
│       │   └── __init__.py
│       ├── tools/               # MCP tools exposed via FastMCP
│       │   └── __init__.py
│       └── agents/              # Agent implementations for complex operations
│           └── __init__.py
├── tests/                       # Test suite
│   └── __init__.py
├── pyproject.toml              # Python project configuration
├── README.md                   # This file
└── LICENSE

安装

# Install in development mode
pip install -e .

# Install with development dependencies
pip install -e ".[dev]"

发展

该项目使用:

  • FastMCP 用于MCP服务器框架
  • pytest 用于测试
  • 颈毛 用于裁剪和格式化

运行测试

pytest

代码检查

ruff check .
ruff format .

用法

# Run the server (implementation details to be added)
python -m timelines_mcp.server

许可证

有关详细信息,请参阅LICENSE文件。