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

Function update_mcp_server

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

Source from the content-addressed store, hash-verified

293
294@router.put("/mcp/servers/{server_name:path}")
295async def update_mcp_server(
296 server_name: str,
297 payload: McpServerRequest,
298 _auth: AuthContext = Depends(require_mcp_scope),
299 service: ToolsService = Depends(get_service),
300):
301 body = _model_dict(payload)
302 return await _update_mcp_server(server_name, body, service)
303
304
305@router.delete("/mcp/servers/{server_name:path}")

Callers

nothing calls this directly

Calls 2

_update_mcp_serverFunction · 0.85
_model_dictFunction · 0.70

Tested by

no test coverage detected