MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / stop_devserver

Function stop_devserver

server/routers/devserver.py:328–348  ·  view source on GitHub ↗

Stop the dev server for a project. Gracefully terminates the dev server process and all its child processes. Args: project_name: Name of the project Returns: Response indicating success/failure and current status

(project_name: str)

Source from the content-addressed store, hash-verified

326
327@router.post("/stop", response_model=DevServerActionResponse)
328async def stop_devserver(project_name: str) -> DevServerActionResponse:
329 """
330 Stop the dev server for a project.
331
332 Gracefully terminates the dev server process and all its child processes.
333
334 Args:
335 project_name: Name of the project
336
337 Returns:
338 Response indicating success/failure and current status
339 """
340 manager = get_project_devserver_manager(project_name)
341
342 success, message = await manager.stop()
343
344 return DevServerActionResponse(
345 success=success,
346 status=manager.status,
347 message=message,
348 )
349
350
351@router.get("/config", response_model=DevServerConfigResponse)

Callers

nothing calls this directly

Calls 3

stopMethod · 0.45

Tested by

no test coverage detected