Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutor ¶
type FlowCLIExecutor ¶
type FlowCLIExecutor struct{}
FlowCLIExecutor runs the flow CLI with provided arguments. The CLI is being executed instead of importing the internal flow package directly to avoid duplicating the code that's defined in the cmd package, to make testing easier, and to avoid having to refactor the Context obj which is not currently designed in a way to be copied/reused across "executions". Maybe consider refactoring this when the context is refactored.
The binary name can be overridden by setting the FLOW_CLI_BINARY environment variable.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(executor CommandExecutor) *Server
func (*Server) GetMCPServer ¶
GetMCPServer returns the underlying MCP server for testing purposes
Click to show internal directories.
Click to hide internal directories.