#!/usr/bin/env python3
"""
Chatlog MCP Server - Setup Script
"""
from setuptools import setup, find_packages
import os
# 读取 README 文件
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# 读取依赖
with open("requirements.txt", "r", encoding="utf-8") as fh:
requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]
setup(
name="chatlog-mcp-server",
version="1.0.0",
author="Claude Code",
author_email="support@anthropic.com",
description="A Model Context Protocol (MCP) server for analyzing chat logs",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/anthropics/chatlog-mcp-server",
packages=find_packages(),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Communications :: Chat",
],
python_requires=">=3.10",
install_requires=requirements,
extras_require={
"dev": [
"pytest>=7.0",
"pytest-asyncio>=0.21.0",
"black>=23.0.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
]
},
entry_points={
"console_scripts": [
"chatlog-mcp=chatlog_mcp.server:main",
],
},
include_package_data=True,
package_data={
"chatlog_mcp": [
"examples/*.json",
"examples/*.md",
],
},
keywords="mcp model-context-protocol chat-log analysis",
project_urls={
"Bug Reports": "https://github.com/anthropics/chatlog-mcp-server/issues",
"Source": "https://github.com/anthropics/chatlog-mcp-server",
"Documentation": "https://github.com/anthropics/chatlog-mcp-server/blob/main/README.md",
},
)