mcp

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Render(ctx context.Context, state *domain.State) ([]domain.ActionRequest, bool, error)
	Navigate(ctx context.Context, state *domain.State, input any) (*domain.State, error)
	Inspect() ([]domain.Node, error)
}

Engine defines the interface required by the MCP server to interact with Trellis.

type Server

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

Server wraps the Trellis Engine and exposes it as an MCP Server.

func NewServer

func NewServer(engine Engine, loader ports.GraphLoader) *Server

NewServer creates a new MCP Server instance.

func (*Server) ServeSSE

func (s *Server) ServeSSE(ctx context.Context, port int) error

ServeSSE starts the server on the given port using SSE.

func (*Server) ServeStdio

func (s *Server) ServeStdio() error

ServeStdio starts the server on Stdin/Stdout.

Jump to

Keyboard shortcuts

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