[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "host-terminal-mcp"
version = "0.1.0"
description = "MCP server for executing terminal commands on the host machine with configurable permissions"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
authors = [
{ name = "Ankit", email = "ankit.ag.in@gmail.com" }
]
keywords = ["mcp", "terminal", "shell", "claude", "cowork"]
classifiers = [
"Development Status :: 4 - Beta",
"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",
]
dependencies = [
"mcp>=1.0.0",
"pyyaml>=6.0",
"pydantic>=2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"pytest-cov>=4.0",
"ruff>=0.4.0",
"mypy>=1.0",
]
[project.scripts]
host-terminal-mcp = "host_terminal_mcp.server:main"
[tool.hatch.build.targets.wheel]
packages = ["src/host_terminal_mcp"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/config",
]
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
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
]
[tool.ruff.lint.isort]
known-first-party = ["host_terminal_mcp"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
ignore_missing_imports = true