[build-system]
requires = ["hatchling>=1.28.0"]
build-backend = "hatchling.build"

[project]
name = "mcp-grid"
version = "1.0.0rc1"  # Display: 1.0.0-beta-rc (PEP 440 requires rc format)
description = "A dynamic MCP server bridge - manage multiple MCP servers on demand without overloading agents"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [{ name = "IB-QA", email = "165858755+IB-QA@users.noreply.github.com" }]
keywords = [
    "mcp",
    "model-context-protocol",
    "bridge",
    "tools",
    "ai",
    "agents",
    "llm",
    "automation",
]
classifiers = [
    "Development Status :: 3 - Alpha",
    "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 :: Libraries",
    "Topic :: Scientific/Engineering :: Artificial Intelligence",
]

dependencies = [
    "fastmcp>=2.14.5",
    "pydantic>=2.12.5",
    "pydantic-settings>=2.12.0",
    "aiosqlite>=0.22.1",
    "aiohttp>=3.13.3",
    "pyyaml>=6.0.3",
    "psutil>=7.2.2",
    "uvicorn>=0.40.0",
    "starlette>=0.52.1",
    "websockets>=16.0",
    "httpx>=0.28.0",
]

[project.optional-dependencies]
dev = [
    "pytest>=9.0.2",
    "pytest-asyncio>=1.3.0",
    "pytest-cov>=7.0.0",
    "ruff>=0.15.1",
]

[project.urls]
Homepage = "https://github.com/IB-QA/mcp-grid-ws"
Repository = "https://github.com/IB-QA/mcp-grid-ws"
Documentation = "https://github.com/IB-QA/mcp-grid-ws/tree/main/docs"
Issues = "https://github.com/IB-QA/mcp-grid-ws/issues"

[project.scripts]
mcp-grid = "mcp_bridge.server:main"

[tool.hatch.build.targets.wheel]
packages = ["src/mcp_bridge"]

[tool.hatch.build.targets.editable]
packages = ["src/mcp_bridge"]

[tool.ruff]
target-version = "py311"
line-length = 120

[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "SIM"]

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
