[project]
name = "mcp-secure-local"
version = "1.0.0"
description = "Production-ready, security-first MCP server with zero data leakage"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"pyyaml>=6.0",
"jsonschema>=4.20",
"httpx>=0.27",
"cachetools>=6.2.2",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=4.0",
"pytest-asyncio>=0.23",
"ruff>=0.4",
]
[project.scripts]
mcp-secure = "src.server:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"S", # flake8-bandit (security)
]
ignore = [
"S101", # assert allowed in tests
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S105", "S106"] # Allow assert and test password strings
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --cov=src --cov-report=term-missing --cov-fail-under=95"
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
[dependency-groups]
dev = [
"pyright>=1.1.407",
]