解决配置文件找不到的问题;
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的问题
This commit is contained in:
2025-11-01 10:41:07 +08:00
parent 6c7574cd88
commit 2f210d7ccf
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)