server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 39 Imported by: 0

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.

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) (Service, error)

Build constructs all dependencies and returns the server service.

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,
	proxyAuthMetadata *serverapi.ProxyAuthMetadataResponse,
	runtimeTokens *tokenstore.Store,
	cleanup func(context.Context) error,
) Service

NewService creates a new MCP server service.

Jump to

Keyboard shortcuts

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