python3Packages.mcp: 1.9.1 -> 1.9.3 (#414458)

authored by Gaétan Lepage and committed by GitHub 4e83c818 59b82dfa

+52 -16
+2
pkgs/development/python-modules/fastapi-mcp/default.nix
··· 64 64 pytestCheckHook 65 65 ]; 66 66 67 + __darwinAllowLocalNetworking = true; 68 + 67 69 meta = { 68 70 description = "Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth"; 69 71 homepage = "https://github.com/tadata-org/fastapi_mcp";
+25 -4
pkgs/development/python-modules/fastmcp/default.nix
··· 1 1 { 2 2 lib, 3 + stdenv, 3 4 buildPythonPackage, 4 5 fetchFromGitHub, 5 6 ··· 7 8 hatchling, 8 9 9 10 # dependencies 11 + authlib, 10 12 exceptiongroup, 11 13 httpx, 12 14 mcp, ··· 14 16 python-dotenv, 15 17 rich, 16 18 typer, 17 - websockets, 18 19 19 20 # tests 20 21 dirty-equals, 21 22 fastapi, 23 + pytest-httpx, 22 24 pytestCheckHook, 23 25 }: 24 26 25 27 buildPythonPackage rec { 26 28 pname = "fastmcp"; 27 - version = "2.4.0"; 29 + version = "2.7.0"; 28 30 pyproject = true; 29 31 30 32 src = fetchFromGitHub { 31 33 owner = "jlowin"; 32 34 repo = "fastmcp"; 33 35 tag = "v${version}"; 34 - hash = "sha256-F4lgMm/84svLZo6SZ7AubsC73s4tffqjJcd9gvA7hGA="; 36 + hash = "sha256-UQV/hIu96ukpJxUhOux0mos0o6j4kvsFp2NJHa47tbw="; 35 37 }; 36 38 37 39 postPatch = '' ··· 45 47 ]; 46 48 47 49 dependencies = [ 50 + authlib 48 51 exceptiongroup 49 52 httpx 50 53 mcp ··· 52 55 python-dotenv 53 56 rich 54 57 typer 55 - websockets 56 58 ]; 57 59 58 60 pythonImportsCheck = [ "fastmcp" ]; ··· 60 62 nativeCheckInputs = [ 61 63 dirty-equals 62 64 fastapi 65 + pytest-httpx 63 66 pytestCheckHook 64 67 ]; 68 + 69 + disabledTests = [ 70 + # AssertionError: assert 'INFO' == 'DEBUG' 71 + "test_temporary_settings" 72 + ]; 73 + 74 + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ 75 + # RuntimeError: Server failed to start after 10 attempts 76 + "tests/auth/providers/test_bearer.py" 77 + "tests/auth/test_oauth_client.py" 78 + "tests/client/test_openapi.py" 79 + "tests/client/test_sse.py" 80 + "tests/client/test_streamable_http.py" 81 + "tests/server/http/test_http_dependencies.py" 82 + "tests/server/http/test_http_dependencies.py" 83 + ]; 84 + 85 + __darwinAllowLocalNetworking = true; 65 86 66 87 meta = { 67 88 description = "The fast, Pythonic way to build MCP servers and clients";
+25 -12
pkgs/development/python-modules/mcp/default.nix
··· 1 1 { 2 2 lib, 3 + stdenv, 3 4 buildPythonPackage, 4 5 fetchFromGitHub, 5 6 ··· 27 28 websockets, 28 29 29 30 # tests 31 + inline-snapshot, 30 32 pytest-asyncio, 31 33 pytest-examples, 34 + pytest-xdist, 32 35 pytestCheckHook, 33 36 requests, 34 37 }: 35 38 36 39 buildPythonPackage rec { 37 40 pname = "mcp"; 38 - version = "1.9.1"; 41 + version = "1.9.3"; 39 42 pyproject = true; 40 43 41 44 src = fetchFromGitHub { 42 45 owner = "modelcontextprotocol"; 43 46 repo = "python-sdk"; 44 47 tag = "v${version}"; 45 - hash = "sha256-8u02/tHR2F1CpjcHXHC8sZC+/JrWz1satqYa/zdSGDw="; 48 + hash = "sha256-3r7NG2AnxxKgAAd3n+tjjPTz4WJRmc7isfh3p21hUa0="; 46 49 }; 47 50 48 51 postPatch = '' ··· 85 88 pythonImportsCheck = [ "mcp" ]; 86 89 87 90 nativeCheckInputs = [ 91 + inline-snapshot 88 92 pytest-asyncio 89 93 pytest-examples 94 + pytest-xdist 90 95 pytestCheckHook 91 96 requests 92 97 ] ++ lib.flatten (lib.attrValues optional-dependencies); ··· 96 101 "ignore::pydantic.warnings.PydanticDeprecatedSince211" 97 102 ]; 98 103 99 - disabledTests = [ 100 - # attempts to run the package manager uv 101 - "test_command_execution" 104 + disabledTests = 105 + [ 106 + # attempts to run the package manager uv 107 + "test_command_execution" 108 + 109 + # performance-dependent test 110 + "test_messages_are_executed_concurrently" 102 111 103 - # performance-dependent test 104 - "test_messages_are_executed_concurrently" 112 + # ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) 113 + "test_client_session_version_negotiation_failure" 105 114 106 - # ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) 107 - "test_client_session_version_negotiation_failure" 115 + # AttributeError: 'coroutine' object has no attribute 'client_metadata' 116 + "TestOAuthClientProvider" 108 117 109 - # AttributeError: 'coroutine' object has no attribute 'client_metadata' 110 - "TestOAuthClientProvider" 111 - ]; 118 + # inline_snapshot._exceptions.UsageError: snapshot value should not change. Use Is(...) for dynamic snapshot parts 119 + "test_build_metadata" 120 + ] 121 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 122 + # Flaky: ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) 123 + "test_notification_validation_error" 124 + ]; 112 125 113 126 __darwinAllowLocalNetworking = true; 114 127