mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +02:00
Apply ruff-format: drop now-unused imports and reflow
This commit is contained in:
parent
508a08475f
commit
396fb876d3
5 changed files with 4 additions and 9 deletions
|
|
@ -38,9 +38,7 @@ async def main():
|
|||
|
||||
# 2. Proxy Server Creation
|
||||
print("\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}'."
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ from __future__ import annotations
|
|||
import asyncio
|
||||
import logging
|
||||
import secrets
|
||||
import warnings
|
||||
from collections.abc import (
|
||||
AsyncIterator,
|
||||
Callable,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import weakref
|
|||
import psutil
|
||||
import pytest
|
||||
|
||||
from fastmcp import Client, FastMCP
|
||||
from fastmcp import Client
|
||||
from fastmcp.client.transports import PythonStdioTransport, StdioTransport
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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 proxy
|
||||
main_app.mount(unreachable_proxy, "unreachable")
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@ from mcp_types import (
|
|||
from pydantic import BaseModel, Field
|
||||
|
||||
from fastmcp import Client, Context, FastMCP
|
||||
from fastmcp.server import create_proxy
|
||||
from fastmcp.client.elicitation import ElicitRequestParams, ElicitResult
|
||||
from fastmcp.client.logging import LogMessage
|
||||
from fastmcp.client.sampling import RequestContext, SamplingMessage, SamplingParams
|
||||
from fastmcp.exceptions import ToolError
|
||||
from fastmcp.server import create_proxy
|
||||
from fastmcp.server.elicitation import AcceptedElicitation
|
||||
from fastmcp.server.providers.proxy import ProxyClient, _create_client_factory
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue