[build-system] requires = ["hatchling>=1.32.4"] build-backend = "hatchling.build" [project] name = "zulipchat-mcp" version = "0.7.6" description = "Model Context Protocol (MCP) server that connects AI assistants to Zulip Chat with a 20-tool core mode and 60-tool extended mode" authors = [ {name = "Anthony Kougkas", email = "a.kougkas@gmail.com"}, ] readme = "README.md" license = "MIT" license-files = ["LICENSE"] requires-python = ">=3.10" keywords = [ "mcp", "model-context-protocol", "zulip", "ai-assistant", "chatops", "automation", "claude-code", "gemini-cli", "codex", "clio-coder", "agent-skills", "agent-plugins", "opencode", "copilot", "cursor", "windsurf", ] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", "Topic :: Communications :: Chat", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Communications :: Conferencing", "Topic :: System :: Monitoring", ] dependencies = [ "fastmcp[tasks]>=4.0.4,<5", "mcp-types>=2.2.0,<3", "anthropic>=0.78.0", "httpx>=0.28.0", "pydantic>=2.11.0", "python-dotenv>=1.2.2", "zulip>=0.9.0", "structlog>=25.4.0", "prometheus-client>=0.22.0", "duckdb>=1.3.0", "requests>=2.33.0", # Security floors for the MCP HTTP/auth dependency stack. "cryptography>=50.0.0", "httpx2>=2.12.0", "pyjwt>=2.13.0", "urllib3>=2.7.0", "pyyaml>=6.0.3", "tomli>=2.5.0; python_version < '3.11'", "tomli-w>=1.2.0", ] [dependency-groups] dev = [ "pytest>=8.0", "pytest-asyncio>=0.24", "pytest-cov>=5.0", "pytest-benchmark>=4.0.0", "pytest-mock>=3.12.0", "pytest-xdist>=3.5.0", "black>=24.0", "ruff>=0.8.0", "mypy>=1.13", "bandit>=1.8", "pip-audit>=2.10.1", "coverage[toml]>=7.0", "twine>=6.2.0", "types-requests>=2.32.4.20260107", "types-python-dateutil>=2.9.0.20251115", "types-PyYAML>=6.0.12", "build>=1.4.0", "jsonschema>=4.26.0", ] [project.urls] Homepage = "https://github.com/akougkas/zulipchat-mcp" Documentation = "https://github.com/akougkas/zulipchat-mcp#readme" Repository = "https://github.com/akougkas/zulipchat-mcp.git" Issues = "https://github.com/akougkas/zulipchat-mcp/issues" Changelog = "https://github.com/akougkas/zulipchat-mcp/releases" [project.scripts] zulipchat-mcp = "zulipchat_mcp.server:main" zulipchat-mcp-integrate = "zulipchat_mcp.integrations.registry:main" zulipchat-mcp-setup = "zulipchat_mcp.setup_wizard:main" zulipchat-mcp-hook = "zulipchat_mcp.claude_hooks:main" [tool.hatch.build.targets.wheel] packages = ["src/zulipchat_mcp"] [tool.uv] package = true managed = true [tool.uv.sources] # Tool configurations [tool.black] line-length = 88 target-version = ['py310'] include = '\.pyi?$' extend-exclude = ''' /( # directories \.eggs | \.git | \.hg | \.mypy_cache | \.tox | \.venv | build | dist )/ ''' [tool.ruff] target-version = "py310" line-length = 88 [tool.ruff.lint] select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort "B", # flake8-bugbear "C4", # flake8-comprehensions "UP", # pyupgrade ] ignore = [ "E501", # line too long, handled by black "B008", # do not perform function calls in argument defaults "C901", # too complex ] [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401"] [tool.mypy] python_version = "3.10" check_untyped_defs = true disallow_any_generics = true disallow_incomplete_defs = true disallow_untyped_defs = true no_implicit_optional = true warn_redundant_casts = true warn_unused_ignores = true [[tool.mypy.overrides]] module = [ "zulip.*", "mcp.*", ] ignore_missing_imports = true [tool.pytest.ini_options] testpaths = ["tests"] python_files = ["test_*.py"] python_classes = ["Test*"] python_functions = ["test_*"] asyncio_mode = "auto" asyncio_default_fixture_loop_scope = "function" addopts = [ "--strict-markers", "--strict-config", "-ra", "--cov=src/zulipchat_mcp", "--cov-branch", "--cov-report=term-missing:skip-covered", "--cov-report=html:htmlcov", "--cov-report=xml", "--cov-fail-under=60", "--tb=short", ] filterwarnings = [ "ignore::DeprecationWarning:distro.*:", "ignore::DeprecationWarning:zulip.*:", ] markers = [ "slow: marks tests as slow (deselect with '-m \"not slow\"')", "integration: marks tests as integration tests", "unit: marks tests as unit tests", "asyncio: marks tests as async tests", "benchmark: marks tests as performance benchmarks", ] [tool.coverage.run] source = ["src/zulipchat_mcp"] # omit = [ # # Entry points and server setup (hard to unit test) # "src/zulipchat_mcp/server.py", # "src/zulipchat_mcp/config.py", # "src/zulipchat_mcp/setup_wizard.py", # # Integrations and background services (external dependencies) # "src/zulipchat_mcp/integrations/*", # "src/zulipchat_mcp/services/*", # # Core infrastructure (requires live Zulip connection) # "src/zulipchat_mcp/core/client.py", # "src/zulipchat_mcp/core/cache.py", # "src/zulipchat_mcp/core/agent_tracker.py", # "src/zulipchat_mcp/core/service_manager.py", # "src/zulipchat_mcp/core/commands/*", # # Utilities with external dependencies # "src/zulipchat_mcp/utils/database*", # "src/zulipchat_mcp/utils/logging.py", # "src/zulipchat_mcp/utils/health.py", # # Tool modules (require mocked Zulip client for full coverage) # "src/zulipchat_mcp/tools/*.py", # # Core modules # "src/zulipchat_mcp/core/exceptions.py", # "src/zulipchat_mcp/core/identity.py", # "src/zulipchat_mcp/core/validation/*", # ] [tool.coverage.report] exclude_lines = [ "pragma: no cover", "if __name__ == \"__main__\":", ]