[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mcp-server-for-powershell"
version = "1.0.0"
description = "MCP Server for PowerShell"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
keywords = []
authors = [
{ name = "Daniel Klecha", email = "daniel.klecha@gmail.com" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"mcp",
]
[project.scripts]
mcp-server-for-powershell = "mcp_server_for_powershell.server:main"
[project.urls]
Documentation = "https://github.com/danielklecha/mcp-server-for-powershell#readme"
Issues = "https://github.com/danielklecha/mcp-server-for-powershell/issues"
Source = "https://github.com/danielklecha/mcp-server-for-powershell"
[dependency-groups]
dev = [
"coverage[toml]>=6.5",
"pytest",
"mypy>=1.0.0",
"ruff>=0.0.243",
]
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = [
"A",
"ARG",
"B",
"C",
"DTZ",
"E",
"EM",
"F",
"FBT",
"I",
"ICN",
"ISC",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"S",
"T",
"TID",
"UP",
"W",
"YTT",
]
ignore = [
# Allow non-abstract empty methods in abstract base classes
"B027",
# Allow boolean positional values in function calls, like `dict.get(... True)`
"FBT003",
# Ignore checks for possible passwords
"S105", "S106", "S107",
# Ignore complexity
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
"T201", "E402", "PLW0603", "S603",
]
unfixable = [
# Don't touch unused imports
"F401",
]
[tool.ruff.lint.isort]
known-first-party = ["mcp_server_for_powershell"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101", "TID252"]
[tool.coverage.run]
source_pkgs = ["mcp_server_for_powershell", "tests"]
branch = true
parallel = true
omit = [
"src/mcp_server_for_powershell/__init__.py",
]
[tool.coverage.paths]
mcp_server_for_powershell = ["src/mcp_server_for_powershell", "*/mcp-server-for-powershell/src/mcp_server_for_powershell"]
tests = ["tests", "*/mcp-server-for-powershell/tests"]
[tool.coverage.report]
exclude_lines = [
"no cover",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]