api

package
v0.1.0-rc4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

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

LoadConfig reads and parses the config file at a path and returns the parsed config along with the resolved project root (the dir containing the file)

func Serve

func Serve(ctx context.Context, cfg *config.Config, opts ServeOptions) error

Serve builds the tool engine from cfg and opts.Root and runs the MCP server on the requested transport. It blocks until ctx is cancelled.

Types

type ServeOptions

type ServeOptions struct {
	// Root is the directory the server is rooted in.
	Root string
	// Transport enum(stdio|http) controlls the server transport mode, defaults to stdio.
	Transport string
	// Addr is the listening address for the HTTP transport.
	Addr string
}

ServeOptions controls server behaviour.

Jump to

Keyboard shortcuts

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