Commit Graph

42 Commits

Author SHA1 Message Date
Ashwin Bhat 6c05b4009a Add tools for one-off PR comments and replying to PR review comments (#143)
* Add add_pull_request_review_comment tool for PR review comments

Adds the ability to add review comments to pull requests with support for line, multi-line, and file-level comments, as well as replying to existing comments.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Add reply_to_pull_request_review_comment tool

Adds a new tool to reply to existing pull request review comments using the GitHub API's comment reply endpoint. This allows for threaded discussions on pull request reviews.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update README with new PR review comment tools

* rebase

* use new getClient function inadd and reply pr review tools

* Unify PR review comment tools into a single consolidated tool

The separate AddPullRequestReviewComment and ReplyToPullRequestReviewComment tools have been merged into a single tool that handles both creating new comments and replying to existing ones. This approach simplifies the API and provides a more consistent interface for users.

- Made commit_id and path optional when using in_reply_to for replies
- Updated the tests to verify both comment and reply functionality
- Removed the separate ReplyToPullRequestReviewComment tool
- Fixed test expectations to match how errors are returned

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update README to reflect the unified PR review comment tool

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Javier Uruen Val <juruen@github.com>
2025-04-12 11:45:10 +02:00
Arya Soni 01aefd3d7a Add ability to view branches for a repo #141 (#205)
* Add ability to view branches for a repo #141

* fix: update ListBranches test to use InputSchema and correct translation helper

* fix: update ListBranches test to use InputSchema and correct translation helper

* fix: update ListBranches test to handle errors in tool result

* fix: replace deprecated github.String with github.Ptr

* docs: add list_branches tool documentation to README
2025-04-11 14:31:29 +02:00
Jake Shorty 919a10c187 Add tool for getting a single commit (includes stats, files) (#216)
* Add tool for getting a commit

* Split mock back out, use RepositoryCommit with Files/Stats
2025-04-11 08:09:19 +02:00
Chiedo John 651a3aaac5 Assume less (#214) 2025-04-10 15:09:38 +02:00
monotykamary 56c1fce434 feat: Add update_pull_request tool (#122)
* feat: add update_pull_request tool

* refactor: address feedback on optionalParamOK helper

* docs: add update_pull_request tool documentation

* refactor: update optionalParamsOK as exported member

* fix: rename to exported function
2025-04-09 08:11:10 +02:00
William Martin 4cf96ab2a2 Indicate Go API stability in README 2025-04-08 11:26:43 +02:00
Alexander Yastrebov 755b816b7c pkg/github: fix use of per page parameter
Page size tool parameter names were changed to `perPage` within #90
while GitHub API uses `per_page` parameter name.

This change fixes overlooked inconsistencies.

Follow up on #90
Follow up on #129
Fixes #136

Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
2025-04-07 16:48:56 +02:00
Ashwin Bhat 31471a4b4f Add line parameter support to create_pull_request_review tool (#118)
* Add line parameter support to create_pull_request_review tool

- Updated schema to make path and body the only required fields
- Added line parameter as alternative to position for inline comments
- Updated handler to accept either position or line based on GitHub API spec
- Added new test case that verifies line parameter works properly
- Updated error messages for better validation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Expand PR review API with multi-line comment support

- Added new parameters: line, side, start_line, start_side
- Added proper validation for multi-line comment parameters
- Improved validation logic to handle parameter combinations
- Added test cases for regular and multi-line comments
- Updated schema documentation for better tool discoverability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* gofmt

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Javier Uruen Val <juruen@github.com>
2025-04-07 16:20:17 +02:00
Matt Metzger c77ea94c02 Add support for retrieving GitHub Issue Comments (#106)
* Add support for retrieving GitHub Issue Comments

Add new tool 'get_issue_comments' that allows fetching comments associated
with GitHub issues. This complements the existing issue retrieval functionality
and follows the same patterns as the pull request comments implementation.

The implementation includes:
- New getIssueComments function in pkg/github/issues.go
- Tool registration in server.go
- Comprehensive test coverage in issues_test.go

* Support pagination for get_issue_comments

---------

Co-authored-by: Javier Uruen Val <juruen@github.com>
2025-04-07 16:11:00 +02:00
Chiedo John 1a6e33ea0c Make pre-requisites more scannable (#107) 2025-04-04 14:52:16 -06:00
Harald Kirschner 92303d4bcd Fix VS Code inputs link (#103) 2025-04-04 11:20:29 -06:00
Harald Kirschner b89336793c VS Code install steps
Unit Tests / build (ubuntu-latest) (push) Has been cancelled
Unit Tests / build (windows-latest) (push) Has been cancelled
GoReleaser Release / release (push) Has been cancelled
License Check / license-check (push) Has been cancelled
Unit Tests / build (macos-latest) (push) Has been cancelled
Docker / build (push) Has been cancelled
Lint / lint (push) Has been cancelled
2025-04-04 17:33:07 +02:00
William Martin 6f7458ae3c Conform list tools
License Check / license-check (push) Has been cancelled
Docker / build (push) Has been cancelled
Unit Tests / build (macos-latest) (push) Has been cancelled
Unit Tests / build (ubuntu-latest) (push) Has been cancelled
Unit Tests / build (windows-latest) (push) Has been cancelled
GoReleaser Release / release (push) Has been cancelled
Lint / lint (push) Has been cancelled
2025-04-04 15:51:50 +02:00
William Martin 07f6d11cff Remove non-existent README property (#99) 2025-04-04 15:01:17 +02:00
William Martin d01e705332 Use arrays rather than comma separated lists 2025-04-03 23:10:00 +02:00
Sam Morrow bb56733104 chore: document latest tag rather than main (#77) 2025-04-03 16:20:08 +02:00
Toby Padilla 80ccf1bf0b docs: add license section to readme (#65)
* docs: add license section to readme

* docs: update vs code install badge
2025-04-02 00:11:36 +02:00
Javier Uruen Val 5f3926d535 add support for create_pull_request (#63)
Co-authored-by: Toby Padilla <toby@toby.sh>
2025-04-01 15:48:39 -06:00
Toby Padilla 671f8240d1 docs: update README (#58) 2025-04-01 13:09:36 -06:00
William Martin 6c0cb4646c Update VS Code config JSON (#45) 2025-03-28 21:51:13 +01:00
Javier Uruen Val 4f7077a253 Update README.md 2025-03-27 10:32:12 +01:00
Javier Uruen Val 09c9799c1e move setup instructions to the top 2025-03-27 10:31:36 +01:00
Javier Uruen Val 33dc0e00e2 update install instructions 2025-03-27 10:31:36 +01:00
Sam Morrow 647a5e587e Update README.md 2025-03-24 17:49:10 +01:00
Sam Morrow b320e51053 clean up and add readme 2025-03-24 17:49:10 +01:00
Javier Uruen Val a26315fa15 add support for the push_files tool 2025-03-24 14:14:50 +01:00
Javier Uruen Val 7c772d2612 add support for the create_pull_request_review_tool (#33) 2025-03-24 13:50:49 +01:00
Javier Uruen Val faa236676f add support for the update_issue tool 2025-03-24 13:25:27 +01:00
Connor Peet 14fb02b2a2 Simplify vscode MCP setup with input (#19)
note: realized this doesn't actually work (https://github.com/microsoft/vscode/issues/243875) but I will fix that today and wait to merge until then
2025-03-20 14:13:30 -07:00
Sam Morrow dd46f8a837 add a framework for translations 2025-03-20 18:33:30 +01:00
Javier Uruen Val b3b3e02afd add support for list_issues (#26)
* add create_issue tool

* add support for list_issues
2025-03-20 18:20:34 +01:00
Javier Uruen Val 26e3c6c1ec add create_issue tool (#18) 2025-03-20 18:17:10 +01:00
Sam Morrow 72e5f40ae2 Update README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-03-18 18:47:22 +01:00
Sam Morrow 76a26f0e82 update readme 2025-03-18 18:47:22 +01:00
Javier Uruen Val d533b16638 Update README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-03-18 09:42:10 +01:00
Javier Uruen Val 4561355a65 add instructions on how to test the server with VS Code 2025-03-18 09:39:40 +01:00
Sam Morrow 81cc812e49 feat: add basic code scanning methods 2025-03-14 17:45:50 +01:00
Sam Morrow 6dfb70dc83 first commit 2025-03-13 14:12:42 +01:00
Javier Uruen Val 5c86a0636a Update README.md 2025-03-10 13:53:37 +01:00
Javier Uruen Val ab84906e20 Update README.md 2025-03-10 13:53:10 +01:00
Javier Uruen Val 22e58fb058 update doc 2025-03-10 09:54:01 +01:00
Javier Uruen Val 901b16a207 initial commit 2025-03-10 08:47:39 +01:00