MCPcopy Create free account
hub / github.com/github/github-mcp-server / TestSearchTools_FindsByName

Function TestSearchTools_FindsByName

pkg/tooldiscovery/search_test.go:17–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15}
16
17func TestSearchTools_FindsByName(t *testing.T) {
18 tools := []mcp.Tool{
19 {Name: "issue_list", Description: "List issues"},
20 {Name: "repo_get", Description: "Get repository"},
21 }
22
23 results, err := SearchTools(tools, "issue", SearchOptions{MaxResults: 10})
24 require.NoError(t, err)
25 require.NotEmpty(t, results)
26 require.Equal(t, "issue_list", results[0].Tool.Name)
27}
28
29func TestSearchTools_FindsByParameterName_JSONSchema(t *testing.T) {
30 tools := []mcp.Tool{

Callers

nothing calls this directly

Calls 1

SearchToolsFunction · 0.85

Tested by

no test coverage detected