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

Function _sync_modelscope_mcp_servers

astrbot/dashboard/api/tools.py:165–177  ·  view source on GitHub ↗
(
    access_token: str,
    service: ToolsService,
)

Source from the content-addressed store, hash-verified

163
164
165async def _sync_modelscope_mcp_servers(
166 access_token: str,
167 service: ToolsService,
168):
169 return await _run(
170 lambda: service.sync_provider(
171 {
172 "name": "modelscope",
173 "access_token": access_token,
174 }
175 ),
176 result_as_message=True,
177 )
178
179
180@router.get("/tools")

Callers 1

Calls 2

sync_providerMethod · 0.80
_runFunction · 0.70

Tested by

no test coverage detected