diff --git a/app/pyproject.toml b/app/pyproject.toml new file mode 100644 index 0000000..dc4aeec --- /dev/null +++ b/app/pyproject.toml @@ -0,0 +1,73 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "mcp-server-cli" +version = "1.0.0" +description = "A CLI tool that creates a local Model Context Protocol (MCP) server for developers" +readme = "README.md" +requires-python = ">=3.8" +license = {text = "MIT"} +authors = [ + {name = "MCP Server CLI", email = "dev@example.com"} +] +keywords = ["cli", "mcp", "model-context-protocol", "ai", "assistant"] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] + +dependencies = [ + "fastapi>=0.104.0", + "click>=8.1.0", + "pydantic>=2.5.0", + "pyyaml>=6.0", + "aiofiles>=23.2.0", + "httpx>=0.25.0", + "gitpython>=3.1.0", + "uvicorn>=0.24.0", + "sse-starlette>=1.6.0", +] + +[project.optional-dependencies] +dev = [ + "pytest>=7.0", + "pytest-cov>=4.0", + "ruff>=0.1.0", +] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_classes = ["Test*"] +python_functions = ["test_*"] +addopts = "-v --tb=short" + +[tool.coverage.run] +source = ["src/mcp_server_cli"] +omit = ["*/tests/*", "*/__pycache__/*"] + +[tool.coverage.report] +exclude_lines = ["pragma: no cover", "def __repr__", "raise NotImplementedError"] + +[tool.black] +line-length = 100 +target-version = ["py38", "py39", "py310", "py311", "py312"] +include = "\\.pyi?$" + +[tool.ruff] +line-length = 100 +target-version = "py38" + +[tool.ruff.lint] +select = ["E", "F", "W", "I"] +ignore = ["E501"]