Skip to content

Conversation

@omgitsads
Copy link
Member

Migrates Repository Resources to the Go SDK.

Closes: https://github.com/github/copilot-agent-services/issues/922

@omgitsads omgitsads requested a review from a team as a code owner November 20, 2025 12:46
Copilot AI review requested due to automatic review settings November 20, 2025 12:46
@omgitsads omgitsads changed the base branch from main to omgitsads/go-sdk November 20, 2025 12:46
Copilot finished reviewing on behalf of omgitsads November 20, 2025 12:48
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

This PR migrates repository resource handlers from the mark3labs/mcp-go SDK to the new modelcontextprotocol/go-sdk. The migration updates API signatures, changes how URI templates are handled, and modifies how resource responses are structured.

Key Changes:

  • Updated from old MCP SDK to the official Go SDK for MCP
  • Changed URI parameter extraction from map-based arguments to URI template matching
  • Restructured resource response types to use the new SDK's format

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
pkg/github/repository_resource.go Migrates resource handler functions to use new SDK types, adds URI template constants, updates parameter extraction logic, changes base64 encoding approach
pkg/github/repository_resource_test.go Updates test structure to work with new SDK types, removes URI template validation tests, adjusts test assertions for new response format

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.

😎 AFAICT stays true to original intent and looks like a clean change. Nice one.

@omgitsads omgitsads merged commit 0a19bf4 into omgitsads/go-sdk Nov 20, 2025
13 of 14 checks passed
@omgitsads omgitsads deleted the omgitsads/go-sdk-repo-resources branch November 20, 2025 14:20
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.

3 participants