git-packages
Manage Git packages across npm, Maven, and container formats. Perform list, create, update, delete, publish, and download operations for package files in your projects with GitHub and Gitea providers.
Instructions
Git package management tool for package operations. Supports list, get, create, update, delete, publish, and download operations. Local operations work with package files, remote operations require a provider.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | The package operation to perform | |
description | No | Package description (for create/update) | |
downloadPath | No | Path to save downloaded package (for download) | |
force | No | Force operation (for delete, update) | |
format | No | Package format for download (for download) | |
includeVersions | No | Include version history (for list, get) | |
limit | No | Maximum number of packages to return (for list) | |
owner | No | Repository owner (for remote operations) | |
packageData | No | Package content/metadata (for create/update/publish) | |
packageName | No | Name of the package file (e.g., "package.json", "pom.xml") - NOT the package name from inside the file (required for most operations) | |
packageType | No | Type of package (npm, maven, container, etc.) | |
projectPath | Yes | Absolute path to the project directory | |
provider | No | Provider for remote operations (required for create, update, delete, publish, download) | |
query | No | Search query for packages (for list) | |
registry | No | Target registry for publishing (for publish) | |
repo | No | Repository name (for remote operations) | |
tags | No | Package tags (for create/update) | |
version | No | Package version (for get, create, update, delete, publish, download) | |
visibility | No | Package visibility (for create/update) |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "The package operation to perform",
"enum": [
"list",
"get",
"create",
"update",
"delete",
"publish",
"download"
],
"type": "string"
},
"description": {
"description": "Package description (for create/update)",
"type": "string"
},
"downloadPath": {
"description": "Path to save downloaded package (for download)",
"type": "string"
},
"force": {
"description": "Force operation (for delete, update)",
"type": "boolean"
},
"format": {
"description": "Package format for download (for download)",
"type": "string"
},
"includeVersions": {
"description": "Include version history (for list, get)",
"type": "boolean"
},
"limit": {
"description": "Maximum number of packages to return (for list)",
"type": "number"
},
"owner": {
"description": "Repository owner (for remote operations)",
"type": "string"
},
"packageData": {
"description": "Package content/metadata (for create/update/publish)",
"type": "object"
},
"packageName": {
"description": "Name of the package file (e.g., \"package.json\", \"pom.xml\") - NOT the package name from inside the file (required for most operations)",
"type": "string"
},
"packageType": {
"description": "Type of package (npm, maven, container, etc.)",
"type": "string"
},
"projectPath": {
"description": "Absolute path to the project directory",
"type": "string"
},
"provider": {
"description": "Provider for remote operations (required for create, update, delete, publish, download)",
"enum": [
"github",
"gitea",
"both"
],
"type": "string"
},
"query": {
"description": "Search query for packages (for list)",
"type": "string"
},
"registry": {
"description": "Target registry for publishing (for publish)",
"type": "string"
},
"repo": {
"description": "Repository name (for remote operations)",
"type": "string"
},
"tags": {
"description": "Package tags (for create/update)",
"items": {
"type": "string"
},
"type": "array"
},
"version": {
"description": "Package version (for get, create, update, delete, publish, download)",
"type": "string"
},
"visibility": {
"description": "Package visibility (for create/update)",
"enum": [
"public",
"private",
"internal"
],
"type": "string"
}
},
"required": [
"action",
"projectPath"
],
"type": "object"
}