Skip to content
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

feat: add GitHub releases listing support #561

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ewired
Copy link

@ewired ewired commented Jan 24, 2025

Adds new MCP tool to list releases for a GitHub repository with:

  • Release and asset schemas in types.ts
  • List releases operation implementation
  • Tool registration in index.ts

Description

Server Details

  • Server: github
  • Changes to: tools

Motivation and Context

Add methods to get releases from GitHub and get the latest release, with or without assets list included.

How Has This Been Tested?

I have tested this MCP server with Roo Code.

Breaking Changes

No breaking changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Protocol Documentation
  • My changes follows MCP security best practices
  • I have updated the server's README accordingly
  • I have tested this with an LLM client
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have documented all environment variables and configuration options

Additional context

N/A

Sorry, something went wrong.

Adds new MCP tool to list releases for a GitHub repository with:
- Release and asset schemas in types.ts
- List releases operation implementation
- Tool registration in index.ts
Adds new MCP tool to get only the latest release for a repository:
- GetLatestRelease schema and type
- Latest release operation implementation
- Tool registration in index.ts

This helps reduce context sizes by providing a focused way to get just the latest release data.
Adds optional includeAssets parameter (default: false) to both release tools:
- Modified GitHubReleaseSchema to make assets optional
- Added includeAssets option to ListReleasesOptions and GetLatestReleaseOptions
- Updated functions to strip assets when not requested

This helps further reduce response sizes when asset data isn't needed.
Adds documentation for new GitHub release tools:
- Updated Features section to highlight release management
- Added list_releases and get_latest_release tool documentation
- Included details about optional asset inclusion
@ewired ewired marked this pull request as ready for review January 24, 2025 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant