(ctx context.Context, req *mcp.CallToolRequest, _ any)
| 190 | } |
| 191 | |
| 192 | func pingingTool(ctx context.Context, req *mcp.CallToolRequest, _ any) (*mcp.CallToolResult, any, error) { |
| 193 | if err := req.Session.Ping(ctx, nil); err != nil { |
| 194 | return nil, nil, fmt.Errorf("ping failed") |
| 195 | } |
| 196 | return nil, nil, nil |
| 197 | } |
| 198 | |
| 199 | func loggingTool(ctx context.Context, req *mcp.CallToolRequest, _ any) (*mcp.CallToolResult, any, error) { |
| 200 | if err := req.Session.Log(ctx, &mcp.LoggingMessageParams{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…