Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrServerNotCompiled = errors.New("MCP server is nil")
ErrServerNotCompiled is returned when attempting to create an MCP app with a configuration that doesn't have a compiled MCP server. This typically happens when the config validation step was skipped.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is an MCP (Model Context Protocol) application that serves MCP endpoints
func (*App) HandleHTTP ¶
HandleHTTP processes HTTP requests by delegating to the MCP SDK's HTTP handler.
type Config ¶
type Config struct {
// ID is the unique identifier for this app instance
ID string
// CompiledServer is the pre-compiled MCP server from domain validation.
// This server contains all registered tools and is ready to handle MCP requests.
CompiledServer *mcpsdk.Server
}
Config contains everything needed to instantiate an MCP app. This is a Data Transfer Object (DTO) with no dependencies on domain packages. All validation and server compilation happens at the domain layer before creating this config.
Click to show internal directories.
Click to hide internal directories.