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

Function get_devserver_status

server/routers/devserver.py:249–267  ·  view source on GitHub ↗

Get the current status of the dev server for a project. Returns information about whether the dev server is running, its process ID, detected URL, and the command used to start it.

(project_name: str)

Source from the content-addressed store, hash-verified

247
248@router.get("/status", response_model=DevServerStatus)
249async def get_devserver_status(project_name: str) -> DevServerStatus:
250 """
251 Get the current status of the dev server for a project.
252
253 Returns information about whether the dev server is running,
254 its process ID, detected URL, and the command used to start it.
255 """
256 manager = get_project_devserver_manager(project_name)
257
258 # Run healthcheck to detect crashed processes
259 await manager.healthcheck()
260
261 return DevServerStatus(
262 status=manager.status,
263 pid=manager.pid,
264 url=manager.detected_url,
265 command=manager._command,
266 started_at=manager.started_at.isoformat() if manager.started_at else None,
267 )
268
269
270@router.post("/start", response_model=DevServerActionResponse)

Callers

nothing calls this directly

Calls 3

DevServerStatusClass · 0.85
healthcheckMethod · 0.45

Tested by

no test coverage detected