server

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksecTraceRequest

type BlocksecTraceRequest struct {
	ChainID int    `json:"chainID"`
	TxnHash string `json:"txnHash"`
	Blocked bool   `json:"blocked"`
}

BlocksecTraceRequest represents the request payload for BlockSec API

type ChainData

type ChainData struct {
	Name      string `json:"name"`
	Chain     string `json:"chain"`
	ChainSlug string `json:"chainSlug"`
	ChainId   uint64 `json:"chainId"`
}

ChainData represents the data for a blockchain from chainlist.org

type OverviewResult

type OverviewResult struct {
	Results map[string]Result `json:"results"`
}

OverviewResult represents the combined result from all data sources

type Result

type Result struct {
	Name    string          `json:"name"`
	Success bool            `json:"success"`
	Data    json.RawMessage `json:"data,omitempty"`
	Error   string          `json:"error,omitempty"`
}

Result represents a single data source result with success/error status

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents the Phalcon MCP server

func NewServer

func NewServer(version string) *Server

NewServer creates a new Phalcon MCP server

func (*Server) GetMCPServer added in v0.4.0

func (s *Server) GetMCPServer() *mcpserver.MCPServer

GetMCPServer returns the underlying MCPServer for use with InProcessTransport

func (*Server) ServeStdio

func (s *Server) ServeStdio() error

ServeStdio starts the MCP server in stdio mode

Jump to

Keyboard shortcuts

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