mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-10 17:43:00 +08:00
change: mcp test
This commit is contained in:
@@ -38,6 +38,22 @@ func TestCallTool(t *testing.T) {
|
||||
map[string]interface{}{"state": "CA"},
|
||||
)
|
||||
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)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,27 +1,37 @@
|
||||
{
|
||||
"mcpServers": {
|
||||
"filesystem": {
|
||||
"command": "npx",
|
||||
"args": [
|
||||
"-y",
|
||||
"@modelcontextprotocol/server-filesystem",
|
||||
"/Users/debugtalk/Downloads/tmp"
|
||||
]
|
||||
"mcpServers": {
|
||||
"shoots_ug_toolbox_install_helper": {
|
||||
"args": [
|
||||
"--directory",
|
||||
"/Users/debugtalk/MyProjects/ByteDance/EvalTools/shoots-ug-box",
|
||||
"run",
|
||||
"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": {
|
||||
"command": "uv",
|
||||
"args": [
|
||||
"--directory",
|
||||
"/Users/debugtalk/MyProjects/ByteDance/EvalTools/quickstart-resources/weather-server-python/",
|
||||
"run",
|
||||
"weather.py"
|
||||
],
|
||||
"autoApprove": [
|
||||
"get_forecast"
|
||||
],
|
||||
"env": {
|
||||
"ABC": "123"
|
||||
}
|
||||
"args": [
|
||||
"--directory",
|
||||
"/Users/debugtalk/MyProjects/ByteDance/EvalTools/shoots-ug-box",
|
||||
"run",
|
||||
"demo_weather.py"
|
||||
],
|
||||
"autoApprove": [
|
||||
"get_forecast"
|
||||
],
|
||||
"command": "uv",
|
||||
"env": {
|
||||
"ABC": "123"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
v5.0.0-beta-2504232132
|
||||
v5.0.0-beta-2504241750
|
||||
|
||||
Reference in New Issue
Block a user