Skip to content

Conversation

@sridharavinash
Copy link
Contributor

@sridharavinash sridharavinash commented Apr 13, 2025

New Feature: Fetch GitHub Discussions

  • pkg/github/discussions.go: Added a new tool to fetch discussions from a specific GitHub repository using the GraphQL API. This includes defining structures for Comment and Discussion, and implementing the GetRepositoryDiscussions function.

Server Setup Updates

  • cmd/github-mcp-server/main.go: Updated the server setup to create and use a GraphQL client alongside the REST API client. This includes changes to the runStdioServer function to handle OAuth2 token creation and GraphQL client initialization. [1] [2] [3]

Dependency Modifications

  • go.mod: Added dependencies for githubv4 and oauth2 to support the new GraphQL functionality. [1] [2]

Additional Changes

Open questions

Debating if the client should be an interface rather than passing it in another function to the server .

Locked bool `json:"locked"`
UpvoteCount int `json:"upvoteCount"`
CommentCount int `json:"commentCount"`
Comments []Comment `json:"comments,omitempty"`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really glad we would be able to also have access to the comments

DaleSeo pushed a commit to DaleSeo/github-mcp-server that referenced this pull request Oct 24, 2025
Fix incorrect branch names and remove Shopify MCP server
@dsyme
Copy link

dsyme commented Oct 26, 2025

My understanding is that this is outdated

@dsyme dsyme closed this Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants