vertex

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMCPServer

func CreateMCPServer(app *AppConfig, version string) (*server.MCPServer, error)

func PostSearch

func PostSearch(url, token string, reqBody searchRequest, debug bool) ([]byte, int, error)

func Serve

func Serve(srv *server.MCPServer, opts ServeOptions) error

Types

type AppConfig

type AppConfig struct {
	Config  *Config
	IsDebug bool
}

func LoadAppConfig

func LoadAppConfig(configFlag string, debugFlag bool) (*AppConfig, error)

type Config

type Config struct {
	ProjectId string `yaml:"project_id"`
	Location  string `yaml:"location"`
	AppID     string `yaml:"app_id"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

func (*Config) URL

func (c *Config) URL() string

type ServeOptions

type ServeOptions struct {
	HTTPAddr string
	IsDebug  bool
}

Jump to

Keyboard shortcuts

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