From 04defaaaa387bcc28fb2d941c9a772f30bc0a890 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Wed, 7 May 2025 23:17:24 -0400 Subject: [PATCH] move vendored file --- pyproject.toml | 13 ++++++++----- .../{server => vendor}/streamable_http_manager.py | 0 2 files changed, 8 insertions(+), 5 deletions(-) rename src/fastmcp/{server => vendor}/streamable_http_manager.py (100%) diff --git a/pyproject.toml b/pyproject.toml index e296fe0bc..df95c1a3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ dependencies = [ "httpx>=0.28.1", # "mcp>=1.7.1,<2.0.0", # use git commit until 1.7.2 is released - "mcp @ git+https://github.com/modelcontextprotocol/python-sdk.git@a027d75f609000378522c5873c2a16aa1963d487", + "mcp", "openapi-pydantic>=0.5.1", "rich>=13.9.4", "typer>=0.15.2", @@ -52,6 +52,7 @@ dev = [ "pytest-cov>=6.1.1", "pytest-flakefinder", "pytest-report>=0.2.1", + "pytest-timeout>=2.4.0", "pytest-xdist>=3.6.1", "ruff", ] @@ -69,12 +70,14 @@ Documentation = "https://gofastmcp.com" requires = ["hatchling", "uv-dynamic-versioning>=0.7.0"] build-backend = "hatchling.build" +[tool.uv] + +[tool.uv.sources] +mcp = { git = "https://github.com/modelcontextprotocol/python-sdk", rev = "a027d75f609000378522c5873c2a16aa1963d487" } + [tool.hatch.version] source = "uv-dynamic-versioning" -[tool.hatch.metadata] -allow-direct-references = true - [tool.uv-dynamic-versioning] vcs = "git" style = "pep440" @@ -87,7 +90,7 @@ asyncio_mode = "auto" asyncio_default_fixture_loop_scope = "session" asyncio_default_test_loop_scope = "session" filterwarnings = [] - +timeout = 5 [tool.pyright] include = ["src", "tests"] diff --git a/src/fastmcp/server/streamable_http_manager.py b/src/fastmcp/vendor/streamable_http_manager.py similarity index 100% rename from src/fastmcp/server/streamable_http_manager.py rename to src/fastmcp/vendor/streamable_http_manager.py