[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "mcp-google-contacts-server"
version = "0.1.0"
description = "MCP server for Google Contacts integration"
readme = "README.md"
authors = [
{name = "Rayan Zaki", email = "rayan.hassici@ensia.edu.dz"}
]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
requires-python = ">=3.12"
dependencies = [
"fastmcp",
"google-api-python-client",
"google-auth",
"google-auth-oauthlib",
]
[project.optional-dependencies]
dev = [
"black>=23.0.0",
"flake8>=6.0.0",
"isort>=5.12.0",
"mypy>=1.0.0",
"flake8-docstrings>=1.7.0",
"flake8-import-order>=0.18.0",
"flake8-bugbear>=23.0.0",
"pre-commit>=3.0.0",
"types-requests>=2.31.0",
]
[project.urls]
"Homepage" = "https://github.com/rayanzaki/mcp-google-contacts-server"
"Bug Tracker" = "https://github.com/rayanzaki/mcp-google-contacts-server/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-dir]
"" = "src"
[project.scripts]
mcp-google-contacts = "main:main"
# Linting and formatting configuration
[tool.black]
line-length = 100
target-version = ['py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 100
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
known_first_party = ["mcp_google_contacts_server"]
known_third_party = ["fastmcp", "google", "pydantic"]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # Start lenient, can be made stricter later
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
show_error_codes = true
# Ignore missing imports for some third-party libraries
[[tool.mypy.overrides]]
module = [
"googleapiclient.*",
"google.auth.*",
"google.oauth2.*",
"httplib2.*"
]
ignore_missing_imports = true
[dependency-groups]
dev = [
"black>=25.1.0",
"flake8>=7.3.0",
"flake8-bugbear>=24.12.12",
"flake8-docstrings>=1.7.0",
"flake8-import-order>=0.19.1",
"isort>=6.0.1",
"mypy>=1.16.1",
"pre-commit>=4.2.0",
"types-requests>=2.32.4.20250611",
]