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
+16
View File
@@ -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)
} }
+22 -12
View File
@@ -1,24 +1,34 @@
{ {
"mcpServers": { "mcpServers": {
"filesystem": { "shoots_ug_toolbox_install_helper": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/debugtalk/Downloads/tmp"
]
},
"weather": {
"command": "uv",
"args": [ "args": [
"--directory", "--directory",
"/Users/debugtalk/MyProjects/ByteDance/EvalTools/quickstart-resources/weather-server-python/", "/Users/debugtalk/MyProjects/ByteDance/EvalTools/shoots-ug-box",
"run", "run",
"weather.py" "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": {
"args": [
"--directory",
"/Users/debugtalk/MyProjects/ByteDance/EvalTools/shoots-ug-box",
"run",
"demo_weather.py"
], ],
"autoApprove": [ "autoApprove": [
"get_forecast" "get_forecast"
], ],
"command": "uv",
"env": { "env": {
"ABC": "123" "ABC": "123"
} }
+1 -1
View File
@@ -1 +1 @@
v5.0.0-beta-2504232132 v5.0.0-beta-2504241750