Documentation
¶
Overview ¶
Package server provides the MCP server implementation for ethpandaops-panda.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder constructs and wires all dependencies for the MCP server.
func NewBuilder ¶
func NewBuilder(log logrus.FieldLogger, cfg *config.Config) *Builder
NewBuilder creates a new server builder.
type Dependencies ¶
type Dependencies struct {
Logger logrus.FieldLogger
Config *config.Config
ToolRegistry tool.Registry
ResourceRegistry resource.Registry
Sandbox sandbox.Service
ProxyAuth *serverapi.ProxyAuthMetadataResponse
}
Dependencies contains all the services required to run the MCP server.
type Service ¶
type Service interface {
// Start initializes and starts the MCP server.
Start(ctx context.Context) error
// Stop gracefully shuts down the server.
Stop() error
}
Service is the main MCP server service.
func NewService ¶
func NewService( log logrus.FieldLogger, cfg config.ServerConfig, toolRegistry tool.Registry, resourceRegistry resource.Registry, searchSvc *searchsvc.Service, execSvc *execsvc.Service, proxySvc proxy.Service, storageSvc storage.Service, moduleReg *module.Registry, cartographoorClient cartographoor.CartographoorClient, specsReg *consensusspecs.Registry, proxyAuthMetadata *serverapi.ProxyAuthMetadataResponse, runtimeTokens *tokenstore.Store, cleanup func(context.Context) error, ) Service
NewService creates a new MCP server service.
Click to show internal directories.
Click to hide internal directories.