MCPcopy Create free account
hub / github.com/langchain-ai/deepagents / _build_server_cmd

Function _build_server_cmd

libs/code/deepagents_code/server.py:296–320  ·  view source on GitHub ↗

Build the `langgraph dev` command line. Args: config_path: Path to the `langgraph.json` config file. host: Host to bind. port: Port to bind. Returns: Command argv list.

(config_path: Path, *, host: str, port: int)

Source from the content-addressed store, hash-verified

294
295
296def _build_server_cmd(config_path: Path, *, host: str, port: int) -> list[str]:
297 """Build the `langgraph dev` command line.
298
299 Args:
300 config_path: Path to the `langgraph.json` config file.
301 host: Host to bind.
302 port: Port to bind.
303
304 Returns:
305 Command argv list.
306 """
307 return [
308 sys.executable,
309 "-m",
310 "langgraph_cli",
311 "dev",
312 "--host",
313 host,
314 "--port",
315 str(port),
316 "--no-browser",
317 "--no-reload",
318 "--config",
319 str(config_path),
320 ]
321
322
323def _build_server_env() -> dict[str, str]:

Callers 4

startMethod · 0.85

Calls

no outgoing calls