Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

3.0 KB
Raw Blame
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

[project]
name = "gravitino_mcp_server"
version = "2.0.0.dev0"
description = "Gravitino MCP server"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
    # Pin FastMCP so breaking API changes are handled explicitly during dependency upgrades.
    "fastmcp==3.4.5",
    # Function argument validation via Field(validation_alias=AliasChoices(...)) — used to
    # keep accepting legacy tool argument names — is only honored from Pydantic 2.12.0
    # (fix: https://github.com/pydantic/pydantic/pull/12340). Without this floor the lock
    # resolves an older Pydantic and the legacy-alias tests fail.
    "pydantic>=2.12.0,<3",
    # httpx.Auth plugin for hop-2 client_credentials fetch/cache.
    "httpx-auth>=0.22,<0.24",
    # Preserve exact JSON numbers in Semantic Model metric discovery responses.
    "simplejson==3.20.1",
    # TODO(#10754): pydocket (a transitive dep of fastmcp>=2.14.0)
    # requires fakeredis>=2.32.1, but fakeredis 2.35.0 removed FakeConnection from
    # fakeredis.aioredis, which pydocket still uses. Pin fakeredis to <2.35.0 until the
    # tracked pydocket/fakeredis compatibility issue is resolved.
    "fakeredis<2.38.0",
]

# Development-only dependencies. These are NOT shipped in the MCP server image:
# the Dockerfile runs `uv sync --no-dev` and start-mcp-server.sh runs `uv run --no-dev`,
# so pylint (GPL-2.0-or-later) and its transitive dep astroid (LGPL) stay out of the
# distributed runtime environment. Developers still get them via `uv sync` locally.
[dependency-groups]
dev = [
    # Generates throwaway certificates for the TLS end-to-end tests.
    "cryptography>=46",
    "parameterized>=0.9.0",
    "pytest>=8.4.1",
    "pylint>=2.20.0",
]

# Restrict packaging to the importable library. Without this, setuptools'
# flat-layout auto-discovery also picks up sibling dirs like `dev/` (it only
# excludes `tests*` by default), failing the build with
# "Multiple top-level packages discovered in a flat-layout".
[tool.setuptools.packages.find]
include = ["mcp_server", "mcp_server.*"]

[tool.isort]
profile = "black"
line_length = 80
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true

[tool.black]
line-length = 80
target-version = ['py38']