解决配置文件找不到的问题;
解决block的问题
This commit is contained in:
@@ -39,6 +39,7 @@ LANGSMITH_API_KEY=lsv2...
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
langgraph dev
|
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/).
|
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
9
mcp_servers.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"math": {
|
||||||
|
"command": "python",
|
||||||
|
"args": [
|
||||||
|
"/home/kexsh/src/knightutils/test/mcp/math_server.py"
|
||||||
|
],
|
||||||
|
"transport": "stdio"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@ from langchain_mcp_adapters.client import MultiServerMCPClient
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
def get_client() -> MultiServerMCPClient:
|
def get_client() -> MultiServerMCPClient:
|
||||||
mcp_tools = json.load(open("mcp_tools.json"))
|
mcp_tools = json.load(open("mcp_servers.json"))
|
||||||
|
|
||||||
client = MultiServerMCPClient(mcp_tools)
|
client = MultiServerMCPClient(mcp_tools)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user