mockPrompt creates a minimal ServerPrompt for testing
(name string, toolsetID string)
| 675 | |
| 676 | // mockPrompt creates a minimal ServerPrompt for testing |
| 677 | func mockPrompt(name string, toolsetID string) ServerPrompt { |
| 678 | return NewServerPrompt( |
| 679 | testToolsetMetadata(toolsetID), |
| 680 | mcp.Prompt{Name: name}, |
| 681 | func(_ context.Context, _ *mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { |
| 682 | return nil, nil |
| 683 | }, |
| 684 | ) |
| 685 | } |
| 686 | |
| 687 | func TestForMCPRequest_Initialize(t *testing.T) { |
| 688 | tools := []ServerTool{ |
no test coverage detected