Commit Graph

146 Commits

Author SHA1 Message Date
Avinash Sridhar e014779374 feat: enhance GetRepositoryDiscussions to include comments and comment count
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (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
License Check / license-check (push) Has been cancelled
Lint / lint (push) Has been cancelled
2025-04-13 18:36:57 -04:00
Avinash Sridhar 28729c8055 fix typo 2025-04-13 17:27:25 -04:00
Avinash Sridhar dcc6da5afd feat: implement get_repository_discussions tool with GraphQL support 2025-04-13 10:37:37 -04:00
Simon Danielsson bbba3bb7b0 feat: pretty-print JSONL text responses in mcpcurl (#239)
* Pretty-print jsonl text responses

* Remove else in favour of continue

---------

Co-authored-by: danielssonsimon <danielsson.simon@bcg.com>
2025-04-12 15:08:14 +02:00
Sam Morrow 9dacf70b6e chore: extend user agent 2025-04-12 12:24:20 +02:00
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
Hirofumi Omi 8343fa5900 chore:update CONTRIBUTING.md style guide link (#234) 2025-04-12 08:15:38 +02:00
Jake Shorty 865f9bf4d7 Prefer already-defined endpoint mock (#226) 2025-04-11 12:25:40 -06: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
Adam Holt 3c18a342c9 Allow passing through server options (#218)
* Allow passing through server options

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-11 10:52:05 +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
Eng Zer Jun 7145142dc6 docs: fix CODEOWNERS syntax (#184)
Currently PRs are not being automatically requested for review because the CODEOWNERS file is missing a `*`.

Co-authored-by: Javier Uruen Val <juruen@github.com>
2025-04-10 13:15:55 +02:00
Sam Morrow 3ec8699deb chore: groundwork for multi-user to server 2025-04-10 01:59:03 +02:00
Andrew Georgiou 86fbc8504f Fix handling nil values for optional string array parameters, (#194)
* Fix handling nil values for optional string array parameters,

nil values should be equivalent to an empty string, currently we return an error but Claude passes nil for optional values.

* lint fixes
2025-04-09 18:25:59 +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
Ariel Deitcher 936b24c4c3 remove pretty print json flag (#179) 2025-04-08 08:19:42 -07:00
William Martin 4cf96ab2a2 Indicate Go API stability in README 2025-04-08 11:26:43 +02:00
Shunsuke Suzuki 923e1b065d Generate GitHub Artifact Attestations
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (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
License Check / license-check (push) Has been cancelled
Lint / lint (push) Has been cancelled
v0.1.1-release-validation
2025-04-08 10:06:35 +02:00
Sam Morrow 3f62483c77 Update .github/workflows/docker-publish.yml 2025-04-08 09:58:23 +02:00
Sam Morrow 35567c3f97 Update .github/workflows/docker-publish.yml 2025-04-08 09:58:23 +02:00
MayorFaj 6b059c78f1 fix: update Docker publish workflow to correctly handle version tagging 2025-04-08 09:58:23 +02:00
MayorFaj 778b84069d fix: enhance Docker publish workflow with additional tagging options 2025-04-08 09:58:23 +02:00
Sam Morrow 519ed9ebc7 chore: export remaining search + helpers 2025-04-08 09:43:52 +02:00
Sam Morrow 3dae8ab029 chore: export search funcs 2025-04-08 09:39:48 +02:00
Sam Morrow c1bdd6a0f0 chore: export repository funcs 2025-04-08 09:34:08 +02:00
Sam Morrow c85dd07e5e chore: export pr funcs 2025-04-08 09:33:37 +02:00
Sam Morrow f4770fa8a2 chore: export issues funcs 2025-04-08 09:32:36 +02:00
Sam Morrow 9a5fe115d8 chore: export code scanning funcs 2025-04-08 09:25:58 +02:00
Yuki Ito 973fb5d5c8 chore: Remove unnecessary trailing periods from descriptions (#170) 2025-04-08 07:23:11 +02:00
Sangmin Lee 9a40fd8e62 fix: correct spelling of 'license' 2025-04-08 01:19:02 +02:00
Sam Morrow 7ab5d968e0 chore: pass version through to server
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
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
Docker / build (push) Has been cancelled
Unit Tests / build (macos-latest) (push) Has been cancelled
Lint / lint (push) Has been cancelled
v0.1.1
2025-04-07 17:56:44 +02:00
Javier Uruen Val 8a9f0b0666 add script to pretty print server log (#146) 2025-04-07 17:32:29 +02:00
Viktor Szépe ff1f16e829 Fix a typos in repository_resource.go 2025-04-07 17:00:33 +02:00
Dmytro Shteflyuk ff896d0f33 Removed duplicated createIssue tool definition 2025-04-07 16:54:40 +02:00
William Martin 0f9ef6e708 Add pagination helper 2025-04-07 16:48:56 +02:00
William Martin a72070069f Test issue search query params 2025-04-07 16:48:56 +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
Ohki Nozomu e4c2f58ddc Use github.Ptr instead of smithy-go/ptr (#147)
Co-authored-by: Javier Uruen Val <juruen@github.com>
2025-04-07 16:29:30 +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
Sam Morrow e6b73f7d5a chore: add code scanning advanced setup yml 2025-04-07 15:23:54 +02:00
Javier Uruen Val 6b02799482 fix issue with pagination in search_repositories (#129) 2025-04-05 20:05:35 +02:00
Ariel Deitcher 270bbf7ad4 pretty print json (#114) 2025-04-04 17:59:15 -07:00
Ariel Deitcher 86b0dcdd44 feature request template (#115) 2025-04-04 17:45:14 -07:00
Jeffrey Luszcz 6716423a15 Update CONTRIBUTING.md to fix link to LICENSE file (#109)
The template pointed to LICENSE.md but this repo is using LICENSE

updated link to point to mcp's license file
2025-04-04 16:25:02 -06:00
Chiedo John 1a6e33ea0c Make pre-requisites more scannable (#107) 2025-04-04 14:52:16 -06:00
Ariel Deitcher 17e4bd414e add vscode launch configuration (#104) 2025-04-04 11:40:01 -07: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
v0.1.0
2025-04-04 17:33:07 +02:00