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) ServeStdio ¶
ServeStdio starts the server on Stdin/Stdout.
Click to show internal directories.
Click to hide internal directories.