fix(mcp): address SDK migration review

Co-Authored-By: OpenAI Codex (GPT-5) <noreply@openai.com>
This commit is contained in:
Bo-Yi Wu
2026-08-03 12:02:21 +08:00
parent 0dc9868e2e
commit cc0cb109a8
4 changed files with 66 additions and 11 deletions
+1
View File
@@ -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