mcp

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMethodNotFound = errors.New("mcp: method not found")

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(gateway *RPCGateway, roleScoper appmcp.RoleScoper) *Handler

func (*Handler) Handle

func (h *Handler) Handle(c *fiber.Ctx) error

func (*Handler) MethodNotAllowed

func (h *Handler) MethodNotAllowed(c *fiber.Ctx) error

type InvalidParamsError

type InvalidParamsError struct {
	Reason string
}

func (*InvalidParamsError) Error

func (e *InvalidParamsError) Error() string

type RPCGateway

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

func NewRPCGateway

func NewRPCGateway(composer appmcp.Composer) *RPCGateway

func (*RPCGateway) Dispatch

func (g *RPCGateway) Dispatch(ctx context.Context, rc *appconsumer.RoutableConsumer, method string, params json.RawMessage) (any, error)

Jump to

Keyboard shortcuts

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