You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate git toolset to modelcontextprotocol/go-sdk (#1432)
* 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 <4619+omgitsads@users.noreply.github.com>
* re-add git toolset
---------
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: LuluBeatson <lulubeatson@github.com>
// TreeEntryResponse represents a single entry in a Git tree.
@@ -38,57 +37,69 @@ type TreeResponse struct {
38
37
}
39
38
40
39
// GetRepositoryTree creates a tool to get the tree structure of a GitHub repository.
41
-
funcGetRepositoryTree(getClientGetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
42
-
returnmcp.NewTool("get_repository_tree",
43
-
mcp.WithDescription(t("TOOL_GET_REPOSITORY_TREE_DESCRIPTION", "Get the tree structure (files and directories) of a GitHub repository at a specific ref or SHA")),
funcGetRepositoryTree(getClientGetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, mcp.ToolHandlerFor[map[string]any, any]) {
41
+
tool:= mcp.Tool{
42
+
Name: "get_repository_tree",
43
+
Description: t("TOOL_GET_REPOSITORY_TREE_DESCRIPTION", "Get the tree structure (files and directories) of a GitHub repository at a specific ref or SHA"),
0 commit comments