mcp

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	StatesInclude  am.S
	StatesExclude  am.S
	StatesReadonly am.S
	// list of typed args
	Args []am.ArgsApi
	// RPC args parser
	ArgsUnmarshaller amhelp.ArgsUnmarshallerFn
	CallSignatures   []am.CallSignature
	// optional func to call after a mutation
	MutCallback func(ctx context.Context) error
	Version     string
	Name        string
	Desc        string
	StateCalls  []am.CallSignature
}

type Server

type Server struct {
	Mach am.Api
	Mcp  *server.MCPServer
	Http *server.StreamableHTTPServer
	Opts Opts
	// contains filtered or unexported fields
}

func New

func New(mach am.Api, opts Opts) (*Server, error)

func (*Server) StateNames

func (m *Server) StateNames() am.S

Jump to

Keyboard shortcuts

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