Skip to content

Conversation

@omgitsads
Copy link
Member

@omgitsads omgitsads commented Nov 18, 2025

Replaces #1415, since Copilot Coding Agent can't do stacked PRs from a fork branch.

Switch from mark3labs/mcp-go to modelcontextprotocol/go-sdk

Closes #1184
Closes: https://github.com/github/copilot-agent-services/issues/373

@omgitsads omgitsads requested a review from a team as a code owner November 18, 2025 11:02
Copilot AI review requested due to automatic review settings November 18, 2025 11:02
Copilot finished reviewing on behalf of omgitsads November 18, 2025 11:10
Copilot AI and others added 6 commits November 24, 2025 15:18
* Initial plan

* Migrate projects toolset to modelcontextprotocol/go-sdk

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

* Update documentation after projects migration

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

* Enable projects toolset after migration

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

* nit: keep toolsets in original order, remove dupe

* revert docs changes

---------

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>
* Initial plan

* WIP: Migrate repos toolset - 7/18 tools complete

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

* Complete repositories.go migration - all 18 tools migrated

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

* WIP: Update repositories_test.go - partial migration

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

* Complete repos toolset migration to go-sdk

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

* re-add 18 tools: 15/17 repos, 3/3 stargazers

* add toolsnaps for ListReleases, GetLatestRelease

---------

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: SamMorrowDrums <4811358+SamMorrowDrums@users.noreply.github.com>
@LuluBeatson LuluBeatson self-requested a review November 24, 2025 14:42
omgitsads and others added 10 commits November 24, 2025 15:52
- Update imports from mark3labs/mcp-go to modelcontextprotocol/go-sdk
- Update setupMCPClient to use CommandTransport and NewInMemoryTransports
- Convert CallToolRequest usage to CallToolParams inline style
- Update type assertions to use pointer types (*mcp.TextContent, etc.)
- Update tool slice type to []*mcp.Tool
- Update EmbeddedResource.Resource access (now *ResourceContents, not interface)
- Update consolidated tool names (issue_write, issue_read, pull_request_read, pull_request_review_write)
- Fix go-github v79 CreateTag/CreateRef API changes
- Fix commitId -> commitID naming convention
- Default to 'all' toolsets for comprehensive testing
…ommentSubmit

- Fix TestDirectoryDeletion: Create file in test-dir/ subdirectory to
  match expected filename assertion
- Fix TestDirectoryDeletion: Search for deletion commit by message instead
  of assuming first commit in list (order can vary)
- Fix TestPullRequestReviewCommentSubmit: Relax assertion from exactly 3
  comments to at least 2 (FILE-level comments may not be returned by
  ListReviewComments API)
The side parameter is required for review comments but FILE-level
comments still don't appear in ListReviewComments API results.
- FILE-level review comments: Document that they are silently dropped by
  GitHub API under certain conditions and the test doesn't fully verify them
- Directory deletion: Document that the test only deletes a single file
  in a subdirectory, not actual recursive directory deletion
The e2e tests were migrated to modelcontextprotocol/go-sdk, so the old
SDK and its transitive dependencies are no longer needed.
@LuluBeatson LuluBeatson requested a review from Copilot November 24, 2025 16:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 128 out of 158 changed files in this pull request and generated no new comments.

SamMorrowDrums
SamMorrowDrums previously approved these changes Nov 24, 2025
Copy link
Collaborator

@SamMorrowDrums SamMorrowDrums left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Live by the sword, die by the sword ⚔️

I think with community help for testing, and the work we put into validation already, better to get it going, get feedback and work towards release!

❤️‍🔥

Maybe in the AM though

tonytrg
tonytrg previously approved these changes Nov 24, 2025
@omgitsads omgitsads dismissed stale reviews from tonytrg and SamMorrowDrums via 7e19170 November 25, 2025 16:54
@omgitsads omgitsads merged commit 60aef5d into main Dec 1, 2025
16 checks passed
@omgitsads omgitsads deleted the omgitsads/go-sdk branch December 1, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to official Go MCP SDK

7 participants