时间表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文件。
