feat: load mcp config file

This commit is contained in:
lilong.129
2025-05-16 10:39:44 +08:00
parent a91eba6070
commit d834b5a2e1
6 changed files with 281 additions and 1 deletions

27
pkg/mcphost/testdata/test.mcp.json vendored Normal file
View File

@@ -0,0 +1,27 @@
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"./"
]
},
"weather": {
"args": [
"--directory",
"/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/pkg/mcphost/testdata",
"run",
"demo_weather.py"
],
"autoApprove": [
"get_forecast"
],
"command": "uv",
"env": {
"ABC": "123"
}
}
}
}