Documentation
¶
Index ¶
Constants ¶
View Source
const (
// NpmRegistryURL is the base URL for the npm registry
NpmRegistryURL = "https://registry.npmjs.org"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NpmPackageInfo ¶
type NpmPackageInfo struct {
Name string `json:"name"`
DistTags map[string]string `json:"dist-tags"`
Time map[string]string `json:"time"` // Maps version -> publish timestamp (RFC3339)
Versions map[string]struct {
Version string `json:"version"`
} `json:"versions"`
}
NpmPackageInfo represents information about an npm package
type NpmTool ¶
type NpmTool struct {
// contains filtered or unexported fields
}
NpmTool handles npm package version checking
func NewNpmTool ¶
func NewNpmTool(client packageversions.HTTPClient) *NpmTool
NewNpmTool creates a new npm tool with the given HTTP client
func (*NpmTool) Definition ¶
Definition returns the tool's definition for MCP registration
Click to show internal directories.
Click to hide internal directories.