mcp

package
v0.0.0-...-03a4827 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MCPIntegrationTestSuite

type MCPIntegrationTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

MCPIntegrationTestSuite is a base test suite for MCP integration tests

func (*MCPIntegrationTestSuite) GetAppByID

func (s *MCPIntegrationTestSuite) GetAppByID(appID string) (apps.App, bool)

GetAppByID returns an app by ID with existence check

func (*MCPIntegrationTestSuite) GetConfig

func (s *MCPIntegrationTestSuite) GetConfig() *config.Config

GetConfig returns the current configuration

func (*MCPIntegrationTestSuite) GetContext

func (s *MCPIntegrationTestSuite) GetContext() context.Context

GetContext returns the test context

func (*MCPIntegrationTestSuite) GetMCPSession

func (s *MCPIntegrationTestSuite) GetMCPSession() *mcpsdk.ClientSession

GetMCPSession returns the MCP session for tests to use

func (*MCPIntegrationTestSuite) GetPort

func (s *MCPIntegrationTestSuite) GetPort() int

GetPort returns the test port

func (*MCPIntegrationTestSuite) SetupSuiteWithConfig

func (s *MCPIntegrationTestSuite) SetupSuiteWithConfig(cfg *config.Config)

SetupSuiteWithConfig sets up the test suite with a given configuration

func (*MCPIntegrationTestSuite) SetupSuiteWithFile

func (s *MCPIntegrationTestSuite) SetupSuiteWithFile(configFile string)

SetupSuiteWithFile sets up the test suite with a configuration file

func (*MCPIntegrationTestSuite) SetupSuiteWithTemplate

func (s *MCPIntegrationTestSuite) SetupSuiteWithTemplate(templateContent string)

SetupSuiteWithTemplate sets up the test suite with a template configuration

func (*MCPIntegrationTestSuite) TearDownSuite

func (s *MCPIntegrationTestSuite) TearDownSuite()

TearDownSuite tears down the test suite

func (*MCPIntegrationTestSuite) ValidateAppExists

func (s *MCPIntegrationTestSuite) ValidateAppExists(appID string, expectedType string)

ValidateAppExists validates that an app exists with the specified type

func (*MCPIntegrationTestSuite) ValidateEmbeddedConfig

func (s *MCPIntegrationTestSuite) ValidateEmbeddedConfig(configBytes []byte) *config.Config

ValidateEmbeddedConfig validates that the embedded config can be loaded and passes validation

func (*MCPIntegrationTestSuite) ValidateEndpointRoutes

func (s *MCPIntegrationTestSuite) ValidateEndpointRoutes(endpointID string, expectedRouteCount int)

ValidateEndpointRoutes validates that an endpoint has the expected number of routes

func (*MCPIntegrationTestSuite) ValidateListenerConfig

func (s *MCPIntegrationTestSuite) ValidateListenerConfig(listenerType listeners.Type, expectedCount int)

ValidateListenerConfig validates listener configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL