[project] name = "awslabs.mysql-mcp-server" version = "1.1.2" description = "An AWS Labs Model Context Protocol (MCP) server for mysql" readme = "README.md" requires-python = ">=3.10" dependencies = [ "boto3>=1.38.14", "botocore>=1.38.14", "loguru>=0.7.0", "mcp[cli]>=2.0.0,<3.0.0", "pydantic>=2.10.6", "asyncmy>=0.2.10", "aiorwlock>=1.5.0", "sqlparse>=0.5.0", ] license = {text = "Apache-2.0"} license-files = ["LICENSE", "NOTICE" ] authors = [ {name = "Amazon Web Services"}, {name = "AWSLabs MCP", email="203918161+awslabs-mcp@users.noreply.github.com"}, {name = "Ken Zhang", email="kennthhz@amazon.com"}, ] classifiers = [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", ] [project.urls] homepage = "https://awslabs.github.io/mcp/" docs = "https://awslabs.github.io/mcp/servers/mysql-mcp-server/" documentation = "https://awslabs.github.io/mcp/servers/mysql-mcp-server/" repository = "https://github.com/awslabs/mcp.git" changelog = "https://github.com/awslabs/mcp/blob/main/src/mysql-mcp-server/CHANGELOG.md" [project.scripts] "awslabs.mysql-mcp-server" = "awslabs.mysql_mcp_server.server:main" [dependency-groups] dev = [ "commitizen>=4.2.2", "pre-commit>=4.1.0", "ruff>=0.9.7", "pyright>=1.1.398", "pytest>=8.0.0", "pytest-asyncio>=0.26.0", "pytest-cov>=4.1.0", "pytest-mock>=3.12.0", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.metadata] allow-direct-references = true [tool.ruff] line-length = 99 extend-include = ["*.ipynb"] exclude = [ ".venv", "**/__pycache__", "**/node_modules", "**/dist", "**/build", "**/env", "**/.ruff_cache", "**/.venv", "**/.ipynb_checkpoints" ] force-exclude = true [tool.ruff.lint] exclude = ["__init__.py"] select = ["C", "D", "E", "F", "I", "W"] ignore = ["C901", "E501", "E741", "F402", "F823", "D100", "D106", "F821"] [tool.ruff.lint.isort] lines-after-imports = 2 no-sections = true [tool.ruff.lint.per-file-ignores] "**/*.ipynb" = ["F704"] [tool.ruff.lint.pydocstyle] convention = "google" [tool.ruff.format] quote-style = "single" indent-style = "space" skip-magic-trailing-comma = false line-ending = "auto" docstring-code-format = true [tool.pyright] include = ["awslabs", "tests"] exclude = ["**/__pycache__", "**/.venv", "**/node_modules", "**/dist", "**/build"] [tool.commitizen] name = "cz_conventional_commits" version = "0.0.0" tag_format = "v$version" version_files = [ "pyproject.toml:version", "awslabs/mysql_mcp_server/__init__.py:__version__" ] update_changelog_on_bump = true [tool.hatch.build.targets.wheel] packages = ["awslabs"] # SECURITY-CRITICAL: this custom hook fetches the Amazon RDS global CA bundle # from AWS's public truststore at build time and verifies it against the # SHA-256 pinned in hatch_build.py. The bundle is required for Aurora MySQL # IAM authentication (mysqlwire_iam connection method) to succeed without # CERTIFICATE_VERIFY_FAILED on hosts whose system trust store does not # include the Amazon RDS CAs. The hook fails the build on any hash mismatch, # so AWS CA rotations require a reviewed pin bump rather than silently # changing what the package trusts. See hatch_build.py module docstring. [tool.hatch.build.targets.wheel.hooks.custom] path = "hatch_build.py" [tool.hatch.build.targets.sdist.hooks.custom] path = "hatch_build.py" [tool.bandit] exclude_dirs = ["venv", ".venv", "tests"] [tool.pytest.ini_options] python_files = "test_*.py" python_classes = "Test*" python_functions = "test_*" testpaths = [ "tests"] asyncio_mode = "auto" markers = [ "live: marks tests that make live API calls (deselect with '-m \"not live\"')", "asyncio: marks tests that use asyncio" ] [tool.coverage.report] exclude_also = [ 'pragma: no cover', 'if __name__ == .__main__.:\n main()', ] [tool.coverage.run] source = ["awslabs"]