python

package
v0.59.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name    string
	Version string
}

Package represents a Python package

type PyProjectTool

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

PyProjectTool handles Python package version checking for pyproject.toml files

func (*PyProjectTool) Definition

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

Definition returns the tool's definition for MCP registration

func (*PyProjectTool) Execute

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

Execute executes the tool's logic

type PythonTool

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

PythonTool handles Python package version checking

func NewPythonTool

func NewPythonTool(client packageversions.HTTPClient) *PythonTool

NewPythonTool creates a new python tool with the given HTTP client

func (*PythonTool) Definition

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

Definition returns the tool's definition for MCP registration

func (*PythonTool) Execute

func (t *PythonTool) 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