Skip to main content
Glama

WebEvalAgent MCP Server

Official
by withRefresh
utils.py894 B
import platform import subprocess def stop_log_server(): """Stop the log server on port 5009. This function attempts to stop any process running on port 5009 by killing the process if it's a Unix-like system, or using taskkill on Windows. """ try: if platform.system() == "Windows": subprocess.run(["taskkill", "/F", "/PID", subprocess.check_output(["netstat", "-ano", "|", "findstr", ":5009"]).decode().strip().split()[-1]], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL) else: # Unix-like systems (Linux, macOS) subprocess.run("kill $(lsof -ti tcp:5009)", shell=True, stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL) except Exception: pass # Ignore errors if no process is running on that port

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/withRefresh/web-eval-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server