[project]
name = "stata-mcp"
version = "0.4.1"
description = "Stata MCP Server - Exposes Stata functionality to AI models via MCP protocol"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "MIT"}
authors = [
{name = "Han Lulong"}
]
keywords = ["stata", "mcp", "ai", "vscode"]
dependencies = [
"fastapi>=0.119.0",
"uvicorn>=0.38.0",
"fastapi-mcp>=0.4.0",
"mcp>=1.18.0",
"pydantic>=2.11.0",
"pandas>=2.0.0",
"httpx>=0.28.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=4.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = [
"-v",
"--tb=short",
"-ra",
]
markers = [
"unit: Unit tests that don't require Stata",
"integration: Integration tests that require Stata installation",
"slow: Slow running tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.coverage.run]
source = ["src"]
omit = [
"tests/*",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]
show_missing = true
[tool.ruff]
target-version = "py39"
line-length = 100
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.per-file-ignores]
"tests/*" = ["B", "C4"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_ignores = true
ignore_missing_imports = true
exclude = [
"tests/",
".venv/",
]