mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 16:07:45 +08:00
change: mcp test
This commit is contained in:
@@ -38,6 +38,22 @@ func TestCallTool(t *testing.T) {
|
|||||||
map[string]interface{}{"state": "CA"},
|
map[string]interface{}{"state": "CA"},
|
||||||
)
|
)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
result, err = hub.InvokeTool(ctx, "shoots_ug_toolbox_utils_utils", "get_udid",
|
||||||
|
map[string]interface{}{},
|
||||||
|
)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
result, err = hub.InvokeTool(ctx, "shoots_ug_toolbox_utils_utils", "is_login",
|
||||||
|
map[string]interface{}{},
|
||||||
|
)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
result, err = hub.InvokeTool(ctx, "shoots_ug_toolbox_utils_utils", "login_app_account",
|
||||||
|
map[string]interface{}{"phone": "a12342038903", "password": "a123456"},
|
||||||
|
)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
t.Logf("Result: %v", result)
|
t.Logf("Result: %v", result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+32
-22
@@ -1,27 +1,37 @@
|
|||||||
{
|
{
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"filesystem": {
|
"shoots_ug_toolbox_install_helper": {
|
||||||
"command": "npx",
|
"args": [
|
||||||
"args": [
|
"--directory",
|
||||||
"-y",
|
"/Users/debugtalk/MyProjects/ByteDance/EvalTools/shoots-ug-box",
|
||||||
"@modelcontextprotocol/server-filesystem",
|
"run",
|
||||||
"/Users/debugtalk/Downloads/tmp"
|
"install_helper.py"
|
||||||
]
|
],
|
||||||
|
"command": "uv"
|
||||||
|
},
|
||||||
|
"shoots_ug_toolbox_utils_utils": {
|
||||||
|
"args": [
|
||||||
|
"--directory",
|
||||||
|
"/Users/debugtalk/MyProjects/ByteDance/EvalTools/shoots-ug-box",
|
||||||
|
"run",
|
||||||
|
"utils_utils.py"
|
||||||
|
],
|
||||||
|
"command": "uv"
|
||||||
},
|
},
|
||||||
"weather": {
|
"weather": {
|
||||||
"command": "uv",
|
"args": [
|
||||||
"args": [
|
"--directory",
|
||||||
"--directory",
|
"/Users/debugtalk/MyProjects/ByteDance/EvalTools/shoots-ug-box",
|
||||||
"/Users/debugtalk/MyProjects/ByteDance/EvalTools/quickstart-resources/weather-server-python/",
|
"run",
|
||||||
"run",
|
"demo_weather.py"
|
||||||
"weather.py"
|
],
|
||||||
],
|
"autoApprove": [
|
||||||
"autoApprove": [
|
"get_forecast"
|
||||||
"get_forecast"
|
],
|
||||||
],
|
"command": "uv",
|
||||||
"env": {
|
"env": {
|
||||||
"ABC": "123"
|
"ABC": "123"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
v5.0.0-beta-2504232132
|
v5.0.0-beta-2504241750
|
||||||
|
|||||||
Reference in New Issue
Block a user