[project]
name = "massive-context-mcp"
version = "1.0.0"
description = "Handle 10M+ token contexts with chunking, sub-queries, and local Ollama inference"
requires-python = ">=3.10"
dependencies = [
"mcp>=1.0.0",
"anthropic>=0.40.0",
"httpx>=0.27.0",
"claude-agent-sdk>=0.1.0",
"lxml>=5.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=4.0.0",
]
[project.scripts]
massive-context-mcp = "src.rlm_mcp_server:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests that require external services",
]
[tool.coverage.run]
source = ["src"]
branch = true
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
show_missing = true
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = [
"E501", # Line too long - handled by formatter, not linter
]
[tool.ruff.lint.per-file-ignores]
# Tests need to set env vars before importing, so module-level imports aren't at top
"tests/*.py" = ["E402"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
branch = "main"
commit_message = "chore(release): {version}\n\nAutomatically generated by python-semantic-release"
build_command = "" # We don't build here; release.yml handles MCPB packing
[tool.semantic_release.changelog]
changelog_file = "CHANGELOG.md"
[tool.semantic_release.commit_parser_options]
# Conventional commits: feat, fix, docs, style, refactor, perf, test, build, ci, chore
allowed_tags = ["feat", "fix", "docs", "style", "refactor", "perf", "test", "build", "ci", "chore"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.semantic_release.remote]
type = "github"
token = { env = "GH_TOKEN" }