2025-10-25 21:17:16 +08:00
|
|
|
from langchain_mcp_adapters.client import MultiServerMCPClient
|
|
|
|
|
import json
|
|
|
|
|
|
|
|
|
|
def get_client() -> MultiServerMCPClient:
|
2025-11-01 10:41:07 +08:00
|
|
|
mcp_tools = json.load(open("mcp_servers.json"))
|
2025-10-25 21:17:16 +08:00
|
|
|
|
|
|
|
|
client = MultiServerMCPClient(mcp_tools)
|
|
|
|
|
|
|
|
|
|
return client
|