change: mcp test

This commit is contained in:
lilong.129
2025-04-24 17:50:36 +08:00
parent ac653c2d02
commit 5d54588f1b
3 changed files with 50 additions and 24 deletions

View File

@@ -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)
}

View File

@@ -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"
}
}
}
}
}
}

View File

@@ -1 +1 @@
v5.0.0-beta-2504232132
v5.0.0-beta-2504241750