mirror of
https://gitea.com/gitea/gitea-mcp.git
synced 2026-08-03 15:49:23 +02:00
fix(mcp): address SDK migration review
Co-Authored-By: OpenAI Codex (GPT-5) <noreply@openai.com>
This commit is contained in:
@@ -107,6 +107,7 @@ func (s ServerTool) MCPHandler() mcp.ToolHandler {
|
||||
if errors.As(err, &protocolErr) {
|
||||
return nil, err
|
||||
}
|
||||
// Preserve mcp-go behavior; tool-result errors are a separate change.
|
||||
return nil, internalError(err)
|
||||
}
|
||||
return result, nil
|
||||
|
||||
Reference in New Issue
Block a user