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

Function _create_mcp_server

astrbot/dashboard/api/tools.py:121–127  ·  view source on GitHub ↗
(body: dict[str, Any], service: ToolsService)

Source from the content-addressed store, hash-verified

119
120
121async def _create_mcp_server(body: dict[str, Any], service: ToolsService):
122 if "enabled" in body and "active" not in body:
123 body["active"] = body.pop("enabled")
124 return await _run(
125 lambda: service.add_mcp_server(body),
126 result_as_message=True,
127 )
128
129
130async def _update_mcp_server(

Callers 2

create_mcp_serverFunction · 0.85
add_dashboard_mcp_serverFunction · 0.85

Calls 3

popMethod · 0.80
add_mcp_serverMethod · 0.80
_runFunction · 0.70

Tested by

no test coverage detected