Commit Graph

511 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] be1fd87e6b Successfully migrated first 2 tools (PullRequestRead, CreatePullRequest) and fixed helper functions
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
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
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
2025-11-20 10:26:55 +00:00
copilot-swe-agent[bot] 4706206967 WIP: Partial migration of pullrequests toolset - imports and first 2 tools complete
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
2025-11-20 10:19:05 +00:00
copilot-swe-agent[bot] 964457dc60 Initial plan 2025-11-20 10:09:33 +00:00
Copilot 9bf905bba4 Migrate labels toolset to modelcontextprotocol/go-sdk (#1433)
* Initial plan

* Migrate labels toolset from mark3labs/mcp-go to modelcontextprotocol/go-sdk

Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>

* re-add labels toolset

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
Co-authored-by: LuluBeatson <lulubeatson@github.com>
2025-11-19 17:33:32 +01:00
Copilot eaf411c1cd Migrate git toolset to modelcontextprotocol/go-sdk (#1432)
* Initial plan

* Migrate git toolset to modelcontextprotocol/go-sdk

- Remove //go:build ignore tag from git.go
- Update imports to use modelcontextprotocol/go-sdk
- Convert GetRepositoryTree tool schema to jsonschema format
- Update handler signature to use new generics pattern
- Update parameter extraction to use args map
- Replace mcp.NewToolResult* with utils package helpers
- Create dedicated git_test.go with updated test patterns
- Update toolsnaps for get_repository_tree

Related to #1428

Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>

* re-add git toolset

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
Co-authored-by: LuluBeatson <lulubeatson@github.com>
2025-11-19 17:29:29 +01:00
Adam Holt ef60ef7e13 Merge branch 'omgitsads/go-sdk' of https://github.com/github/github-mcp-server into omgitsads/go-sdk 2025-11-19 16:44:51 +01:00
Copilot 66e6ad5415 Migrate secret_scanning toolset to modelcontextprotocol/go-sdk (#1436)
* Initial plan

* Migrate secret_scanning toolset to modelcontextprotocol/go-sdk

Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>

* Enable secret_protection toolset in DefaultToolsetGroup

Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>

* Don't assert without a testing.T

* just return the tool & handler

* use lowercase strings for the jsonschema types

* Add Close method to IOLogger to close underlying reader and writer

* Update cmd/github-mcp-server/generate_docs.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
Co-authored-by: Adam Holt <me@adamholt.co.uk>
Co-authored-by: Adam Holt <omgitsads@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: LuluBeatson <lulubeatson@github.com>
2025-11-19 16:43:03 +01:00
Copilot c06ace34cc Migrate security_advisories toolset to modelcontextprotocol/go-sdk (#1434)
* Initial plan

* Migrate security_advisories toolset to modelcontextprotocol/go-sdk

Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>

* Add toolsnaps tests and snapshots for security_advisories

Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>

* Dont bubble up an error for getClient

We should do this eventually, but to keep the existing behavior, we
just return the error to the client.

* re-add security_advisories toolset

* Revert this change from the base PR

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
Co-authored-by: Adam Holt <me@adamholt.co.uk>
Co-authored-by: LuluBeatson <lulubeatson@github.com>
2025-11-19 16:21:50 +01:00
Adam Holt eab4876b9e Merge branch 'omgitsads/go-sdk' of https://github.com/github/github-mcp-server into omgitsads/go-sdk 2025-11-19 11:48:13 +01:00
Copilot a4055195ea Migrate code-scanning toolset to modelcontextprotocol/go-sdk (#1430)
* Initial plan

* Migrate code-scanning toolset to modelcontextprotocol/go-sdk

Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>

* fix lint

* re-add code_security toolset

* nolint:unused

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
Co-authored-by: LuluBeatson <lulubeatson@github.com>
2025-11-19 11:44:43 +01:00
Copilot 6c07546591 Migrate gists toolset to modelcontextprotocol/go-sdk (#1431)
* Initial plan

* Migrate gists toolset to modelcontextprotocol/go-sdk

- Remove //go:build ignore tags from gists.go and gists_test.go
- Update imports to use modelcontextprotocol/go-sdk instead of mark3labs/mcp-go
- Migrate all 4 tools (ListGists, GetGist, CreateGist, UpdateGist):
  - Updated tool definitions to use jsonschema.Schema for InputSchema
  - Changed handler signatures to new SDK format with generics
  - Updated parameter extraction to use args map instead of request object
  - Replaced result helpers with utils package equivalents
- Updated all tests to match new handler signatures
- Added toolsnap tests for all 4 tools
- Added parseISOTimestamp utility function to minimal_types.go
- Created toolsnaps for all 4 tools

Related to #1428

Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>

* fix invalid schema, re-add gists toolset to server

* make schema types lowercase

* Don't assert without a testing.T

* just return the tool & handler

* Add Close method to IOLogger to close underlying reader and writer

* Update cmd/github-mcp-server/generate_docs.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* remove unnecessary translation

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
Co-authored-by: LuluBeatson <lulubeatson@github.com>
Co-authored-by: Adam Holt <me@adamholt.co.uk>
Co-authored-by: Adam Holt <omgitsads@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-19 11:44:25 +01:00
Adam Holt cd77c136c1 Dont bubble up an error for getClient
We should do this eventually, but to keep the existing behavior, we
just return the error to the client.
2025-11-18 16:30:28 +01:00
Adam Holt 5ab610c3ce Merge branch 'omgitsads/go-sdk' of https://github.com/github/github-mcp-server into omgitsads/go-sdk 2025-11-18 14:54:29 +01:00
Adam Holt 407a974b46 Add Close method to IOLogger to close underlying reader and writer 2025-11-18 14:52:57 +01:00
Adam Holt 3f03753942 Update cmd/github-mcp-server/generate_docs.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-18 14:42:28 +01:00
Adam Holt 102181d311 use lowercase strings for the jsonschema types 2025-11-18 14:40:39 +01:00
Adam Holt 1286e0620c just return the tool & handler 2025-11-18 14:38:12 +01:00
Adam Holt b1ac345de4 Don't assert without a testing.T 2025-11-18 14:36:39 +01:00
Adam Holt faa90d2af2 fix linter issues 2025-11-18 11:19:21 +01:00
Adam Holt 9f25ebe299 Remove dupe import from merge conflict 2025-11-18 11:05:38 +01:00
Adam Holt 1e7a3f05f1 Merge branch 'main' into omgitsads/go-sdk 2025-11-18 11:04:12 +01:00
Sam Morrow bb722f1e03 Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-18 10:58:30 +01:00
copilot-swe-agent[bot] b25a342c4e Add library usage and code quality guidelines to copilot instructions
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2025-11-18 10:58:30 +01:00
copilot-swe-agent[bot] aba64afb0b Add comprehensive copilot instructions for repository
Co-authored-by: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
2025-11-18 10:58:30 +01:00
Adam Holt 7359888938 Add Go SDK Migrator agent (#1424)
* Add Go SDK Migrator agent
2025-11-18 10:55:14 +01:00
Adam Holt 1d257b1ebd Update agent to use build tags 2025-11-18 09:45:57 +01:00
Adam Holt 3620126a54 Update licenses 2025-11-18 09:44:09 +01:00
Adam Holt c946ada4ee Move files back, use build tags 2025-11-17 20:10:56 +01:00
Adam Holt 655bcca719 move files rather than commenting out 2025-11-17 18:42:29 +01:00
Adam Holt 5b4c6dfe2e More info about moved files 2025-11-17 18:42:13 +01:00
Adam Holt 6ce7550b61 Take any ToolHandlerFor 2025-11-17 18:04:31 +01:00
Adam Holt 2b323c218b Dont use the request var 2025-11-17 17:33:36 +01:00
Adam Holt 6fa137b615 Add info to allow this to be parallelized 2025-11-17 15:11:20 +01:00
Adam Holt 99f2d8d6c7 Update about toolsnaps 2025-11-17 15:03:49 +01:00
Adam Holt cabc7b6ac9 Be explicit about the files to use 2025-11-17 13:45:04 +01:00
Adam Holt 5483a5b215 Lets try actually making the changes in the subagent 2025-11-17 13:37:22 +01:00
Adam Holt 11a154cef3 Add sdk migration agent 2025-11-17 13:31:55 +01:00
SangheeSon 2f64ac0c21 Add discussion metadata fields to get_discussion tool (#1305)
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
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
Docker / build (push) Has been cancelled
GoReleaser Release / release (push) Has been cancelled
License Check / license-check (push) Has been cancelled
Publish to MCP Registry / publish (push) Has been cancelled
* Add state metadata fields to get_discussion tool

Fixes #1303

The get_discussion tool was missing important state metadata that's
already available in get_issue. Added four fields to provide complete
discussion status information:

- state: Current discussion state (OPEN/CLOSED)
- isAnswered: Whether the discussion has an accepted answer
- answeredAt: Timestamp when answer was provided
- answerChosenAt: Timestamp when answer was selected

Changed GetDiscussion to return a map instead of github.Discussion
struct since the go-github library doesn't include all these fields
in its type definition. This approach is consistent with other
functions in this codebase (ListDiscussions, GetDiscussionComments).

All tests pass and linter checks pass.

* Fix Discussion field mappings based on GitHub GraphQL API

Changes:
- Replace 'State' (doesn't exist) with 'Closed' (Boolean)
- Remove 'AnsweredAt' (doesn't exist)
- Keep 'IsAnswered' (verified to exist in GitHub GraphQL API)
- Use 'AnswerChosenAt' for answer timestamp

Updated both implementation and tests to match actual GitHub GraphQL schema.
All tests passing.

---------

Co-authored-by: tommaso-moro <tommaso-moro@github.com>
v0.21.0
2025-11-17 10:20:39 +00:00
Adam Holt b2f07e526b Get tests fully working 2025-11-17 10:57:25 +01:00
Tony Truong 88a594e76b improve response/feedback loop with better error messages (#1414) 2025-11-17 10:19:42 +01:00
Jonathan Otalora e95d8ee6fe addresses float64 to in64 feedback from copilot 2025-11-16 23:42:14 +01:00
Jonathan Otalora 1d6499d875 removes unused code 2025-11-16 23:42:14 +01:00
Jonathan Otalora bd7ca66505 updates mcp-server with latest google-go-github APIs 2025-11-16 23:42:14 +01:00
Ksenia Bobrova df347e3cb4 Update server.json
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-15 22:29:33 +01:00
Ksenia Bobrova 4852f5a3df Add remote server to registry endtry 2025-11-15 22:29:33 +01:00
Jonathan 649087cbf4 updates generated licenses 2025-11-15 22:07:38 +01:00
Jonathan c73f06fa29 bumps google/go-github to v79 2025-11-15 22:07:38 +01:00
Neno Loje be6161d145 Fix capitalization in GitHub MCP Server section 2025-11-15 22:00:54 +01:00
Tom Elliott e9033462e1 projects: serialization & pagination updates (#1390)
* pagination, serialization updates

* projects: add server instructions (#1393)

* add server instructions

* Update instructions.go

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-14 11:25:35 +00:00
dependabot[bot] 3d6ce6881b build(deps): bump docker/metadata-action from 5.8.0 to 5.9.0 (#1380)
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.8.0 to 5.9.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/c1e51972afc2121e065aed6d45c65596fe445f3f...318604b99e75e41977312d83839a89be02ca4893)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-version: 5.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
2025-11-14 09:33:57 +01:00