import pytestfrom fastmcp import FastMCP, Client@pytest.fixturedefmcp_server(): server = FastMCP("TestServer")@server.tool()defgreet(name:str)->str:returnf"Hello, {name}!"return serverasyncdeftest_tool_functionality(mcp_server):# Pass the server directly to the Client constructorasyncwith Client(mcp_server)as client: result =await client.call_tool("greet",{"name":"World"})assert result[0].text =="Hello, World!"