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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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