π The fast, Pythonic way to build MCP servers and clients.
Baseline tools-call-sampling; fix removal leftovers flagged by ruff
Jeremiah Lowinb9fcef1889cb
diff --git a/tests/client/client/test_error_handling.py b/tests/client/client/test_error_handling.pyindex 8f40e2ce6..96e85d56d 100644--- a/tests/client/client/test_error_handling.py+++ b/tests/client/client/test_error_handling.py@@ -14,7 +14,7 @@ import loggingimport mcp_typesimport pytest-from mcp_types import TextContent, ToolUseContent+from mcp_types import TextContentfrom pydantic import AnyUrlfrom fastmcp.client import Client@@ -414,4 +414,3 @@ class TestLogLevel:and record.levelname == "ERROR"for record in caplog.records)-diff --git a/tests/conformance/expected-failures.yml b/tests/conformance/expected-failures.ymlindex 46b2081de..45ab3c1e3 100644--- a/tests/conformance/expected-failures.yml+++ b/tests/conformance/expected-failures.yml@@ -4,3 +4,7 @@ server:- resources-subscribe- resources-unsubscribe- dns-rebinding-protection+ # Server-initiated sampling was removed from the server API (SEP-2577), so+ # the fixture has no `test_sampling` tool for this handshake-era scenario to+ # drive. Modern sampling is exercised by input-required-result-basic-sampling.+ - tools-call-samplingdiff --git a/tests/server/test_context.py b/tests/server/test_context.pyindex e37e5531b..26b57d694 100644--- a/tests/server/test_context.py+++ b/tests/server/test_context.py@@ -1,7 +1,6 @@from unittest.mock import MagicMockimport pytest-from mcp_types import ModelPreferencesfrom fastmcp.server.context import (Context,