π The fast, Pythonic way to build MCP servers and clients.
Apply ruff-format: drop now-unused imports and reflow
Jeremiah Lowin396fb876d3fb
diff --git a/examples/in_memory_proxy_example.py b/examples/in_memory_proxy_example.pyindex 760ba579e..305e9aba2 100644--- a/examples/in_memory_proxy_example.py+++ b/examples/in_memory_proxy_example.py@@ -38,9 +38,7 @@ async def main():# 2. Proxy Server Creationprint("\nStep 2: Creating the Proxy Server (InMemoryProxy)...")- print(- f" (Using create_proxy to wrap '{original_server.name}' directly)"- )+ print(f" (Using create_proxy to wrap '{original_server.name}' directly)")proxy_server = create_proxy(original_server, name="InMemoryProxy")print(f" -> Proxy Server '{proxy_server.name}' created, proxying '{original_server.name}'."diff --git a/fastmcp_slim/fastmcp/server/server.py b/fastmcp_slim/fastmcp/server/server.pyindex a7ccba6cc..ed0112256 100644--- a/fastmcp_slim/fastmcp/server/server.py+++ b/fastmcp_slim/fastmcp/server/server.py@@ -5,7 +5,6 @@ from __future__ import annotationsimport asyncioimport loggingimport secrets-import warningsfrom collections.abc import (AsyncIterator,Callable,diff --git a/tests/client/test_stdio.py b/tests/client/test_stdio.pyindex 0b2b56364..af4995203 100644--- a/tests/client/test_stdio.py+++ b/tests/client/test_stdio.py@@ -7,7 +7,7 @@ import weakrefimport psutilimport pytest-from fastmcp import Client, FastMCP+from fastmcp import Clientfrom fastmcp.client.transports import PythonStdioTransport, StdioTransportdiff --git a/tests/server/mount/test_mount.py b/tests/server/mount/test_mount.pyindex 0ae383a1c..5f099a352 100644--- a/tests/server/mount/test_mount.py+++ b/tests/server/mount/test_mount.py@@ -273,9 +273,7 @@ class TestMultipleServerMount:)# Create a proxy server that will fail to connect- unreachable_proxy = create_proxy(- unreachable_client, name="unreachable_proxy"- )+ unreachable_proxy = create_proxy(unreachable_client, name="unreachable_proxy")# Mount the unreachable proxymain_app.mount(unreachable_proxy, "unreachable")diff --git a/tests/server/providers/proxy/test_proxy_client.py b/tests/server/providers/proxy/test_proxy_client.pyindex 594642a78..216d283e8 100644--- a/tests/server/providers/proxy/test_proxy_client.py+++ b/tests/server/providers/proxy/test_proxy_client.py@@ -12,11 +12,11 @@ from mcp_types import (from pydantic import BaseModel, Fieldfrom fastmcp import Client, Context, FastMCP-from fastmcp.server import create_proxyfrom fastmcp.client.elicitation import ElicitRequestParams, ElicitResultfrom fastmcp.client.logging import LogMessagefrom fastmcp.client.sampling import RequestContext, SamplingMessage, SamplingParamsfrom fastmcp.exceptions import ToolError+from fastmcp.server import create_proxyfrom fastmcp.server.elicitation import AcceptedElicitationfrom fastmcp.server.providers.proxy import ProxyClient, _create_client_factory