mcp

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutor

type CommandExecutor interface {
	Execute(args ...string) (string, error)
}

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.

func (*FlowCLIExecutor) Execute

func (c *FlowCLIExecutor) Execute(args ...string) (string, error)

type Server

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

func NewServer

func NewServer(executor CommandExecutor) *Server

func (*Server) GetMCPServer

func (s *Server) GetMCPServer() *server.MCPServer

GetMCPServer returns the underlying MCP server for testing purposes

func (*Server) Run

func (s *Server) Run() error

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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