MCPcopy
hub / github.com/grafana/tempo / listTools

Function listTools

integration/api/mcp_test.go:105–111  ·  view source on GitHub ↗
(t *testing.T, mcpClient mcpclient.MCPClient)

Source from the content-addressed store, hash-verified

103}
104
105func listTools(t *testing.T, mcpClient mcpclient.MCPClient) []mcp.Tool {
106 toolsResponse, err := mcpClient.ListTools(context.Background(), mcp.ListToolsRequest{})
107 if err != nil {
108 t.Fatalf("failed to list tools: %v", err)
109 }
110 return toolsResponse.Tools
111}
112
113func assertTraceOverMCP(t *testing.T, mcpClient mcpclient.MCPClient, traceID string) {
114 resp, err := mcpClient.CallTool(context.Background(), mcp.CallToolRequest{

Callers 1

TestMCPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected