mcp

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 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 {
	ports.StatelessEngine
}

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

type RenderResponse added in v0.7.10

type RenderResponse struct {
	State    *domain.State          `json:"state,omitempty" jsonschema_description:"The current state of the engine"`
	Actions  []domain.ActionRequest `json:"actions" jsonschema_description:"List of available actions"`
	Terminal bool                   `json:"terminal" jsonschema_description:"Indicates if this is a terminal state"`
}

RenderResponse aligns with the OpenAPI schema and provides a unified structure across adapters.

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