-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Migrate Repository Resources to the Go SDK #1457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 |
SamMorrowDrums
left a comment
There was a problem hiding this 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.
Migrates Repository Resources to the Go SDK.
Closes: https://github.com/github/copilot-agent-services/issues/922