mirror of
https://gitea.com/gitea/gitea-mcp.git
synced 2025-08-23 22:33:05 +00:00
Add debug mode and upgrade mcp-go to v0.14.1
This commit is contained in:
@@ -3,6 +3,7 @@ package to
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"gitea.com/gitea/gitea-mcp/pkg/log"
|
||||
"github.com/mark3labs/mcp-go/mcp"
|
||||
)
|
||||
|
||||
@@ -11,5 +12,6 @@ func TextResult(v any) (*mcp.CallToolResult, error) {
|
||||
if err != nil {
|
||||
return mcp.NewToolResultError("marshal result error"), err
|
||||
}
|
||||
log.Debugf("Text Result: %s", string(result))
|
||||
return mcp.NewToolResultText(string(result)), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user