MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / _normalize_endpoint

Function _normalize_endpoint

api_utils/mcp_adapter.py:9–12  ·  view source on GitHub ↗
(ep: str)

Source from the content-addressed store, hash-verified

7
8
9def _normalize_endpoint(ep: str) -> str:
10 if not ep:
11 raise RuntimeError("MCP HTTP endpoint not provided")
12 return ep.rstrip("/")
13
14
15async def execute_mcp_tool(name: str, params: Dict[str, Any]) -> str:

Calls

no outgoing calls