Files
graphtest/src/mcp/mcp_tools.py
kexsh 2f210d7ccf
Some checks failed
Integration Tests / Integration Tests (ubuntu-latest, 3.11) (push) Has been cancelled
Integration Tests / Integration Tests (ubuntu-latest, 3.12) (push) Has been cancelled
解决配置文件找不到的问题;
解决block的问题
2025-11-01 10:41:07 +08:00

9 lines
234 B
Python

from langchain_mcp_adapters.client import MultiServerMCPClient
import json
def get_client() -> MultiServerMCPClient:
mcp_tools = json.load(open("mcp_servers.json"))
client = MultiServerMCPClient(mcp_tools)
return client