Add debug mode and upgrade mcp-go to v0.14.1

This commit is contained in:
hiifong
2025-03-20 23:01:05 +08:00
parent 18cb96fc80
commit 72d9b5a8dd
11 changed files with 60 additions and 24 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"gitea.com/gitea/gitea-mcp/pkg/gitea"
"gitea.com/gitea/gitea-mcp/pkg/log"
"github.com/mark3labs/mcp-go/mcp"
gitea_sdk "code.gitea.io/sdk/gitea"
@@ -25,6 +26,7 @@ var (
)
func CreateBranchFn(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
log.Debugf("Called CreateBranchFn")
owner := req.Params.Arguments["owner"].(string)
repo := req.Params.Arguments["repo"].(string)
branch := req.Params.Arguments["branch"].(string)