mcpserver

package
v0.0.7-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeStdio

func ServeStdio(ctx context.Context, root *redant.Command, r io.Reader, w io.Writer) error

Types

type Server

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

func New

func New(root *redant.Command) *Server

func (*Server) ServeStdio

func (s *Server) ServeStdio(ctx context.Context, r io.Reader, w io.Writer) error

type ToolInfo

type ToolInfo struct {
	Name         string         `json:"name"`
	Description  string         `json:"description,omitempty"`
	Path         []string       `json:"path"`
	InputSchema  map[string]any `json:"inputSchema"`
	OutputSchema map[string]any `json:"outputSchema"`
}

func ListToolInfos

func ListToolInfos(root *redant.Command) []ToolInfo

Jump to

Keyboard shortcuts

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