[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pymssql-mcp"
version = "0.1.0"
description = "MCP server for Microsoft SQL Server databases"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
authors = [
{ name = "Peter", email = "peter@example.com" }
]
keywords = ["mcp", "sqlserver", "mssql", "database", "sql"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Database",
]
dependencies = [
"mcp>=1.24.0",
"pymssql>=2.2.0",
"pydantic-settings>=2.0.0",
"uvicorn>=0.30.0",
"httpx>=0.25.0",
"starlette>=0.27.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.0.0",
"pytest-asyncio>=0.21.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
]
[project.scripts]
pymssql-mcp = "mssql_mcp.server:main"
[project.urls]
Homepage = "https://github.com/bpamiri/pymssql-mcp"
Documentation = "https://github.com/bpamiri/pymssql-mcp#readme"
Repository = "https://github.com/bpamiri/pymssql-mcp"
Issues = "https://github.com/bpamiri/pymssql-mcp/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/mssql_mcp"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
disallow_untyped_defs = true
ignore_missing_imports = true
# Disable some checks for areas where pymssql types are incomplete
disable_error_code = ["misc", "untyped-decorator", "call-arg", "arg-type", "return-value", "call-overload", "union-attr"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
markers = [
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
]
addopts = "-v"