fix MCP protocol version requirement

This commit is contained in:
xiaolvdou
2025-09-09 14:22:29 +08:00
committed by mayswind
parent 34c5a1750e
commit adc4899ea6
+1 -1
View File
@@ -122,7 +122,7 @@ func handleTool[T MCPTextContent | MCPImageContent | MCPAudioContent | MCPResour
IsError: false,
}
if ctx.GetHeader(MCPProtocolVersionHeaderName) > string(ToolResultStructuredContentMinVersion) {
if ctx.GetHeader(MCPProtocolVersionHeaderName) >= string(ToolResultStructuredContentMinVersion) {
callToolResp.StructuredContent = structuredResponse
}