Skip to content

Conversation

@LuluBeatson
Copy link
Contributor

@LuluBeatson LuluBeatson commented Nov 21, 2025

Closes: Part of #1428

Migrates all 10 tools from the pull_requests toolset to using modelcontextprotocol/go-sdk

@LuluBeatson LuluBeatson changed the title Migrate pullrequests toolset to Go SDK Migrate pull_requests toolset to Go SDK Nov 21, 2025
@LuluBeatson LuluBeatson marked this pull request as ready for review November 21, 2025 13:48
@LuluBeatson LuluBeatson requested a review from a team as a code owner November 21, 2025 13:48
Copilot AI review requested due to automatic review settings November 21, 2025 13:48
Copilot finished reviewing on behalf of LuluBeatson November 21, 2025 13:50
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 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.Schema structs
  • Error handling uses new utils.NewToolResultError helpers that set IsError: 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)

@LuluBeatson
Copy link
Contributor Author

Screenshots Screenshot 2025-11-21 at 14 08 56 image image image image Screenshot 2025-11-21 at 14 11 22 image image image image

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.

🔥

@omgitsads omgitsads merged commit 17aaf6b into omgitsads/go-sdk Nov 24, 2025
13 of 14 checks passed
@omgitsads omgitsads deleted the lulu/migrate-pullrequests branch November 24, 2025 10:57
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.

4 participants