[project]
name = "mcp-submatcher"
version = "1.0.0"
description = "MCP Server for SubMatcher - 智能字幕对齐重命名工具,基于统计分词匹配算法自动将本地字幕文件重命名为与对应视频同名"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "SubMatcher Team"}
]
keywords = ["subtitle", "renamer", "tv-shows", "mcp", "mcp-server", "automation", "claude-skills"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"Topic :: Multimedia :: Video",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Environment :: Console",
]
dependencies = [
"mcp>=1.0.0",
"PyYAML>=6.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"black>=23.0",
"flake8>=6.0",
"mypy>=1.0",
]
[project.scripts]
mcp-submatcher = "mcp_server:cli_main"
[project.urls]
Homepage = "https://github.com/sienyaa/mcp-submatcher"
Issues = "https://github.com/sienyaa/mcp-submatcher/issues"
[dependency-groups]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"black>=23.0",
"flake8>=6.0",
"mypy>=1.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["mcp_server.py", "mcp_adapter.py", "config_nlp.py", "core"]
[tool.black]
line-length = 100
target-version = ['py38', 'py39', 'py310', 'py311', 'py312', 'py313', 'py314']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
| venv
)/
'''
[tool.flake8]
max-line-length = 100
extend-ignore = ["E203", "W503"]
exclude = [
".git",
"__pycache__",
"build",
"dist",
"venv",
".venv",
]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --cov=submatcher --cov-report=term-missing"