MCPcopy
hub / github.com/AstrBotDevs/AstrBot / delete_mcp_server

Function delete_mcp_server

astrbot/dashboard/api/tools.py:306–311  ·  view source on GitHub ↗
(
    server_name: str,
    _auth: AuthContext = Depends(require_mcp_scope),
    service: ToolsService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

304
305@router.delete("/mcp/servers/{server_name:path}")
306async def delete_mcp_server(
307 server_name: str,
308 _auth: AuthContext = Depends(require_mcp_scope),
309 service: ToolsService = Depends(get_service),
310):
311 return await _delete_mcp_server(server_name, service)
312
313
314@router.post("/mcp/providers/modelscope/sync")

Callers

nothing calls this directly

Calls 1

_delete_mcp_serverFunction · 0.85

Tested by

no test coverage detected