Documentation
¶
Overview ¶
Package mcpserver exposes bcli project generation through MCP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandRequest ¶
CommandRequest describes an external command invocation.
type CommandResult ¶
CommandResult describes an external command result.
type Config ¶
type Config struct {
BCLICommand string `yaml:"bcli_command"`
Timeout time.Duration `yaml:"timeout"`
LogLevel zerolog.Level `yaml:"log_level"`
}
Config defines runtime settings for the bcli MCP server.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the default MCP server config.
type ExecRunner ¶
type ExecRunner struct{}
ExecRunner runs commands with os/exec.
func (ExecRunner) Run ¶
func (ExecRunner) Run(ctx context.Context, request CommandRequest) (CommandResult, error)
Run executes an external command and captures stdout and stderr.
type Runner ¶
type Runner interface {
Run(ctx context.Context, request CommandRequest) (CommandResult, error)
}
Runner runs external commands for MCP tool handlers.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wraps the MCP server and bcli execution settings.
func (*Server) CreateGoCLIProject ¶
func (s *Server) CreateGoCLIProject( ctx context.Context, input createProjectInput, ) (createProjectOutput, error)
CreateGoCLIProject runs bcli create and returns parsed JSON output.
Click to show internal directories.
Click to hide internal directories.