-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Convert to modelcontextprotocol/go-sdk
#1428
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
Open
omgitsads
wants to merge
43
commits into
main
Choose a base branch
from
omgitsads/go-sdk
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ents and return values.
Copilot finished reviewing on behalf of
omgitsads
November 18, 2025 11:10
This was referenced Nov 18, 2025
…cp-server into omgitsads/go-sdk
We should do this eventually, but to keep the existing behavior, we just return the error to the client.
* Initial plan * Migrate gists toolset to modelcontextprotocol/go-sdk - Remove //go:build ignore tags from gists.go and gists_test.go - Update imports to use modelcontextprotocol/go-sdk instead of mark3labs/mcp-go - Migrate all 4 tools (ListGists, GetGist, CreateGist, UpdateGist): - Updated tool definitions to use jsonschema.Schema for InputSchema - Changed handler signatures to new SDK format with generics - Updated parameter extraction to use args map instead of request object - Replaced result helpers with utils package equivalents - Updated all tests to match new handler signatures - Added toolsnap tests for all 4 tools - Added parseISOTimestamp utility function to minimal_types.go - Created toolsnaps for all 4 tools Related to #1428 Co-authored-by: omgitsads <[email protected]> * fix invalid schema, re-add gists toolset to server * make schema types lowercase * Don't assert without a testing.T * just return the tool & handler * Add Close method to IOLogger to close underlying reader and writer * Update cmd/github-mcp-server/generate_docs.go Co-authored-by: Copilot <[email protected]> * remove unnecessary translation --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: LuluBeatson <[email protected]> Co-authored-by: Adam Holt <[email protected]> Co-authored-by: Adam Holt <[email protected]> Co-authored-by: Copilot <[email protected]>
* Initial plan * Migrate code-scanning toolset to modelcontextprotocol/go-sdk Co-authored-by: omgitsads <[email protected]> * fix lint * re-add code_security toolset * nolint:unused --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: LuluBeatson <[email protected]>
…cp-server into omgitsads/go-sdk
…1434) * Initial plan * Migrate security_advisories toolset to modelcontextprotocol/go-sdk Co-authored-by: omgitsads <[email protected]> * Add toolsnaps tests and snapshots for security_advisories Co-authored-by: omgitsads <[email protected]> * Dont bubble up an error for getClient We should do this eventually, but to keep the existing behavior, we just return the error to the client. * re-add security_advisories toolset * Revert this change from the base PR --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: Adam Holt <[email protected]> Co-authored-by: LuluBeatson <[email protected]>
* Initial plan * Migrate secret_scanning toolset to modelcontextprotocol/go-sdk Co-authored-by: omgitsads <[email protected]> * Enable secret_protection toolset in DefaultToolsetGroup Co-authored-by: omgitsads <[email protected]> * Don't assert without a testing.T * just return the tool & handler * use lowercase strings for the jsonschema types * Add Close method to IOLogger to close underlying reader and writer * Update cmd/github-mcp-server/generate_docs.go Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: Adam Holt <[email protected]> Co-authored-by: Adam Holt <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: LuluBeatson <[email protected]>
…cp-server into omgitsads/go-sdk
* Initial plan * Migrate git toolset to modelcontextprotocol/go-sdk - Remove //go:build ignore tag from git.go - Update imports to use modelcontextprotocol/go-sdk - Convert GetRepositoryTree tool schema to jsonschema format - Update handler signature to use new generics pattern - Update parameter extraction to use args map - Replace mcp.NewToolResult* with utils package helpers - Create dedicated git_test.go with updated test patterns - Update toolsnaps for get_repository_tree Related to #1428 Co-authored-by: omgitsads <[email protected]> * re-add git toolset --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: LuluBeatson <[email protected]>
* Initial plan * Migrate labels toolset from mark3labs/mcp-go to modelcontextprotocol/go-sdk Co-authored-by: omgitsads <[email protected]> * re-add labels toolset --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: LuluBeatson <[email protected]>
This was referenced Nov 20, 2025
* Initial plan * Migrate imports and first 3 tools (IssueRead, ListIssueTypes, helper functions) Co-authored-by: omgitsads <[email protected]> * Migrate AddIssueComment, SubIssueWrite and helper functions Co-authored-by: omgitsads <[email protected]> * Migrate SearchIssues and search_utils helper Co-authored-by: omgitsads <[email protected]> * Migrate IssueWrite tool with CreateIssue and UpdateIssue helpers Co-authored-by: omgitsads <[email protected]> * Migrate remaining tools: ListIssues, AssignCopilotToIssue, AssignCodingAgentPrompt Co-authored-by: omgitsads <[email protected]> * Fix all linter errors in issues.go and search_utils.go Co-authored-by: omgitsads <[email protected]> * Fix test file and update toolsnaps - migration complete! Co-authored-by: omgitsads <[email protected]> * uncomment issues toolset * Migrate Issue workflow prompt * Remove commented out tool definition * Remove duplicate func --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: Adam Holt <[email protected]>
* Initial plan * Migrate dependabot toolset to modelcontextprotocol/go-sdk Co-authored-by: omgitsads <[email protected]> * re-add dependabot toolset --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: LuluBeatson <[email protected]> Co-authored-by: Adam Holt <[email protected]>
This was referenced Nov 20, 2025
This comment was marked as off-topic.
This comment was marked as off-topic.
notjoannaakl
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.
looks amazing
Copilot AI
added a commit
that referenced
this pull request
Nov 20, 2025
This commit migrates the dynamic toolset (enable_toolset, list_available_toolsets, get_toolset_tools) from mark3labs/mcp-go to modelcontextprotocol/go-sdk. Changes: - Removed //go:build ignore tag - Updated imports to use modelcontextprotocol/go-sdk - Migrated all tool functions to use new SDK patterns - Updated ToolsetEnum helper to return []any instead of mcp.PropertyOption - Converted DSL-based schema definitions to jsonschema.Schema structures - Updated handler signatures to use map[string]any args - Replaced old result helpers with utils package equivalents - Fixed EnableToolset to use RegisterFunc instead of AddTools - Created comprehensive test suite for all three tools - Generated toolsnaps for the new tools Related to #1428 Co-authored-by: omgitsads <[email protected]>
* Migrate repo resources to Go SDK * Enable resources for repos * Properly handle encoding and closing of the buffer * Remove outdated comment * Switch to StdEncoding, as it was originally * fix casing for linter * Update licenses
* Migrate repo resources to Go SDK * Enable resources for repos * Properly handle encoding and closing of the buffer * Remove outdated comment * Switch to StdEncoding, as it was originally * fix casing for linter * Update licenses * Handle multiple path components
omgitsads
commented
Nov 20, 2025
| { | ||
| "annotations": { | ||
| "title": "Assign Copilot to issue", | ||
| "readOnlyHint": false, |
Member
Author
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.
Todo: Validate if this is available in the Go SDK for Prompts
* Initial plan * Migrate dynamic toolset to modelcontextprotocol/go-sdk This commit migrates the dynamic toolset (enable_toolset, list_available_toolsets, get_toolset_tools) from mark3labs/mcp-go to modelcontextprotocol/go-sdk. Changes: - Removed //go:build ignore tag - Updated imports to use modelcontextprotocol/go-sdk - Migrated all tool functions to use new SDK patterns - Updated ToolsetEnum helper to return []any instead of mcp.PropertyOption - Converted DSL-based schema definitions to jsonschema.Schema structures - Updated handler signatures to use map[string]any args - Replaced old result helpers with utils package equivalents - Fixed EnableToolset to use RegisterFunc instead of AddTools - Created comprehensive test suite for all three tools - Generated toolsnaps for the new tools Related to #1428 Co-authored-by: omgitsads <[email protected]> * Enable dynamic tools * Remove new test and toolsnaps, we can follow up with this * Just return the tool and handler directly instead of assigning to variables first. This stops copilot complaining in review that the variables are unused. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: omgitsads <[email protected]> Co-authored-by: Adam Holt <[email protected]>
|
Ok |
This was referenced Nov 21, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: https://github.com/github/copilot-agent-services/issues/373