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 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.
Source Files
¶
- api.go
- auth.go
- builder.go
- faucet_jobs.go
- markdown.go
- operations_benchmarkoor.go
- operations_block_archive.go
- operations_cbt.go
- operations_clickhouse.go
- operations_compute.go
- operations_dispatch.go
- operations_dora.go
- operations_ethnode.go
- operations_evm.go
- operations_forky.go
- operations_listing.go
- operations_loki.go
- operations_networks.go
- operations_prometheus.go
- operations_request.go
- operations_specs.go
- operations_tracoor.go
- resolve.go
- runtime_socket.go
- server.go
- uploads.go
Click to show internal directories.
Click to hide internal directories.