[project]
name = "novel-processor-mcp"
version = "2.0.0"
description = "基于 FastMCP 的小说处理服务器 - 支持分割、组合和改写任务"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [
{ name = "IMOHUAN", email = "imohuan@gmail.com" }
]
keywords = ["mcp", "novel", "ai", "text-processing", "novel-processor"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"fastmcp>=0.2.0",
"tiktoken>=0.7.0",
"uvicorn>=0.30.0",
"starlette>=0.37.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"black>=24.0.0",
"ruff>=0.5.0",
]
[project.scripts]
novel-mcp = "novel_processor_mcp.main:main"
novel-web = "novel_processor_mcp.app:run_app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src"]
include = [
"*.py",
"static/**/*",
]
[tool.hatch.build.targets.wheel.force-include]
"config.py" = "novel_processor_mcp/config.py"
"main.py" = "novel_processor_mcp/main.py"
"app.py" = "novel_processor_mcp/app.py"
"__main__.py" = "novel_processor_mcp/__main__.py"
"static" = "novel_processor_mcp/static"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/static",
"*.py",
"*.md",
"LICENSE",
]
[tool.uv]
dev-dependencies = [
"pytest>=8.0.0",
"black>=24.0.0",
"ruff>=0.5.0",
]
[tool.uv.sources]
[tool.black]
line-length = 100
target-version = ['py310', 'py311', 'py312']
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["E501"]