Merge branch 'kexsh/main/my' of http://192.168.0.4:3000/kexsh/graphtest into kexsh/main/my

This commit is contained in:
2025-11-01 11:01:13 +08:00
3 changed files with 11 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ LANGSMITH_API_KEY=lsv2...
```shell
langgraph dev
langgraph dev --allow-blocking
```
For more information on getting started with LangGraph Server, [see here](https://langchain-ai.github.io/langgraph/tutorials/langgraph-platform/local-server/).

9
mcp_servers.json Normal file
View File

@@ -0,0 +1,9 @@
{
"math": {
"command": "python",
"args": [
"/home/kexsh/src/knightutils/test/mcp/math_server.py"
],
"transport": "stdio"
}
}

View File

@@ -2,7 +2,7 @@ from langchain_mcp_adapters.client import MultiServerMCPClient
import json
def get_client() -> MultiServerMCPClient:
mcp_tools = json.load(open("mcp_tools.json"))
mcp_tools = json.load(open("mcp_servers.json"))
client = MultiServerMCPClient(mcp_tools)