server

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 66 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 FaucetJob added in v0.39.1

type FaucetJob struct {
	ID          string    `json:"job_id"`
	Network     string    `json:"network"`
	Address     string    `json:"address"`
	AmountWei   string    `json:"amount_wei,omitempty"`
	State       string    `json:"state"`
	Session     string    `json:"session,omitempty"`
	ClaimHash   string    `json:"claim_hash,omitempty"`
	BlockNumber uint64    `json:"block_number,omitempty"`
	Error       string    `json:"error,omitempty"`
	Terminal    bool      `json:"terminal"`
	StartedAt   time.Time `json:"started_at"`
	ExpiresAt   time.Time `json:"expires_at"`
}

FaucetJob is a snapshot. Submitted means submission was attempted, not that a transaction has a receipt. Terminal stops background work, not recovery.

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,
	runbookReg *runbooks.Registry,
	proxyAuthMetadata *serverapi.ProxyAuthMetadataResponse,
	credentials *credentialController,
	runtimeTokens *tokenstore.Store,
	runtimeSocketPath string,
	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