dev

package
v0.0.0-...-cd9b27b Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDevToolsLoader

func NewDevToolsLoader() common.ToolLoader

NewDevToolsLoader creates a new instance of DevToolsLoader

Types

type CommandExecutorTool

type CommandExecutorTool struct {
	common.BuiltInTool
}

CommandExecutorTool implements the Tool interface for executing commands and scripts

func (CommandExecutorTool) Annotations

func (t CommandExecutorTool) Annotations() mcp.ToolAnnotation

func (CommandExecutorTool) Call

func (t CommandExecutorTool) Call(ctx context.Context, input string) (string, error)

func (CommandExecutorTool) Description

func (t CommandExecutorTool) Description() string

func (CommandExecutorTool) Name

func (t CommandExecutorTool) Name() string

type CommandRequest

type CommandRequest struct {
	Command string   `json:"command"`
	Args    []string `json:"args,omitempty"`
}

type CommandResponse

type CommandResponse struct {
	Command     string `json:"command"`
	FullCommand string `json:"fullCommand"`
	ExitCode    int    `json:"exitCode"`
	Success     bool   `json:"success"`
	Stdout      string `json:"stdout,omitempty"`
	Stderr      string `json:"stderr,omitempty"`
}

type DevToolsLoader

type DevToolsLoader struct{}

DevToolLoader loads development-related tools

func (*DevToolsLoader) LoadTools

func (l *DevToolsLoader) LoadTools(ctx context.Context) ([]common.AnnotatedTool, error)

LoadTools loads and returns all development-related tools

Jump to

Keyboard shortcuts

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