mcpserver

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 30 Imported by: 0 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 (
	DefaultHTTPAddr = "127.0.0.1:8743"
	DefaultHTTPPath = "/mcp"
)

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, cfg config.Config, in io.Reader, out io.Writer) error

func ServeHTTP

func ServeHTTP(ctx context.Context, cfg config.Config, opts HTTPOptions) error

Types

type HTTPOptions

type HTTPOptions struct {
	Addr           string
	Path           string
	AllowedOrigins []string
	MaxBodyBytes   int64
}

type ResearchPack

type ResearchPack = brainresearch.Pack

type ResearchPackOptions

type ResearchPackOptions = brainresearch.Options

type Server

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

func New

func New(cfg config.Config, st *store.Store) *Server

func (*Server) BuildResearchPack

func (s *Server) BuildResearchPack(ctx context.Context, opts ResearchPackOptions) (ResearchPack, error)

func (*Server) HTTPHandler

func (s *Server) HTTPHandler(opts HTTPOptions) http.Handler

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, in io.Reader, out io.Writer) error

Jump to

Keyboard shortcuts

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