Files
github--github-mcp-server/pkg/github
Copilot 42b55339b8 Migrate dynamic toolset to modelcontextprotocol/go-sdk (#1450)
* 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 <4619+omgitsads@users.noreply.github.com>

* 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] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
Co-authored-by: Adam Holt <me@adamholt.co.uk>
2025-11-20 17:47:11 +01:00
..
2025-10-21 15:57:39 +02:00