- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.9k
feat: Add GitHub Packages toolset #1209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Open
      
      
            MayorFaj
  wants to merge
  7
  commits into
  github:main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
MayorFaj:feature/github-packages-support
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
      
        
          +2,121
        
        
          −0
        
        
          
        
      
    
  
  
     Open
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            7 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      bba8eda
              
                Add GitHub Packages tools and tests
              
              
                MayorFaj e58383b
              
                Add GitHub Packages tools and documentation to README and remote-server
              
              
                MayorFaj d710697
              
                Merge branch 'main' into feature/github-packages-support
              
              
                MayorFaj 855b07e
              
                Merge branch 'main' into feature/github-packages-support
              
              
                MayorFaj bafac9e
              
                Merge branch 'main' into feature/github-packages-support
              
              
                MayorFaj 4004d2a
              
                Merge branch 'main' into feature/github-packages-support
              
              
                MayorFaj d29f8c9
              
                Merge branch 'main' into feature/github-packages-support
              
              
                MayorFaj File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Delete organization package", | ||
| "readOnlyHint": false | ||
| }, | ||
| "description": "Delete an entire package from a GitHub organization. This will delete all versions of the package. Requires delete:packages scope.", | ||
| "inputSchema": { | ||
| "properties": { | ||
| "org": { | ||
| "description": "Organization name", | ||
| "type": "string" | ||
| }, | ||
| "package_name": { | ||
| "description": "Package name", | ||
| "type": "string" | ||
| }, | ||
| "package_type": { | ||
| "description": "Package type", | ||
| "enum": [ | ||
| "npm", | ||
| "maven", | ||
| "rubygems", | ||
| "docker", | ||
| "nuget", | ||
| "container" | ||
| ], | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "org", | ||
| "package_type", | ||
| "package_name" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "name": "delete_org_package" | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Delete organization package version", | ||
| "readOnlyHint": false | ||
| }, | ||
| "description": "Delete a specific version of a package from a GitHub organization. Requires delete:packages scope.", | ||
| "inputSchema": { | ||
| "properties": { | ||
| "org": { | ||
| "description": "Organization name", | ||
| "type": "string" | ||
| }, | ||
| "package_name": { | ||
| "description": "Package name", | ||
| "type": "string" | ||
| }, | ||
| "package_type": { | ||
| "description": "Package type", | ||
| "enum": [ | ||
| "npm", | ||
| "maven", | ||
| "rubygems", | ||
| "docker", | ||
| "nuget", | ||
| "container" | ||
| ], | ||
| "type": "string" | ||
| }, | ||
| "package_version_id": { | ||
| "description": "Package version ID", | ||
| "type": "number" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "org", | ||
| "package_type", | ||
| "package_name", | ||
| "package_version_id" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "name": "delete_org_package_version" | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Delete user package", | ||
| "readOnlyHint": false | ||
| }, | ||
| "description": "Delete an entire package from the authenticated user's account. This will delete all versions of the package. Requires delete:packages scope.", | ||
| "inputSchema": { | ||
| "properties": { | ||
| "package_name": { | ||
| "description": "Package name", | ||
| "type": "string" | ||
| }, | ||
| "package_type": { | ||
| "description": "Package type", | ||
| "enum": [ | ||
| "npm", | ||
| "maven", | ||
| "rubygems", | ||
| "docker", | ||
| "nuget", | ||
| "container" | ||
| ], | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "package_type", | ||
| "package_name" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "name": "delete_user_package" | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Delete user package version", | ||
| "readOnlyHint": false | ||
| }, | ||
| "description": "Delete a specific version of a package from the authenticated user's account. Requires delete:packages scope.", | ||
| "inputSchema": { | ||
| "properties": { | ||
| "package_name": { | ||
| "description": "Package name", | ||
| "type": "string" | ||
| }, | ||
| "package_type": { | ||
| "description": "Package type", | ||
| "enum": [ | ||
| "npm", | ||
| "maven", | ||
| "rubygems", | ||
| "docker", | ||
| "nuget", | ||
| "container" | ||
| ], | ||
| "type": "string" | ||
| }, | ||
| "package_version_id": { | ||
| "description": "Package version ID", | ||
| "type": "number" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "package_type", | ||
| "package_name", | ||
| "package_version_id" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "name": "delete_user_package_version" | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Get organization package details", | ||
| "readOnlyHint": true | ||
| }, | ||
| "description": "Get details of a specific package for an organization.", | ||
| "inputSchema": { | ||
| "properties": { | ||
| "org": { | ||
| "description": "Organization name", | ||
| "type": "string" | ||
| }, | ||
| "package_name": { | ||
| "description": "Package name", | ||
| "type": "string" | ||
| }, | ||
| "package_type": { | ||
| "description": "Package type", | ||
| "enum": [ | ||
| "npm", | ||
| "maven", | ||
| "rubygems", | ||
| "docker", | ||
| "nuget", | ||
| "container" | ||
| ], | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "org", | ||
| "package_type", | ||
| "package_name" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "name": "get_org_package" | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Get package version details", | ||
| "readOnlyHint": true | ||
| }, | ||
| "description": "Get details of a specific package version, including metadata.", | ||
| "inputSchema": { | ||
| "properties": { | ||
| "org": { | ||
| "description": "Organization name", | ||
| "type": "string" | ||
| }, | ||
| "package_name": { | ||
| "description": "Package name", | ||
| "type": "string" | ||
| }, | ||
| "package_type": { | ||
| "description": "Package type", | ||
| "enum": [ | ||
| "npm", | ||
| "maven", | ||
| "rubygems", | ||
| "docker", | ||
| "nuget", | ||
| "container" | ||
| ], | ||
| "type": "string" | ||
| }, | ||
| "package_version_id": { | ||
| "description": "Package version ID", | ||
| "type": "number" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "org", | ||
| "package_type", | ||
| "package_name", | ||
| "package_version_id" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "name": "get_package_version" | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "List organization packages", | ||
| "readOnlyHint": true | ||
| }, | ||
| "description": "List packages for a GitHub organization. Returns package metadata including name, type, visibility, and version count.", | ||
| "inputSchema": { | ||
| "properties": { | ||
| "org": { | ||
| "description": "Organization name", | ||
| "type": "string" | ||
| }, | ||
| "package_type": { | ||
| "description": "Filter by package type", | ||
| "enum": [ | ||
| "npm", | ||
| "maven", | ||
| "rubygems", | ||
| "docker", | ||
| "nuget", | ||
| "container" | ||
| ], | ||
| "type": "string" | ||
| }, | ||
| "page": { | ||
| "description": "Page number for pagination (min 1)", | ||
| "minimum": 1, | ||
| "type": "number" | ||
| }, | ||
| "perPage": { | ||
| "description": "Results per page for pagination (min 1, max 100)", | ||
| "maximum": 100, | ||
| "minimum": 1, | ||
| "type": "number" | ||
| }, | ||
| "visibility": { | ||
| "description": "Filter by package visibility", | ||
| "enum": [ | ||
| "public", | ||
| "private", | ||
| "internal" | ||
| ], | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "org" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "name": "list_org_packages" | ||
| } | 
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkg/github/toolsnaps/delete_org_package.snap