[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mcp-pyrefly"
version = "0.2.0"
description = "MCP server for real-time Python code validation using Pyrefly to prevent LLM coding errors"
readme = "README.md"
license = {text = "MIT"}
authors = [{name = "Kim Asplund", email = "kim.asplund@gmail.com"}]
requires-python = ">=3.10"
dependencies = [
"mcp>=1.9.4",
"pyrefly>=0.21.0",
"pydantic>=2.7.2",
"anyio>=4.5",
]
keywords = ["mcp", "pyrefly", "code-validation", "llm", "type-checking"]
classifiers = [
"Development Status :: 3 - Alpha",
"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",
"Programming Language :: Python :: 3.13",
]
[project.scripts]
mcp-pyrefly = "mcp_pyrefly.server:main"
[tool.hatch.build.targets.wheel]
packages = ["src/mcp_pyrefly"]
[project.urls]
Homepage = "https://github.com/kimasplund/mcp-pyrefly"
Repository = "https://github.com/kimasplund/mcp-pyrefly"
Issues = "https://github.com/kimasplund/mcp-pyrefly/issues"
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"pytest-cov>=4.0",
"mypy>=1.0",
"ruff>=0.1",
"black>=23.0",
"isort>=5.0",
"build>=1.0",
"twine>=4.0",
]
[tool.black]
line-length = 88
target-version = ['py310']
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
disable_error_code = ["type-arg"]
[[tool.mypy.overrides]]
module = "mcp.server.fastmcp"
ignore_missing_imports = true
[tool.isort]
profile = "black"
line_length = 88