[project] name = "mcptesta" version = "0.1.0" description = "Comprehensive FastMCP Test Client for testing FastMCP servers and MCP protocol features" authors = [ {name = "Developer", email = "dev@example.com"} ] readme = "README.md" license = {text = "MIT"} requires-python = ">=3.11" keywords = ["mcp", "testing", "fastmcp", "protocol", "automation", "client"] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Topic :: Software Development :: Testing", "Topic :: Communications", ] dependencies = [ "fastmcp>=0.9.0", "pydantic>=2.0.0", "click>=8.0.0", "rich>=13.0.0", "asyncio-throttle>=1.0.0", "aiofiles>=23.0.0", "pyyaml>=6.0.0", "psutil>=5.9.0", "pytest>=7.0.0", "pytest-asyncio>=0.21.0", "jsonschema>=4.0.0", "tabulate>=0.9.0", "websockets>=12.0", "httpx>=0.25.0", ] [project.optional-dependencies] dev = [ "pytest>=7.0.0", "pytest-asyncio>=0.21.0", "pytest-cov>=4.0.0", "black>=23.0.0", "ruff>=0.1.0", "mypy>=1.0.0", "pre-commit>=3.0.0", ] performance = [ "memory-profiler>=0.61.0", "line-profiler>=4.0.0", "py-spy>=0.3.14", ] visualization = [ "matplotlib>=3.5.0", "seaborn>=0.12.0", "plotly>=5.15.0", ] [project.scripts] mcptesta = "mcptesta.cli:main" mcptesta-server = "mcptesta.server:main" [project.urls] Homepage = "https://github.com/example/mcptesta" Documentation = "https://mcptesta.readthedocs.io" Repository = "https://github.com/example/mcptesta" Issues = "https://github.com/example/mcptesta/issues" [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["src/mcptesta"] [tool.hatch.build.targets.sdist] include = [ "/src", "/tests", "/examples", "/docs", ] # Testing configuration [tool.pytest.ini_options] minversion = "7.0" addopts = "-ra -q --strict-markers --strict-config" testpaths = ["tests"] python_files = ["test_*.py", "*_test.py"] python_classes = ["Test*"] python_functions = ["test_*"] asyncio_mode = "auto" markers = [ "unit: Unit tests", "integration: Integration tests", "performance: Performance tests", "slow: Slow tests", "network: Tests requiring network access", "mcp: MCP protocol tests", "parallel: Tests that can run in parallel", "yaml: YAML configuration tests", "cli: CLI interface tests", "notification: Notification system tests", "cancellation: Cancellation feature tests", "sampling: Sampling feature tests", "auth: Authentication tests", "stress: Stress testing", ] # Code formatting [tool.black] line-length = 88 target-version = ['py311'] include = '\.pyi?$' extend-exclude = ''' /( # directories \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | build | dist )/ ''' # Linting [tool.ruff] target-version = "py311" line-length = 88 select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort "B", # flake8-bugbear "C4", # flake8-comprehensions "UP", # pyupgrade "ARG", # flake8-unused-arguments "SIM", # flake8-simplify "TCH", # flake8-type-checking "N", # pep8-naming ] ignore = [ "E501", # line too long, handled by black "B008", # do not perform function calls in argument defaults ] [tool.ruff.per-file-ignores] "tests/**/*" = ["ARG", "S101"] # Type checking [tool.mypy] python_version = "3.11" check_untyped_defs = true disallow_any_generics = true disallow_incomplete_defs = true disallow_untyped_defs = true no_implicit_optional = true show_error_codes = true warn_redundant_casts = true warn_unused_ignores = true warn_return_any = true [[tool.mypy.overrides]] module = "tests.*" disallow_untyped_defs = false # Coverage [tool.coverage.run] source = ["src"] omit = [ "*/tests/*", "*/test_*", "*/__pycache__/*", ] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "def __repr__", "raise AssertionError", "raise NotImplementedError", "if __name__ == .__main__.:", ]