server

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const CacheTtl = time.Hour * 12

Variables

View Source
var ErrCacheFileOutdated = fmt.Errorf("cache file is outdated")

Functions

func NewPromptServerOptions

func NewPromptServerOptions() []server.ServerOption

func WithPromptServerOption

func WithPromptServerOption(prompt mcp.Prompt, handler server.PromptHandlerFunc) server.ServerOption

Types

type SchemaType

type SchemaType string
const (
	SchemaTypeString  SchemaType = "string"
	SchemaTypeInteger SchemaType = "integer"
	SchemaTypeBoolean SchemaType = "boolean"
	SchemaTypeArray   SchemaType = "array"
	SchemaTypeObject  SchemaType = "object"
)

type Server

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

func NewServer

func NewServer(querypieAPIKey string, querypieURL string, transport string, port int, opts ...server.ServerOption) *Server

func (*Server) Start

func (s *Server) Start(ctx context.Context, noCache bool, versionStr string) error

type Version

type Version struct {
	Major string
	Minor string
	Patch string
}

func NewVersionFromString added in v0.0.6

func NewVersionFromString(str string) (*Version, error)

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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