MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / _model_dict

Function _model_dict

astrbot/dashboard/api/tools.py:55–56  ·  view source on GitHub ↗
(payload: McpServerRequest | McpServerByNameRequest)

Source from the content-addressed store, hash-verified

53
54
55def _model_dict(payload: McpServerRequest | McpServerByNameRequest) -> dict[str, Any]:
56 return payload.model_dump(exclude_none=True)
57
58
59def _normalize_server_config(body: dict[str, Any], id_key: str) -> dict[str, Any]:

Callers 6

create_mcp_serverFunction · 0.70
test_mcp_server_by_nameFunction · 0.70
test_mcp_serverFunction · 0.70
update_mcp_serverFunction · 0.70

Calls

no outgoing calls

Tested by 2

test_mcp_server_by_nameFunction · 0.56
test_mcp_serverFunction · 0.56