Jonathan
6f5040734a
Updates github-mcp-server to go-github/v76 ( #1289 )
...
* updates github-mcp-server to go-github/v76
* updates license files
* refactors ListProjects to make use of
google/go-github ProjectsService
* refactors GetProject to make use of google/go-github ProjectsService
* declaring commit without a pointer
* cleanup additional commit pointer
---------
Co-authored-by: Tommaso Moro <37270480+tommaso-moro@users.noreply.github.com >
2025-10-27 13:53:53 +01:00
Roberto Nacu
16b43c9d44
Add sort and order parameters to search_repositories tool ( #1191 )
...
* add sort and order params
* test adding server instructions for sorting
* improve server instructions
* reorder
2025-10-09 10:11:12 +01:00
Matt Holloway
358a415081
Add minimal response to CRUD tools, repositories and search toolsets ( #988 )
...
* add comprehensive minimal response where appropriate
* remove unneeded comments
* remove incorrect diff param
* update docs
* rm comment
* Update pkg/github/repositories.go
Co-authored-by: Lulu <59149422+LuluBeatson@users.noreply.github.com >
* update toolsnaps and docs
* change minimal_output to use new OptionalBoolParamWithDefault
* Update pkg/github/repositories.go
Co-authored-by: Lulu <59149422+LuluBeatson@users.noreply.github.com >
* refactor minimal conversion funcs to minimal_types.go
* consolidate response structs and remove unneeded message field
* consolidate response further
* remove CloneURL field
* Update pkg/github/repositories.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update pkg/github/server.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix undefined
* change incorrect comment
* remove old err var declaration
* Update pkg/github/repositories.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix syntax issue
* update toolsnaps
---------
Co-authored-by: Lulu <59149422+LuluBeatson@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-09-01 18:13:36 +01:00
Gökhan Arkan
d52c1d4ece
Fix duplicate filter issues across all search tools ( #828 )
...
* Enhance search functionality with new query filters and utility functions
- Added multiple test cases for searching issues with various query filters in `issues_test.go`.
- Introduced utility functions in `search_utils.go` to check for specific filters and extract repository information from queries.
- Created comprehensive tests in `search_utils_test.go` to validate the new filtering logic and ensure accurate query parsing.
* Refactor repository filter extraction in search utilities
- Renamed `extractRepoFilter` to `hasRepoFilter` to simplify the function's purpose.
- Updated test cases in `search_utils_test.go` to reflect the new function name and logic.
- Adjusted tests to focus on the presence of the `repo:` filter rather than extracting owner and repo details.
* Enhance search functionality with additional query filters and utility functions
- Added new test cases for searching pull requests and users with various query filters in `pullrequests_test.go` and `search_test.go`.
- Implemented a utility function `hasTypeFilter` in `search_utils.go` to check for the presence of `type:` filters in queries.
- Updated the search handler to conditionally prepend the `type:` filter based on the presence of existing filters, improving query handling.
* Updated both regex patterns to handle this edge case
2025-08-13 10:15:22 +01:00
Tommaso Moro
521d5e9258
Bump go-github to v74 ( #826 )
...
* update all imports to use v74
* go mod tidy
* update third party licenses
* rename
* autogen licenses
2025-08-06 22:11:50 +01:00
JoannaaKL
4b64121b97
Updated descriptions for search tools ( #737 )
...
* Updated description for search_code
* Update toolsnaps and docs
2025-07-30 13:37:24 +02:00
JoannaaKL
efef8ae27a
Changed q to query in search ( #740 )
Build and Test Go Project / build (macos-latest) (push) Has been cancelled
Build and Test Go Project / build (ubuntu-latest) (push) Has been cancelled
Build and Test Go Project / build (windows-latest) (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
GoReleaser Release / release (push) Has been cancelled
Docker / build (push) Has been cancelled
2025-07-24 12:35:35 +02:00
Matt Holloway
7ccc6b6493
Add pagination support to GraphQL-based tools ( #683 )
...
* initial pagination for `ListDiscussions`
* redo category id var cast
* add GraphQL pagination support for discussion comments and categories
* remove pageinfo returns
* fix out ref for linter
* update docs
* move to unified pagination for consensus on params
* update docs
* refactor pagination handling
* update docs
* linter fix
* conv rest to gql params for safe lint
* add nolint
* add error handling for perPage value in ToGraphQLParams
* refactor pagination error handling
* unified params for rest andn graphql and rennamed to be uniform for golang
* add 'after' for pagination
* update docs
* Update pkg/github/discussions.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update pkg/github/discussions.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update pkg/github/discussions_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* update default page size const
* reduce default pagination size from 100 to 30 in discussion tests
* update pagination for reverse and total
* update pagination to remove from discussions
* updated README
* improve the `ToGraphQLParams` function
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-21 16:31:29 +01:00
Martin Høst Normark
be91795fd3
Bump go-github to v73.0.0 ( #597 )
...
* Bump go-github to v73.0.0
* Clean up go.mod and update licenses
* Updated remaining imports to use github package v73 instead of v72
---------
Co-authored-by: Tommaso Moro <37270480+tommaso-moro@users.noreply.github.com >
Co-authored-by: tommaso-moro <tommaso-moro@github.com >
2025-07-15 15:21:24 +01:00
LuluBeatson
e43fca195b
embed optional UserDetails in MinimalUser
2025-07-04 14:58:38 +02:00
LuluBeatson
1d057c975d
refactor: user get methods to avoid nil checks
2025-07-04 14:58:38 +02:00
Sam Morrow
acba2848a3
cleanup search_users response ( #486 )
2025-06-26 12:35:12 +02:00
Sam Morrow
f90ff16f2e
move to new approach and update testing
2025-06-25 08:12:38 +02:00
Adam Holt
36e6add0dd
Return concrete error types for API errors
2025-06-25 08:12:38 +02:00
Lulu
cbcf29f6d1
Export ToBoolPtr and RequiredParam ( #495 )
...
* ToBoolPtr, RequiredParam
* lint: type assertion in RequiredParam
* cap docstring
2025-06-09 15:11:38 +02:00
Sam Morrow
9dd6fc518d
cleanup search_users response ( #485 )
2025-06-06 11:24:22 +02:00
Pranav RK
c7a872b9a1
Bump go-github to v72.0.0
2025-06-02 10:55:04 +02:00
dependabot[bot]
705b61b814
build(deps): bump github.com/mark3labs/mcp-go from 0.25.0 to 0.27.0 ( #397 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: William Martin <williammartin@github.com >
2025-05-13 13:26:36 +02:00
Sam Morrow
a58937c0b3
feat: provide tool annotations
2025-04-23 13:14:01 +02:00
Tony Truong
4457d0ac30
Add missing enum constraints ( #278 )
...
* Add missing enum constraints
* Remove redundant listing of additional enums in descriptions
---------
Co-authored-by: Sam Morrow <info@sam-morrow.com >
2025-04-15 17:01:33 +02:00
Sam Morrow
3ec8699deb
chore: groundwork for multi-user to server
2025-04-10 01:59:03 +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
William Martin
0f9ef6e708
Add pagination helper
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
Javier Uruen Val
6b02799482
fix issue with pagination in search_repositories ( #129 )
2025-04-05 20:05:35 +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
87d4407d1c
Add boundaries to pagination
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-03 23:34:31 +02:00
William Martin
6b13742012
Enumerate strings in schema
2025-04-03 23:30:59 +02:00
Javier Uruen Val
bc3bc766c8
use generic for helper functions
2025-03-24 17:28:21 +01:00
Javier Uruen Val
d24038cbd2
validate tools params
2025-03-24 17:28:21 +01:00
Sam Morrow
dd46f8a837
add a framework for translations
2025-03-20 18:33:30 +01:00
Javier Uruen Val
1c4cb29229
split into multiple files
2025-03-10 09:49:52 +01:00