MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / start_web_server

Function start_web_server

run_ui.py:41–49  ·  view source on GitHub ↗
(server_runtime: UiServerRuntime, host: str, port: int)

Source from the content-addressed store, hash-verified

39
40
41def start_web_server(server_runtime: UiServerRuntime, host: str, port: int) -> None:
42 run_uvicorn_with_retries(
43 host=host,
44 port=port,
45 build_asgi_app=server_runtime.build_asgi_app,
46 flush_callback=create_flush_callback(),
47 access_log=server_runtime.access_log_enabled(),
48 ws="wsproto",
49 )
50
51
52def create_flush_callback():

Callers 1

runFunction · 0.85

Calls 3

run_uvicorn_with_retriesFunction · 0.90
create_flush_callbackFunction · 0.85
access_log_enabledMethod · 0.80

Tested by

no test coverage detected