-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Migrate pull_requests toolset to Go SDK
#1466
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
pullrequests toolset to Go SDKpull_requests toolset to Go SDK
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 all 10 tools from the pull_requests toolset to use the new modelcontextprotocol/go-sdk instead of the older mark3labs/mcp-go framework. The migration involves updating function signatures, schema definitions, error handling patterns, and test assertions.
Key changes:
- Function signatures now return 3 values
(*mcp.CallToolResult, any, error)instead of 2 - Schema definitions migrated from builder pattern to direct
jsonschema.Schemastructs - Error handling uses new
utils.NewToolResultErrorhelpers that setIsError: true
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
pkg/github/tools.go |
Uncommented pull requests toolset registration to enable the migrated tools |
pkg/github/pullrequests.go |
Migrated all 10 pull request tools to new SDK with updated signatures, schemas, and error handling |
pkg/github/pullrequests_test.go |
Updated tests to work with new SDK: removed build ignore tag, updated schema assertions, and fixed handler call signatures |
pkg/github/__toolsnaps__/*.snap |
Updated 10 toolsnap files reflecting new schema structure (field order, annotations 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.
🔥










Closes: Part of #1428
Migrates all 10 tools from the
pull_requeststoolset to using modelcontextprotocol/go-sdk