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

Function _test_mcp_server

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

Source from the content-addressed store, hash-verified

149
150
151async def _test_mcp_server(
152 server_name: str,
153 body: dict[str, Any],
154 service: ToolsService,
155):
156 config = _test_config_body(service, server_name, body)
157 return await _run(
158 lambda: service.test_mcp_connection(
159 {"name": server_name, "mcp_server_config": config}
160 ),
161 message="🎉 MCP server is available!",
162 )
163
164
165async def _sync_modelscope_mcp_servers(

Callers 2

test_mcp_server_by_nameFunction · 0.85
test_mcp_serverFunction · 0.85

Calls 3

_test_config_bodyFunction · 0.85
test_mcp_connectionMethod · 0.80
_runFunction · 0.70

Tested by 2

test_mcp_server_by_nameFunction · 0.68
test_mcp_serverFunction · 0.68