pyproject.toml•2.35 kB
[project]
name = "secure-mcp-proxy"
description = "A secure MCP server which proxies requests to remote MCP servers with built-in API token authentication."
authors = [{ name = "Shilvister", email = "admin@shilvister.net" }]
license = { file = "LICENSE" }
readme = "README.md"
version = "0.8.0"
requires-python = ">=3.10"
dependencies = [
"mcp>=1.8.0,<2.0.0",
"python-dotenv>=1.1.0",
"uvicorn>=0.34.0",
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project.urls]
Homepage = "https://github.com/gws8820/secure-mcp-proxy"
Source = "https://github.com/gws8820/secure-mcp-proxy"
Documentation = "https://github.com/gws8820/secure-mcp-proxy"
Changelog = "https://github.com/gws8820/secure-mcp-proxy/releases"
[project.scripts]
secure-mcp-proxy = "secure_mcp_proxy.__main__:main"
secure-mcp-reverse-proxy = "secure_mcp_proxy.__main__:client"
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.uv]
dev-dependencies = [
"pytest>=8.3.3",
"pytest-asyncio>=0.25.0",
"coverage>=7.6.0",
"mypy>=1.0.0",
]
[tool.coverage.run]
branch = true
[tool.coverage.report]
skip_covered = true
show_missing = true
precision = 2
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'if TYPE_CHECKING:',
'if typing.TYPE_CHECKING:',
'@overload',
'@typing.overload',
'\(Protocol\):$',
'typing.assert_never',
'$\s*assert_never\(',
'if __name__ == .__main__.:',
]
[tool.mypy]
allow_redefinition = false
disallow_untyped_defs = true
follow_imports = "normal"
follow_untyped_imports = true
no_implicit_optional = true
show_error_code_links = true
show_error_codes = true
strict = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"EM101", # Exception must not use a string literal, assign to variable first
"TRY003", # Avoid specifying long messages outside the exception class
"ERA001", # Found commented-out code
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "INP001"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff]
line-length = 100
[tool.pytest.ini_options]
pythonpath = "src"
addopts = ["--import-mode=importlib"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"