go_tool

package
v0.59.13 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoTool

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

GoTool handles Go package version checking

func NewGoTool

func NewGoTool(client packageversions.HTTPClient) *GoTool

NewGoTool creates a new go tool with the given HTTP client

func (*GoTool) Definition

func (t *GoTool) Definition() mcp.Tool

Definition returns the tool's definition for MCP registration

func (*GoTool) Execute

func (t *GoTool) Execute(ctx context.Context, logger *logrus.Logger, cache *sync.Map, args map[string]any) (*mcp.CallToolResult, error)

Execute executes the tool's logic

Jump to

Keyboard shortcuts

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