diff --git a/pkgs/development/python-modules/fastmcp/default.nix b/pkgs/development/python-modules/fastmcp/default.nix index 5a82e61c88cf..531d87fdfc38 100644 --- a/pkgs/development/python-modules/fastmcp/default.nix +++ b/pkgs/development/python-modules/fastmcp/default.nix @@ -15,6 +15,7 @@ azure-identity, cyclopts, exceptiongroup, + griffelib, httpx, jsonref, jsonschema-path, @@ -49,20 +50,22 @@ opentelemetry-sdk, psutil, pytest-asyncio, + pytest-examples, pytest-httpx, pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "fastmcp"; - version = "3.2.3"; + version = "3.2.4"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { - owner = "jlowin"; + owner = "PrefectHQ"; repo = "fastmcp"; tag = "v${finalAttrs.version}"; - hash = "sha256-YfFAJvfKLOgfGFWyQmR4FGHrRc066Y0mAYhXJqJ9vyw="; + hash = "sha256-rJpxPvqAaa6/vXhG1+R9dI32cY/54e6I+F/zyBVoqBM="; }; build-system = [ @@ -78,6 +81,7 @@ buildPythonPackage (finalAttrs: { authlib cyclopts exceptiongroup + griffelib httpx jsonref jsonschema-path @@ -129,6 +133,7 @@ buildPythonPackage (finalAttrs: { opentelemetry-sdk psutil pytest-asyncio + pytest-examples pytest-httpx pytestCheckHook writableTmpDirAsHomeHook @@ -165,6 +170,7 @@ buildPythonPackage (finalAttrs: { # Requires prefab-ui (optional dependency) "test_auto_registers_renderer_resource" + "test_auto_synthesizes_renderer_resource" "test_equivalent_to_app_true" # Requires pydocket (tasks optional dependency, not in test inputs) @@ -202,6 +208,7 @@ buildPythonPackage (finalAttrs: { disabledTestPaths = [ # Requires prefab-ui (optional dependency) "tests/apps" + "tests/docs/test_doc_examples.py" "tests/test_apps_prefab.py" "tests/test_fastmcp_app.py" # Subprocess crash recovery tests are flaky in sandbox @@ -224,8 +231,8 @@ buildPythonPackage (finalAttrs: { meta = { description = "Fast, Pythonic way to build MCP servers and clients"; - changelog = "https://github.com/jlowin/fastmcp/releases/tag/${finalAttrs.src.tag}"; - homepage = "https://github.com/jlowin/fastmcp"; + changelog = "https://github.com/PrefectHQ/fastmcp/releases/tag/${finalAttrs.src.tag}"; + homepage = "https://github.com/PrefectHQ/fastmcp"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; }; diff --git a/pkgs/development/python-modules/mcp/default.nix b/pkgs/development/python-modules/mcp/default.nix index b8536ececaa5..6d6ae50b6d82 100644 --- a/pkgs/development/python-modules/mcp/default.nix +++ b/pkgs/development/python-modules/mcp/default.nix @@ -42,14 +42,15 @@ buildPythonPackage (finalAttrs: { pname = "mcp"; - version = "1.26.0"; + version = "1.27.0"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "modelcontextprotocol"; repo = "python-sdk"; tag = "v${finalAttrs.version}"; - hash = "sha256-TGkAyuBcIstL2BCZYBWoi7PhnhoBvap67sLWGe0QUoU="; + hash = "sha256-qvbGyF0PVC626yCgUqOYmA1zOmvI3/bC7l7HhfOtKH8="; }; # time.sleep(0.1) feels a bit optimistic and it has been flaky whilst @@ -139,6 +140,7 @@ buildPythonPackage (finalAttrs: { # Flaky: httpx.ConnectError: All connection attempts failed "test_sse_security_" "test_streamable_http_" + "test_streamablehttp_" # This just feels a bit optimistic... # assert duration < 3 * _sleep_time_seconds