Commit Graph

23 Commits

Author SHA1 Message Date
John-Mason P. Shackelford
32f49f4487 feat(github): Add missing pull request operations to MCP server
Add support for all pull request operations documented in README.md that were
previously missing from the MCP server implementation. This includes:

- get_pull_request: Get details of a specific pull request
- list_pull_requests: List and filter repository pull requests
- create_pull_request_review: Create a review on a pull request
- merge_pull_request: Merge a pull request
- get_pull_request_files: Get the list of files changed in a pull request
- get_pull_request_status: Get the combined status of all status checks
- update_pull_request_branch: Update a PR branch with latest base branch changes
- get_pull_request_comments: Get the review comments on a pull request
- get_pull_request_reviews: Get the reviews on a pull request
2025-03-03 17:03:20 -05:00
Tim Rogers
df63442c3c Include meaningful User-Agent header in requests to the GitHub UI
This adds a custom `User-Agent` header to requests from the
GitHub server to the GitHub API, identifying the application,
the version and key information about the environment.

This aligns with the [recommendations][1] in the GitHub Docs.

As part of this change, I have also moved the current version of
the server into a constant, and fix the initialization of `Server`
to use that version, taking from `package.json`.

[1]: https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api?apiVersion=2022-11-28#user-agent
2025-02-02 15:04:59 +00:00
Justin Spahr-Summers
fe014d2136 Fix old toolResult usage in GitHub server 2025-01-22 11:13:29 +00:00
Peter M. Elias
272e26935b feat: add GitHub error handling to MCP server
- Import GitHubError types
- Add error formatting utility
- Update error handling in request handler
2025-01-13 11:53:22 -08:00
Peter M. Elias
e921c2725c fix: restore proper runServer function closure 2025-01-13 11:53:22 -08:00
Peter M. Elias
b8b7c1b784 refactor: update pull request handler to use new parameter style 2025-01-13 11:53:22 -08:00
Peter M. Elias
83909ddf95 Refactor index.ts to use modular operation files 2025-01-13 11:53:22 -08:00
Peter M Elias
f4122ff231 more fixes 2025-01-13 11:53:22 -08:00
Aschent89
6d7a8f2267 feat: add get_issue endpoint to retrieve single issue details
Adds functionality to fetch details of a specific GitHub issue by number.
This includes:
- New GetIssueSchema for input validation
- Implementation of getIssue function using GitHub API
- Addition of get_issue tool to available tools list
- Handler for get_issue in CallToolRequestSchema

This allows users to retrieve complete issue information including:
- Issue metadata (title, body, state)
- Associated data (labels, assignees, milestone)
- Timestamps (created, updated, closed)
2024-12-06 14:03:12 -05:00
Justin Spahr-Summers
54d6b58901 Merge branch 'main' into pr/224 2024-12-05 23:27:30 +00:00
Justin Spahr-Summers
d300fec66a Merge branch 'main' into pr/119 2024-12-05 23:05:57 +00:00
Raduan77
7d51320f42 merge w/ upstream 2024-12-05 11:20:54 +01:00
Himanshu Ladia
c31f00f54f fix contract 2024-12-04 17:29:56 +05:30
Himanshu Ladia
44f68efbdc add capability to list commits of a branch 2024-12-04 14:58:47 +05:30
Jerad Bitner
506eabab39 fix: update listIssues and updateIssue function signatures 2024-12-03 13:21:00 -08:00
Justin Spahr-Summers
f8158a69be Merge branch 'main' into feat__github-issue-tools 2024-12-03 07:20:25 -06:00
David Soria Parra
788098220e servers: make tool call result spec compatible 2024-12-03 13:00:22 +00:00
Jerad Bitner
08015830a6 feat: add issue management functionalities for github
- Implemented `listIssues`, `updateIssue`, and `addIssueComment` functions to manage GitHub issues.
- Introduced corresponding schemas: `ListIssuesOptionsSchema`, `UpdateIssueOptionsSchema`, and `IssueCommentSchema`.
- Updated server request handlers to support new functionalities.
- Enhanced README with documentation for new features.
2024-11-28 13:59:37 -08:00
Raduan77
4ac78a996c code for search in github 2024-11-28 09:51:03 +01:00
Mahesh Murag
859c7b8520 Updated Github to Zod 2024-11-21 00:18:09 -05:00
Mahesh Murag
1a45f95a7c Updated Github 2024-11-20 23:54:39 -05:00
Elie Schoppik
1b33f678da cleanup 2024-11-20 15:17:15 -05:00
Elie Schoppik
9be6268005 init on github 2024-11-20 13:08:06 -05:00