Versions in this module Expand all Collapse all v0 v0.0.2 Dec 19, 2025 Changes in this version type E2ETestCase + InvokeAIClientWithServerInfo func(t *testing.T, serverInfo *integration.MCPANYTestServerInfo) v0.0.1 Dec 17, 2025 Changes in this version + const DefaultModel + var FindFreePort = integration.FindFreePort + var GetProjectRoot = integration.GetProjectRoot + var NewManagedProcess = integration.NewManagedProcess + var ServiceStartupTimeout = 15 * time.Second + var WaitForTCPPort = integration.WaitForTCPPort + func BuildCachingServer(t *testing.T) *integration.ManagedProcess + func BuildEverythingServer(t *testing.T) *integration.ManagedProcess + func BuildGRPCAuthedWeatherServer(t *testing.T) *integration.ManagedProcess + func BuildGRPCWeatherServer(t *testing.T) *integration.ManagedProcess + func BuildHTTPAuthedEchoServer(t *testing.T) *integration.ManagedProcess + func BuildHTTPEchoServer(t *testing.T) *integration.ManagedProcess + func BuildOpenAPIAuthedServer(t *testing.T) *integration.ManagedProcess + func BuildOpenAPIWeatherServer(t *testing.T) *integration.ManagedProcess + func BuildStdioDockerServer(_ *testing.T) *integration.ManagedProcess + func BuildStdioServer(_ *testing.T) *integration.ManagedProcess + func BuildStreamableHTTPServer(t *testing.T) *integration.ManagedProcess + func BuildWebrtcWeatherServer(t *testing.T) *integration.ManagedProcess + func BuildWebsocketWeatherServer(t *testing.T) *integration.ManagedProcess + func NoOpMiddleware(_ *testing.T, next http.Handler) http.Handler + func RegisterCachingService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RegisterEverythingService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RegisterGRPCAuthedWeatherService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RegisterGRPCWeatherService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RegisterHTTPAuthedEchoService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RegisterHTTPEchoService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RegisterOpenAPIAuthedService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RegisterOpenAPIWeatherService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RegisterStdioDockerService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, _ string) + func RegisterStdioService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, _ string) + func RegisterStreamableHTTPService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RegisterWebrtcWeatherService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RegisterWebsocketWeatherService(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + func RunE2ETest(t *testing.T, testCase *E2ETestCase) + func TestE2ECaching(t *testing.T) + func ValidateCaching(t *testing.T, mcpanyEndpoint, upstreamEndpoint string) + func ValidateRegisteredTool(t *testing.T, mcpanyEndpoint string, expectedTool *mcp.Tool) + func VerifyMCPClient(t *testing.T, mcpanyEndpoint string) + type AITool interface + AddMCP func(name, endpoint string) + Install func() + RemoveMCP func(name string) + Run func(apiKey, model, prompt string) (string, error) + type E2ETestCase struct + BuildUpstream func(t *testing.T) *integration.ManagedProcess + GenerateUpstreamConfig func(_ string) string + InvokeAIClient func(t *testing.T, mcpanyEndpoint string) + Name string + RegisterUpstream func(t *testing.T, registrationClient apiv1.RegistrationServiceClient, ...) + RegisterUpstreamWithJSONRPC func(t *testing.T, mcpanyEndpoint, upstreamEndpoint string) + RegistrationMethods []RegistrationMethod + StartMCPANYServer func(t *testing.T, testName string, extraArgs ...string) *integration.MCPANYTestServerInfo + UpstreamServiceType string + ValidateMiddlewares func(t *testing.T, mcpanyEndpoint string, upstreamEndpoint string) + ValidateTool func(t *testing.T, mcpanyEndpoint string) + type GeminiCLI struct + func NewGeminiCLI(t *testing.T) *GeminiCLI + func (g *GeminiCLI) AddMCP(name, endpoint string) + func (g *GeminiCLI) Install() + func (g *GeminiCLI) RemoveMCP(name string) + func (g *GeminiCLI) Run(apiKey, prompt string) (string, error) + type RegistrationMethod string + const FileRegistration + const GRPCRegistration + const JSONRPCRegistration