@@ -82,8 +82,8 @@ def find_available_port(start_port=8080, max_attempts=20):
82
82
83
83
# Check if MCP server port is available (commonly uses port 8080)
84
84
if not is_port_available (8080 ):
85
- logger .warning (f "⚠️ Port 8080 is already in use by another process" )
86
- print (f "⚠️ Warning: Port 8080 is already in use by another process." , file = sys .stderr )
85
+ logger .warning ("⚠️ Port 8080 is already in use by another process" )
86
+ print ("⚠️ Warning: Port 8080 is already in use by another process." , file = sys .stderr )
87
87
88
88
# Find an alternative port
89
89
alt_port = find_available_port (8081 )
@@ -94,7 +94,7 @@ def find_available_port(start_port=8080, max_attempts=20):
94
94
# Set environment variable with alternative port suggestion
95
95
os .environ ["GRAPHISTRY_SUGGESTED_PORT" ] = str (alt_port )
96
96
else :
97
- print (f "❌ No alternative ports available in range 8081-8100." , file = sys .stderr )
97
+ print ("❌ No alternative ports available in range 8081-8100." , file = sys .stderr )
98
98
logger .warning ("No alternative ports available in range 8081-8100" )
99
99
100
100
try :
@@ -106,7 +106,7 @@ def find_available_port(start_port=8080, max_attempts=20):
106
106
if result .stdout :
107
107
print (f"Process using port 8080:\n { result .stdout } " , file = sys .stderr )
108
108
logger .info (f"Process using port 8080:\n { result .stdout } " )
109
- print (f "To free the port, you can terminate the process using: kill <PID>" , file = sys .stderr )
109
+ print ("To free the port, you can terminate the process using: kill <PID>" , file = sys .stderr )
110
110
except Exception as e :
111
111
logger .error (f"Unable to check what's using port 8080: { e } " )
112
112
except Exception as e :
@@ -255,7 +255,7 @@ def install_dependency(package):
255
255
env_username = os .environ .get ("GRAPHISTRY_USERNAME" )
256
256
env_password = os .environ .get ("GRAPHISTRY_PASSWORD" )
257
257
258
- print (f "Environment variables:" )
258
+ print ("Environment variables:" )
259
259
print (f"GRAPHISTRY_USERNAME found: { 'Yes' if env_username else 'No' } " )
260
260
print (f"GRAPHISTRY_PASSWORD found: { 'Yes' if env_password else 'No' } " )
261
261
@@ -268,7 +268,7 @@ def install_dependency(package):
268
268
env_values = dotenv_values (dotenv_path )
269
269
dotenv_username = env_values .get ('GRAPHISTRY_USERNAME' )
270
270
dotenv_password = env_values .get ('GRAPHISTRY_PASSWORD' )
271
- print (f "Credentials from .env file:" )
271
+ print ("Credentials from .env file:" )
272
272
print (f"GRAPHISTRY_USERNAME found: { 'Yes' if dotenv_username else 'No' } " )
273
273
print (f"GRAPHISTRY_PASSWORD found: { 'Yes' if dotenv_password else 'No' } " )
274
274
0 commit comments